Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 edit

Author  Topic 

notsosuper
Posting Yak Master

190 Posts

Posted - 2005-05-25 : 14:54:18
I have a reference table called Businesses. It has only carries BusinessName. I am getting all the businesses names and creating table for my users in vb.net. Then, I need to be able to edit them. This has to be minilink edit, when user click whatever business name from my table in vb.net, it should pop up edit panel and textbox should get that value. It is hard for to build ahref with edit minilink and have panel textbox to show that value user selected.
my code for the edit link is like this
<code>
tc.Text = "<a href=""businesses.aspx? strbusinessname =" & rs.Item("businessname") & " &action=e"" class=""minilink"">edit</a>"
</code>
this shows that strbusinessname = (whatever user going to click and shows me a value, but I can't get that value out of this statement and and assign to a text box

twhelan1
Yak Posting Veteran

71 Posts

Posted - 2005-05-26 : 10:14:23
It could just be the forum formatting but I see spaces in your link. First, make sure you don't have any spaces, the link should read "businesses.aspx?strbusinessname=".

To reference this value on page businesses.aspx, use Request.QueryString("strbusinessname") for VB or Request.QueryString["strbusinessname"] for C#.
Go to Top of Page

notsosuper
Posting Yak Master

190 Posts

Posted - 2005-05-26 : 11:23:18
Thank you for your reply.
Go to Top of Page
   

- Advertisement -