Extract value of <asp:TextBox> using Databinder

Within an .aspx form there is a table.
Inside the table is a <td> which contains an <a href>
The URL for the <a href> is part static and part dynamic.
The beginning of the URL is <a href="LinkDetail.aspx?LC=" and then I need to extract
the value of an <asp:TextBox> to complete the URL.

My question is, from within the .aspx form, how can I extract the value of the
<asp:TextBox> and add it to the <a href> using Databinder?

The value of the textbox is not known until the user types a value in, after the page load.

<tr>
   <td class="Content" align="center" width="20%">Link Category #3</td>
   <td class="Content" align="center" width="25%"><asp:TextBox ID="LinkCat3" Width="300" Runat="server"></asp:TextBox></td>
   <td class="Content" align="center" width="25%"><asp:TextBox id="LinkCatDescr3" Width="300" runat="server"></asp:TextBox></td>
   <td class="Content" align="center" width="25%"><asp:TextBox id="LinkCatSrt3" Width="25" runat="server"></asp:TextBox></td>
   <td class="Content" align="center" width="5%"><a href="ELinksDetail.aspx?LID=3&CName=" + <%# DataBinder.Eval("LinkCat3") %>>Detail</a></td>
</tr>

The above is a snippet of html from the .aspx page.  What I want to do is complete the <a href> based upon the value of <asp:TextBox id="LinkCat3">
gsmithaaaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lengreenCommented:
Hi

You will need to use client side script to achieve this

<A HREF="#" onclick="window.location = 'ELinksDetail.aspx?LID=3&CName=' +document.getElementById('LinkCat3').value">Detail</A>

cheers

Len
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.