473,396 Members | 2,055 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,396 software developers and data experts.

Losing TextBox values

I have an aspx page that has HyperLink controls that have NavigateURL set to
the current page. I was assuming that would postback but it comes back like
the first time in the page and I am losing values in one of my TextBox
controls. It is there when I first load the page from another page but gets
lost as soon as I click the HyperLink. What am I missing? Thanks.

David
Nov 19 '08 #1
3 1771
On Nov 19, 10:22*pm, "David C" <dlch...@lifetimeinc.comwrote:
I have an aspx page that has HyperLink controls that have NavigateURL setto
the current page. *I was assuming that would postback but it comes backlike
the first time in the page and I am losing values in one of my TextBox
controls. *It is there when I first load the page from another page butgets
lost as soon as I click the HyperLink. *What am I missing? *Thanks.

David
Hi David

try LinkButton Control

Hope this helps
Nov 19 '08 #2
Yes, my brain was not functioning. Thanks.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:8f**********************************@k8g2000y qn.googlegroups.com...
On Nov 19, 10:22 pm, "David C" <dlch...@lifetimeinc.comwrote:
I have an aspx page that has HyperLink controls that have NavigateURL set
to
the current page. I was assuming that would postback but it comes back
like
the first time in the page and I am losing values in one of my TextBox
controls. It is there when I first load the page from another page but
gets
lost as soon as I click the HyperLink. What am I missing? Thanks.

David
Hi David

try LinkButton Control

Hope this helps
Nov 19 '08 #3
On Nov 19, 10:58*pm, "David C" <dlch...@lifetimeinc.comwrote:
Yes, my brain was not functioning. Thanks.

"Alexey Smirnov" <alexey.smir...@gmail.comwrote in message

news:8f**********************************@k8g2000y qn.googlegroups.com...
On Nov 19, 10:22 pm, "David C" <dlch...@lifetimeinc.comwrote:
I have an aspx page that has HyperLink controls that have NavigateURL set
to
the current page. I was assuming that would postback but it comes back
like
the first time in the page and I am losing values in one of my TextBox
controls. It is there when I first load the page from another page but
gets
lost as soon as I click the HyperLink. What am I missing? Thanks.
David

Hi David

try LinkButton Control

Hope this helps
You can also use HyperLink with a client side script to perform
postback as LinkButton does this, but it makes no big sense to me.

More info: http://www.google.com/search?hl=en&q...cript+postback
Nov 19 '08 #4

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

Similar topics

1
by: Philip Townsend | last post by:
I have a user control that contains a form with several text boxes. The text boxes get populated from a SQL Server table when the control loads. When the controls posts back, any values that have...
11
by: anony | last post by:
Hello, I can't figure out why my parameterized query from an ASP.NET page is dropping "special" characters such as accented quotes & apostrophes, the registered trademark symbol, etc. These...
0
by: Luis Esteban Valencia | last post by:
Hello. I have a datagrid with one row. I have a button that adds a new row. I am trying to implement that when the user selects one product it must change the price on the quantity column. Anyway...
0
by: jason | last post by:
Hello everyone. I am trying to write some custom command events into a DataGrid. The command that is currently giving me trouble is an "Add" custom command in the footer of a template column. ...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
by: Stefan De Schepper | last post by:
Dear NG, I created a gridlike usercontrol. When clicking on a cell a textbox (or other control, depending on the cell's editortype) is shown. When some other control gets the focus, the textbox...
2
by: Sridhar | last post by:
Hi, I have a user control which has a textbox control and a button. I have created a property to get and set the text box value. In the Page_Load method of the Page that contains the user...
1
by: jqheller | last post by:
Folks I am losing my mind trying to work with the TemplatedWizardStep. I have created a multistep user registration form that collects plenty of user information including a password. At the end...
20
by: teddysnips | last post by:
Weird. I have taken over responsibility for a legacy application, Access 2k3, split FE/BE. The client has reported a problem and I'm investigating. I didn't write the application. The...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.