Click here to Skip to main content
15,888,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPrinting Paper Size Pin
YeHtut10-Oct-06 17:22
YeHtut10-Oct-06 17:22 
QuestionHow to check the database the given value is in the database or not Pin
dhulipudi10-Oct-06 16:33
dhulipudi10-Oct-06 16:33 
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 
Sohdubom wrote:
What´s the solution for this option? Considering I want to navigate from one page to another ... Will I have to target the master page menu from each of the pages? That´s not a good solution ... too much coding

Because you define the menu control in the Master Page and all the web pages use this Master Page, so I think you only need to write code to set the selected menu item in the master page only and no need to do that from each content page. For example, you have 3 web pages A.aspx, B.aspx, C.aspx and the menu control in the master page is defined with 3 items accordingly. At run time you can detect the url of the current requested page by checking the Request object or SiteMap (if you define web.sitemap file), you then can set the Selected propety of the right menu item. The sample code to select the menu item in the master page looks something like:
//You can either use the Request object or SiteMap to determine
//the current url.
//string url = SiteMap.CurrentNode.Url;
string url = Request.Url.AbsoluteUri;

if (url.Contains("A.aspx"))
    Menu1.Items[0].Selected = true;
else if(url.Contains("B.aspx"))
    Menu1.Items[1].Selected  = true;
else
    Menu1.Items[2].Selected = true;


Sohdubom wrote:
To use a single web page instead of 3, but this way I believe I´ll have to have views/panels hidden and showed according to the selected tab, right? This turn to concentrating too much logic in a single page. Suppose I have 100 tabs!!!

You're right, this option should only be used when you have just a few web pages.



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 
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 

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.