473,399 Members | 4,254 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,399 software developers and data experts.

Textbox1.Text wont display Value

This is the oddest thing I've ever seen.

We have an aspx page with some user controls, one is a main, another is
a status, which has an edit button.

on the main control, we have some dropdowns and textboxes. When the
edit button is clicked, it will reload the page and the event is picked
up by the main control.

On the page load, when I set a breakpoint on Textbox1.Text = "12345",
it is set, confirmed by the command window, but wont display on the
page? I've traced it through and nothing. There isn't any javascript
that would change this.

Any ideas?

If (Request.Params.Get("__EVENTTARGET") = "edit") Then
Textbox1.Text = "Test"
End if

Aug 18 '06 #1
2 1538
If you are trying to trap when the edit button is clicked, you should be
attaching a handler to its Click event. That would make this a lot more
readable, and a lot easier to debug.

The breakpoint is set - but does it actually stop there?

Also, is there code that runs afterwards, that changes the value of the
textbox? what about client side code?

<db****@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
This is the oddest thing I've ever seen.

We have an aspx page with some user controls, one is a main, another is
a status, which has an edit button.

on the main control, we have some dropdowns and textboxes. When the
edit button is clicked, it will reload the page and the event is picked
up by the main control.

On the page load, when I set a breakpoint on Textbox1.Text = "12345",
it is set, confirmed by the command window, but wont display on the
page? I've traced it through and nothing. There isn't any javascript
that would change this.

Any ideas?

If (Request.Params.Get("__EVENTTARGET") = "edit") Then
Textbox1.Text = "Test"
End if

Aug 18 '06 #2
Yes, the breakpoint stops there. It shows that it's setting the value.
I checked the code and couldn't find where it would set the value,
even on the client side.
Marina Levit [MVP] wrote:
If you are trying to trap when the edit button is clicked, you should be
attaching a handler to its Click event. That would make this a lot more
readable, and a lot easier to debug.

The breakpoint is set - but does it actually stop there?

Also, is there code that runs afterwards, that changes the value of the
textbox? what about client side code?

<db****@gmail.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
This is the oddest thing I've ever seen.

We have an aspx page with some user controls, one is a main, another is
a status, which has an edit button.

on the main control, we have some dropdowns and textboxes. When the
edit button is clicked, it will reload the page and the event is picked
up by the main control.

On the page load, when I set a breakpoint on Textbox1.Text = "12345",
it is set, confirmed by the command window, but wont display on the
page? I've traced it through and nothing. There isn't any javascript
that would change this.

Any ideas?

If (Request.Params.Get("__EVENTTARGET") = "edit") Then
Textbox1.Text = "Test"
End if
Aug 21 '06 #3

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

Similar topics

3
by: polarz | last post by:
I'm having trouble getting items from different classes to display in my textBox. e.g. private void button2_Click(object sender, System.EventArgs e) { someData sd = new someData();...
5
by: Hareth | last post by:
Is there a way to take a text, from a textbox & later passwordChar the text. I'm not using a masked textbox. I tried: textBox1.PasswordChar = '*'; but this didn't change my text. I know how...
3
by: Craig G | last post by:
what way do you code it? i tried the following but it wouldnt display it lblAdd_info is a hidden field in the cell itself that contains the data i want to display in the tooltip text. i added the...
4
by: Ken Soenen | last post by:
The code below illustrates my problem which is: I'm trying to access the TEXT from TextBox1 which is on Form1. Line "aa = Form1.TextBox1.Text" produces the error--Reference to a non-shared member...
1
by: emailseshu | last post by:
Hi, Iam trying to check the Client Side CallBack Feature in ASP.NET Iam able to call th RaiseCallbackEvent from the Client Side Javascript Function but when I go to the debug mode to check the...
3
by: Mark Ivey | last post by:
VS.Net 2002 - Visual Basic I am pretty new to VB in general, and I am having a bit of difficulty finding the right method or property to link a textbox to a filelistbox. Here is the...
0
by: ricklafleur | last post by:
I'm using CSharp/ASP.NET 2.0 and trying to create a simple search page that records the user query in the URL (so can be bookmark) and also re-writes the query int the original TextBox. This only...
4
truthlover
by: truthlover | last post by:
Is there a way to have text display in a data entry form that will not be stored as an actual value (like a default value does)? Status bar and Tool tips wont work. I need something that will...
3
by: happyse27 | last post by:
Hi All, I wanted to align the text box for user registration but the code just wont budge... Kindly advise what is wrong? Cheers... Andrew <HTML>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.