Use a 
<asp:Hyperlink id="" runat="server" />

then your page load can walk the control tree and toss back any values
into the navigate URL.

http://www.learnasp.com/freebook/learn/usercontrols-amazon.aspx
shows the Hyperlink controlproperties in action.


On Mon, 28 Feb 2005 15:25:47 -0000, gcgoring <[EMAIL PROTECTED]> wrote:
>  
>  
>  Hi,
>  Can a variable be inserted into an URL string, such as:
>  <a href="/ABC/SAEC/Chapters/NeedVariableHere.aspx">
>    <h2>Saint 
>      <asp:label
>        ID="lblGuildName"
>        Runat="server" />
>        Chapter's </h2> 
>  </a> 
>  
>  Situation:
>  When the user clicks on the hyperlink (lblGuildName) to go the next 
>  page, there will be about 15 pages from which the user can go to.   
>  The dynamics in the hyperlink needs to address how to send the user 
>  to 1 of 15 differently name pages.
>  
>  Such as:  "./ABC/SAEC/Chapters/NeedVariableHere.aspx" or 
>  ABC/SAEC/Chapters/NeedVariableHere2.aspx or 
>  ABC/SAEC/Chapters/NeedVariableHere3.aspx, etc.
>  
>  If lblGuildName = NeedVariableHere, then the user will go to 
>  NeedVariableHere.aspx, or if lblGuildName = NeedVariableHere2.aspx, 
>  then the user will be go to NeedVariableHere2.aspx, etc.  As the 
>  value that will be in lblGuildName will equal the name of the 1 of 
>  15 pages, i.e. NeedVariableHere.aspx thru NeedVariableHere15.aspx?
>  
>  How can the 'NeedVariableHere.aspx receive the name that's in 
>  lblGuildName?  
>  
>  Thank you.
>  
>  
>  
>  
>  
>  
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to