473,320 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Forcing textbox to refresh

I have a hyperlink below:-
<asp:HyperLink
ID="Hyperlink2"NavigateUrl='<%#"AddToCart.aspx?pro ductID=" &
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?

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
3 2625
What do you mean "force a textbox to refresh" and what's the right string
to add to the textbox?

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have a hyperlink below:-
<asp:HyperLink
ID="Hyperlink2"NavigateUrl='<%#"AddToCart.aspx?pro ductID=" &
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?
*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #2
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?
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
> 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.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Mike L | last post by:
This is for a Winform. What is the code to send text to a text box in another form? In my search form when the user click OK, I want to sent a string to a text box in frmDataEntry. The code I...
2
by: Prodip Saha | last post by:
I am sure there is an easy fix for this problem. I am reloading the same page at an interval using the meta refresh tag in aspx page. This page has one textbox and one button. The problem is -when...
16
by: Adda | last post by:
If I cycle through the MdiChildActivate event of the parent form I can read text in a textbox on the child mdiform -- console.writeline(Me.ActiveMdiChild.Controls(1).Text) But if I have a sub...
6
by: John Smith | last post by:
I have a form doing a large process. While this form is doing its processing I want to write a status to a Textbox of where it is at in the process. Similar to having a log file but within a...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
2
by: simon | last post by:
hello, new to vb.net, have a few questions about DataGrid. I have a dataGrid that is working pulling a dataset back from a stored proc and binding to the datagrid for display the datagrid's...
1
by: silpa | last post by:
I have a form named dataentry1.aspx It has Name,Age,centimetres,metres textboxes. we will enter name in name textbox,age in age textbox. when we enter height in centimetres textbox, and after...
3
by: Ken Fine | last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor to use a username and e-mail address that I am providing in programming, and I do not want the visitor to be able to edit...
5
by: ssouhrada | last post by:
Hello, I have a simple loop that adds values to a textbox. I would like to have it refresh the text box every 100 records so that the end user still believes it is processing data (it sometimes...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.