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

ASP.NET

 
AnswerRe: Recordcount Pin
_AK_10-Oct-06 20:28
_AK_10-Oct-06 20:28 
QuestionIf data duplicate help me plz. Pin
isis_preaw10-Oct-06 17:44
isis_preaw10-Oct-06 17:44 
AnswerRe: If data duplicate help me plz. Pin
minhpc_bk10-Oct-06 20:21
minhpc_bk10-Oct-06 20:21 
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 
Hi. Regarding the relation between a Masterpage and some Content page I believe that sometimes it´s a bit difficult to decide where is the best place (Master or Content page) to put a Control. For example, I have a set of menu items (from a Menu control) that are displayed as Tabs. Suppose I have only 3 menu items that I call AAA,BBB,CCC ... when I click in AAA it should call the A.aspx page, the BBB > B.aspx and CCC > C.aspx ... The Menu control is in the masterpage named Master.master and A.aspx, B.aspx and C.aspx use this master page. I can think of 2 alternatives when building this Menu Items:

1st > I set the url attribute like AAA > url="~/A.aspx" and similar to the other menu items ... so when I click in any of these menu items I´ll be directed to the respective url

or

2nd > I don´t use the url attribute and catch the OnMenuItemClick event and then create code to switch to the proper url

Since I´m using Tabs, it would be nice to set the 'Active or Selected' Tab after the user clicks it. In the 2nd approach I can set the e.Item.Selected = true; but the Css used to mark the selected item will not work because after the click, the current page will be redirected to the proper page and the selected item will not be selected anymore. So I´ll have to end up creating complex code just to mark the selected item, probably in the current page (A,B or C.aspx) referencing the Menu control in the master page.

I believe there is a simple approach to this situation. What is the best way to set the selected/active tab? This is not hard when using plain html pages, but this master/content page relation are a bit confusing ... I already read this interesting article: http://www.dotnetslackers.com/XML/re-27950_Capture_Master_Page_Events_in_Content_Pages_ASP_NET_2_0.aspx, but I think there must have a simple approach to this situation which unfortunately I just don´t get.
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 
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 

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.