Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem in getting the value in minutes and seconds Pin
nish11115-Apr-10 0:44
nish11115-Apr-10 0:44 
GeneralRe: problem in getting the value in minutes and seconds Pin
Amit Spadez15-Apr-10 0:44
professionalAmit Spadez15-Apr-10 0:44 
GeneralRe: problem in getting the value in minutes and seconds Pin
nagendrathecoder15-Apr-10 0:47
nagendrathecoder15-Apr-10 0:47 
AnswerRe: problem in getting the value in minutes and seconds Pin
hb5213421415-Apr-10 3:49
hb5213421415-Apr-10 3:49 
QuestionHelp for right syntax in .net for defining variables in web pages Pin
Member 251458415-Apr-10 0:05
Member 251458415-Apr-10 0:05 
AnswerRe: Help for right syntax in .net for defining variables in web pages Pin
Dinesh Mani15-Apr-10 2:38
Dinesh Mani15-Apr-10 2:38 
GeneralRe: Help for right syntax in .net for defining variables in web pages Pin
Member 251458416-Apr-10 0:07
Member 251458416-Apr-10 0:07 
AnswerRe: Help for right syntax in .net for defining variables in web pages Pin
Gregory Gadow15-Apr-10 3:47
Gregory Gadow15-Apr-10 3:47 
As Dinesh said, there are many ways to do this. Unless design considerations make it too difficult, my preference is to use HyperLink controls on the page and set their properties in the page's PreRender event:
Protected Sub Page_PreRender(ByVal sender As Object, _
ByVal e As System.EventArgs)
    Dim varSection As String = Request.Form("varSection")

    Select Case varSection
        Case "Home"
            With Link1
                .NavigateUrl = "Go here"
                .Text = "Home"
                .ToolTip = "Go Home"
            End With
            Link2.Visible = False
            Link3.Visible = False
    
         Case "Abt" 
            'Etc.
    End Select
End Sub


Another way of doing it would be to put static links on Panel controls, with only one visible depending on the value of varSection. When the page gets rendered, controls with no visibility are not added to the output stream so you don't need to worry about adding bloat.

Can't help you with @Register as I've never had to use it. Our registration info is in web.config.
GeneralRe: Help for right syntax in .net for defining variables in web pages Pin
Member 251458416-Apr-10 0:13
Member 251458416-Apr-10 0:13 
QuestionIs there a way to run both aspnet 1.1 and aspnet 2.0 on IIS of a 64 bit machine? Pin
surender.m14-Apr-10 22:32
surender.m14-Apr-10 22:32 
AnswerREPOST Pin
Not Active15-Apr-10 1:53
mentorNot Active15-Apr-10 1:53 
QuestionWeb Site Setup interruption Pin
Chesnokov Yuriy14-Apr-10 20:58
professionalChesnokov Yuriy14-Apr-10 20:58 
AnswerRe: Web Site Setup interruption Pin
Sandeep Mewara14-Apr-10 21:11
mveSandeep Mewara14-Apr-10 21:11 
GeneralRe: Web Site Setup interruption Pin
Chesnokov Yuriy15-Apr-10 0:35
professionalChesnokov Yuriy15-Apr-10 0:35 
QuestionRendering standard HTML in TextArea Pin
prabhakar dwivedi14-Apr-10 20:16
prabhakar dwivedi14-Apr-10 20:16 
AnswerRe: Rendering standard HTML in TextArea Pin
Not Active14-Apr-10 20:45
mentorNot Active14-Apr-10 20:45 
GeneralRe: Rendering standard HTML in TextArea Pin
prabhakar dwivedi14-Apr-10 21:26
prabhakar dwivedi14-Apr-10 21:26 
GeneralRe: Rendering standard HTML in TextArea Pin
Not Active14-Apr-10 21:44
mentorNot Active14-Apr-10 21:44 
AnswerRe: Rendering standard HTML in TextArea Pin
Shivendra Pandey14-Apr-10 23:00
Shivendra Pandey14-Apr-10 23:00 
QuestionHyperLink Inside textArea Pin
prabhakar dwivedi14-Apr-10 19:21
prabhakar dwivedi14-Apr-10 19:21 
AnswerRe: HyperLink Inside textArea Pin
Brij14-Apr-10 19:54
mentorBrij14-Apr-10 19:54 
GeneralRe: HyperLink Inside textArea Pin
prabhakar dwivedi14-Apr-10 19:58
prabhakar dwivedi14-Apr-10 19:58 
GeneralRe: HyperLink Inside textArea Pin
Not Active14-Apr-10 20:12
mentorNot Active14-Apr-10 20:12 
GeneralRe: HyperLink Inside textArea Pin
prabhakar dwivedi14-Apr-10 20:21
prabhakar dwivedi14-Apr-10 20:21 
GeneralRe: HyperLink Inside textArea Pin
Brij14-Apr-10 20:16
mentorBrij14-Apr-10 20:16 

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.