Web Forms :: How To Custom XML Data Source For Navigation

Jun 2, 2010

I'm designing a website that should have horizontal menus (main menu, and sub menus) underneath each other like:

Home | **Categories** | Contact Us VBScript | VB.NET | ASP.NET

(** indicates the selected main menu item) Where VBScript, VB.NET, and ASP.NET are menu items in the Categories main menu item.

Initially, I tried using a separate sitemap file, but came across an error that forced me to write a custom xml document for the sub menu (code below)

[Code]....

I've created an asp:Menu control to use for the sub menu (it's blank until a main menu item that has child items is selected), and I'm databinding it on MainMenuItemClick (code below)

[Code]....

MainMenu has it's items hard coded into the html, but I'm going to move that over a sitemap later, what I'm struggling with, is how do I get the SubMenu items to navigate to the URLs I'm specifying?

View 3 Replies


Similar Messages:

Forms Data Controls :: Gridview Update With A Custom Source

Jan 27, 2010

I am binding gridivew with custom datasource. I have 3 columns and I want two columns to be editable. right now grid showing the data but i want it to delete and update as well.

View 3 Replies

Web Development - Looking For Navigation Menu Editor With Source Code

Jan 3, 2010

web-based so it can be used by users and hopefully using the class SQLSiteMapProvider which allows for saving sitemap in a SQL Database instead of XML.

View 1 Replies

C# - How To Access The Source Error, Source File And Line Number Of An Exception To Use In A Custom Error Page

Jun 18, 2010

Basically I want to take the following:And make it match the styling of the rest of the application.I am creating a custom error page in my C# based project and I want it to be able to show the same information that is displayed in the ASP.NET default error page. From fiddling with reflector I can see that this is generated through HttpException.GetHtmlErrorMessage() but when I try to use this in my exception it returns null.

View 3 Replies

Using A Custom sqlsitemapprovider to Get Site Hierarchy Out Of The Database And Display Navigation?

Mar 18, 2010

I'm using a custom sqlsitemapprovider to get my site hierarchy out of the database and display my navigation. Now, I have the following main (parent) nodes:

Home - Products - News. What I want to achieve is this, suppose you click on products then a subnavigation appears like this:

productGroup1,productGroup2, productGroup3.

But when you click products, no selection was made from the subnavigation, how would I achieve that if someone clicks on products, the
first product with content from the first productGroup1 shows up?

To visualize this: I click on Products -> Subnavigaton gets rendered -> PG1 - PG2 - PG3 -> page displays product1 of PG1

Is there as build in manner to accomplish this or how would one create a method to make this work?

P.S.:For my navigation, I'm not using any build in navigation controls, I'm rendering my menu as an html unordered list e.g: <ul><li></li></ul>

View 1 Replies

Web Forms :: Debugging Custom Web Control Source?

Aug 10, 2010

I'm testing code similar to the example [URL]

However, if I have the source code, shouldn't I be able to debug it to step through and see what's going on? The debugger stops on the page that is consuming the control but I thought as long as I have the source it would stop at breakpoints in the custom control as well.

View 1 Replies

Web Forms :: How To Work With Navigation Menu And Assign Pages In Navigation Menu In Master Page

Aug 25, 2010

Iam using masterpage and i want to use navigation menu ,but i don't want to use sitemap concept

how to work with navigation menu and assign the pages in navigation menu in master page

View 2 Replies

SQL Reporting :: A Data Source Instance Has Not Been Supplied For The Data Source 'report2Dataset'

Jan 6, 2011

I recently started using SSRS 2010 and I didnt come across this issue in 2005 or 2008 versions of reporting services.

I have a report that drills down to child report1 and then that drills down to child report 2 but clicking a field in the report.

When I click on the link on the first report to go to the second report. I get this error message

"A data source instance has no tbeen supplied for the data source ''reprort2dataset"

I am not sure how to handle this error.

All reports run fine stand alone, but when I try to link them up I get that error.

I have a report viewer running the reports in an aspx page.

View 1 Replies

SQL Server :: A Data Source Instance Has Not Been Supplied For The Data Source 'dsOrders_tblOrdersReport'

Aug 4, 2010

Where and what am i missing?

this code produces some error:

DataSet ds = services.getOrdersReport(1, "", DateTime.Parse(System.DateTime.Now.Date.ToShortDateString()));
ReportDataSource datasource = new ReportDataSource("JMJ", ds.Tables[0]);
rv.LocalReport.DataSources.Clear();
rv.LocalReport.DataSources.Add(datasource);
rv.LocalReport.Refresh();

ERROR :

A data source instance has not been supplied for the data source 'dsOrders_tblOrdersReport'

'dsOrders_tblOrdersReport' -- name of the table designed in dataset.XSD

View 1 Replies

Web Forms :: Navigation Menu / Login And Add Some Buttons To Navigation Menu

May 19, 2010

I'm developing a Portal to a school

I need to login (ok)

I also need when the login is ok, to add some buttons to navigation menu, taht is created in the Master Page.

Is it possible?, how?

i already handle the page load on the default page.

View 3 Replies

A Data Source Instance Has Not Been Supplied For The Data Source 'DataSet1'

May 14, 2010

I am getting the following error while i bind the dataset dynamically in reportviewer(Asp .net 4.0) . I have binded the dataset using stroedprocedure.

Error:A data source instance has not been supplied for the data source 'DataSet1'.

View 3 Replies

Forms Data Controls :: Hide A Navigation Menu Item?

Mar 4, 2011

I am Trying to hide Navigation Menu Item on my master page based on a selected item from a Drop Down List on another page. I think i need to use a session to get the pages to communicate, which i can do just fine. Im having a problem putting together the code to actually Hide the link based on the specific answer of the DDL.

View 11 Replies

Forms Data Controls :: Navigation Menu Display Using More Than One Tables

Jan 8, 2011

My issue is,i have two tables

Table Maincategory:
Id(p.k)
Category name,
Description

Table Subcategory:
Id(f.k)
SubcatID
Subcatname
Desc

My issue is, i need to display my Table(A) categoryname in my vertical menu such as

ashok
kumar
suresh
john.

if i click ashok, with respect to its id,(say id is (1),it should pick the subcategoryname (2nd table's) name corresponding id(1) from 2nd table...and it should display as sub menu is it possible.

View 2 Replies

Forms Data Controls :: Treeview Not Retaining Its State After Navigation?

Dec 10, 2010

i have asp.net treeview control on my masterpage which is associated with many pages now my requirement is that when ever iam clicking child nodes in the treeview its getting navigate to the appropriate page but treeview not retaining its position.its getting collapse to its default position.

View 2 Replies

Forms Data Controls :: How To Show And Expand All Items In A Navigation Control

Sep 30, 2010

I am using a SiteMap data source boudn to a navigation control. I would like to also put this in the footer (sort of like the bottom of Yahoo! pages) where all items are expanded and static.

So my major heading would be across the top (horizontal) and the sub items would be indented vertically below and always expanded. Is there a way to do this? Check out the bottom of the BlackBerry DEVCON 2010 site for an example:[URL]

View 3 Replies

Forms Data Controls :: How To Enable / Disable TreeView Navigation Control

Feb 9, 2011

In asp.net(C#) i'm using masterpage and childpage.

in masterpage i used TreeView Navigation control to view the Childpage.

.What my doubt is......when i select the navgation control

my TreeView Control should be disable and when i click cancel button in Child page it will enable..

View 4 Replies

Forms Data Controls :: How To Manage Left Navigation Control Like Msdn Library

Aug 27, 2010

I am trying to workaround a case where I have to design my page similar like msdn library page whew left nevigation is collepseble as well as dumemic extemded as per tje wodtj of tree item in tree .

View 1 Replies

Custom Server Controls :: Getting Source Path Of Registered Controls By Tagname?

Jan 15, 2010

I have some user controls registered in the web.config.

Now I need to load some of them dynamiclly with the page.loadcontrol() function. This function needs a virtual path to the .ascx file. Is it possible to get this virtual path (that is the same as the source path in the config) by the tagname?

View 1 Replies

Forms Data Controls :: Custom Gridview / Insert The Custom Dropdown Button Using Server Control For Each Column?

Aug 18, 2010

i've created a webform with one gridview having connected with the database using datasource. i.e password database with three colomn .

now want to insert the custom dropdown button using server control for each column.

when i select the dropdown list the list should display the value as required.

e.g if i click the uname dropdownlist then it should show the list of names.

if i click on pwd dropdownlist then it should show the list of numbers.

if i select any one of the value in the dropdown list then it should insert into the

database.

can i get code on this type of question...?

View 3 Replies

In "Configure Data Source" After Choose "Parameter Source :Control" All ControlIDs Are Duplicated?

Jan 5, 2010

I don't know it happen just to me or Others have the same situation too . All the time when i bind a DataControl to an ObjectDataSource in "Configure Data Source" wizard of ObjectDataSource,when i set parameter source as "Control" in "ControlId" DropdownList there are TWO Item of every control in the WebForm , while it make sense be one.

View 2 Replies

Forms Data Controls :: Edit And Delete Data In Gridview Using Access Data Source?

Mar 30, 2011

This is my code and i am only able to edit the one data under the category school.But what i nd is to edit the other categories like the name,email...etc..how do i modify my code in the update command.Another thing is to delete the data how do i do that?

[Code]....

View 6 Replies

Forms Data Controls :: Create A Lookup Data Source Based On A Union Query With The Actual Data And A Blank Record?

Jun 1, 2010

I'm new to ASP.net 3.5 and trying to create a test site so I can figure out how to use it in the real world. I have created a FormView (Formview1) based on a Client table using Linq Data Sources. The page includes a DropDownList to lookup Clients. I have added a list option (<asp:ListOption value="" Text="(Select Client)" and set AppendDataBoundItems=true so my added option is displayed. I decided to try to use Formview with only the Edit and Insert Modes, and I have set the Default Mode = Insert. When you open the page, a blank Client record is displayed.

The Client record contains serveral lookup fields and they have drop down lists for each. When I select a client from the Client DropDownList, is get the following message 'ddlClientType' has a SelectedValue which is invalid because it does not exist in the list of items I had this problem before and decided the best way to handle this (in the interim) was to turn off foreign key constraints for each of the lookup fields (e.g. ClientType) in SQL Server. That worked for 2-3 days. Now the problem has started again.

When I develop in other applications, I would simply create a lookup data source based on a Union Query with the actual data and a blank record. How can you do this using Linq DataSources. Can you get access and modify the queries?

View 1 Replies

Forms Data Controls :: Using Event For Data Bound Control Vs Data Source?

Jan 1, 2011

I've been using the Item Inserted event for my data controls, such as details view. I'm wondering if there are advantages to doing this with the data sources instead of the data control. There is a lot of overlap in the events provided by these two types of controls. Are there advantages to using the events raised by the data source instead of the ones raised by the data control itself. Should I be using the events raised by the data source instead of the control used to enter the data?

View 2 Replies

Forms Data Controls :: Manual Data Binding With Data Source?

Mar 30, 2010

I have a GridView or DetailsView and its bound to a CslaDataSource.I noticed that the "Object_Select()" event is fired automatically with every time the page is loaded or refreshed.How I can perfrom mnaual biding between the DetailsView Control and CslaDataSource ?I want to control binding via code using the DetailsView.DataBind() method in certain cases only.

View 4 Replies

Forms Data Controls :: Persistent Dynamic Data With No Data Source?

Apr 30, 2010

I'm creating a page that allows the user to create a new object that will later be stored in the database. The problem is that the design of ASP.NET data controls seems to insist upon only working with pre-existing data that has been stored in a database (or XML, etc...).

I'm basically trying to get the user to compose a list of items and specify a quantity for each item. I could do this by generating table rows but the rows are lost at each postback. The data view controls seem to be designed only to be bound to a data source but until the list is complete, the data can only be in memory.

What control is appropriate for this and how can I achieve this with that control?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved