Click here to Skip to main content
15,889,034 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to check the database the given value is in the database or not Pin
minhpc_bk10-Oct-06 20:16
minhpc_bk10-Oct-06 20:16 
GeneralRe: How to check the database the given value is in the database or not Pin
dhulipudi31-Oct-06 18:37
dhulipudi31-Oct-06 18:37 
QuestionMasterpage and Content page Pin
Ken.A10-Oct-06 15:02
Ken.A10-Oct-06 15:02 
AnswerRe: Masterpage and Content page Pin
minhpc_bk10-Oct-06 20:10
minhpc_bk10-Oct-06 20:10 
QuestionRe: Masterpage and Content page Pin
Ken.A10-Oct-06 22:41
Ken.A10-Oct-06 22:41 
AnswerRe: Masterpage and Content page Pin
minhpc_bk11-Oct-06 1:54
minhpc_bk11-Oct-06 1:54 
AnswerRe: Masterpage and Content page Pin
Ken.A11-Oct-06 3:26
Ken.A11-Oct-06 3:26 
GeneralRe: Masterpage and Content page Pin
minhpc_bk11-Oct-06 16:19
minhpc_bk11-Oct-06 16:19 
The sample code is used to set the Selected property of an item in the Menu Items collection, and this collection is built based on data bound to it, so you can use this code when data is bound to the menu control or after that. And one of events that you can put the sample code in is the MenuItemDataBound which is fired after a MenuItem is databound and you can check this item is selected or not. The sample code looks something like.

protected void Menu2_MenuItemDataBound(object sender, MenuEventArgs e)
{
    string url = Request.Url.AbsoluteUri;
	//Here I simply compare the url of the current request 
	//with the Text property of the Menu item.
    e.Item.Selected = url.Contains(e.Item.Text);        
}


You mean you use the AspNet-Menu-Link AspNet-Menu-Selected stylesheet class to set the selected menu item? If so, once you can keep the selected item as it is with code, the style class will be applied.



GeneralRe: Masterpage and Content page Pin
Ken.A11-Oct-06 23:51
Ken.A11-Oct-06 23:51 
Questiondisplay image in asp image control Pin
saravanan0510-Oct-06 12:07
saravanan0510-Oct-06 12:07 
AnswerRe: display image in asp image control Pin
minhpc_bk10-Oct-06 15:09
minhpc_bk10-Oct-06 15:09 
QuestionUsing MS Access database with medium trust level Pin
Fedor Hajdu10-Oct-06 10:05
professionalFedor Hajdu10-Oct-06 10:05 
AnswerRe: Using MS Access database with medium trust level Pin
minhpc_bk10-Oct-06 15:12
minhpc_bk10-Oct-06 15:12 
GeneralRe: Using MS Access database with medium trust level Pin
Fedor Hajdu11-Oct-06 8:34
professionalFedor Hajdu11-Oct-06 8:34 
QuestionExport GridView to Word Pin
RadioButton10-Oct-06 9:55
RadioButton10-Oct-06 9:55 
AnswerRe: Export GridView to Word Pin
minhpc_bk10-Oct-06 15:17
minhpc_bk10-Oct-06 15:17 
QuestionRadio Button in a Repeater Question...Urgent! Pin
just3ala210-Oct-06 8:37
just3ala210-Oct-06 8:37 
AnswerRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 15:21
minhpc_bk10-Oct-06 15:21 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala210-Oct-06 19:48
just3ala210-Oct-06 19:48 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 20:04
minhpc_bk10-Oct-06 20:04 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala210-Oct-06 20:32
just3ala210-Oct-06 20:32 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 21:53
minhpc_bk10-Oct-06 21:53 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala211-Oct-06 0:15
just3ala211-Oct-06 0:15 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk11-Oct-06 2:00
minhpc_bk11-Oct-06 2:00 
GeneralRe: Radio Button in a Repeater Question... [modified] Pin
just3ala211-Oct-06 2:26
just3ala211-Oct-06 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.