Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 14th, 2004, 10:17 AM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default <a Href

Hi,

I have a < A href="page1" and i want to pass label.text as an querystring to that url ...label.text is filled at the page load in the code behind...


<a href="pAGE1?LABELID="+THIS.LBLaid.TEXT> link to page 1 with label as query string </a>

LABEL 1 - <asp:label id="lblAId" runat="server" Width="88px"></asp:label>

Thank You

 
Old September 14th, 2004, 10:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I'm not understanding what you're trying to do. Can you clarify?

 
Old September 14th, 2004, 11:02 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
quote:Originally posted by pran

<a href="pAGE1?LABELID="+THIS.LBLaid.TEXT> link to page 1 with label as query string </a>
How is this setup in your original page? For example, do you use a literal to create this? If so, in your code behind you would do:

ltrl.text = "<a href=""pAGE1?LABELID=" & lblaid.text & """>link to page 1 with label as query string</a>"

J
 
Old September 14th, 2004, 03:20 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

<a href='StartCodeCase.aspx?aid=<%=lblApptId.Text%>

i could fix it using that....

Thank you for the reply though...



 
Old September 15th, 2004, 12:12 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to heroman
Default

hi
i guess you want do this:
<a href='<%# "startcodecase.aspx?labeltext="+Label.Text%> '

and In the Page_Load Event,you must write code:

public void Page_Load(object sender,EventArgs e)
{
if(!Page.IsPostBack)
{
....
Page.DataBind();
....
}
}

you can try it!

Study,Progress,Life...
 
Old September 16th, 2004, 04:12 PM
Authorized User
 
Join Date: Sep 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yep what u(heroman) said will work too.

Thank you.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Including XSL in an <a href> graywoodhouse XSLT 2 November 12th, 2004 06:08 AM
<href> causing problems mahulda ASP.NET 1.0 and 1.1 Basics 5 July 15th, 2004 12:15 PM
Placing <a href etc. in PHP scripts mercury7 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 21st, 2003 07:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.