Forcing textbox to refresh

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

I have a hyperlink below:-
<asp:HyperLink
ID="Hyperlink2"NavigateUrl='<%#"AddToCart.aspx?productID=" &
DataBinder.Eval(Container, "DataItem.ProductID") >Add</asp:HyperLink>

And i want to force a textbox so i can get the right string to add to
the link above..
How can i force textbox to refresh?
Any ideas?
 
B

Brock Allen

What do you mean "force a textbox to refresh" and what's the right string
to add to the textbox?
 
P

Patrick Olurotimi Ige

Brock thx for the reply.
My scenario was that before the user clicks the hyperlink i needed to do
a postback so that i can retrieve the correct string to the textbox and
appeend it to the Hyperlink QueryString.
But the the textbox can only have a maxlenght of 10
But i ended up doing is using a javascript and used onKeyup
so after the users typed in exactly 10 digits i used
Document.Form.Submit and refreshed the page:)


By the way do you know if i can get Boolean TRUE or FALSE when using
CheckBoxList.With CheckBox1.Select i can return TRUE but not FALSE..
I know with CheckBox if i use CheckBox1.Checked it returns both..

Any ideas?
 
B

Brock Allen

By the way do you know if i can get Boolean TRUE or FALSE when using
CheckBoxList.With CheckBox1.Select i can return TRUE but not FALSE.. I
know with CheckBox if i use CheckBox1.Checked it returns both..

The Items in the CheckBoxList have a Selected property, and when posted back
the Value is True or False.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top