473,396 Members | 1,971 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.

return value of a textbox

I will explain more what i have,
I am working on eshop project, Once i click a specific product item, it will
add it to the cart, and there the user have the right to change the quantity.
As you know i am doing a while loop to show all items added to my cart, but i
am not able to get the new quantity updated by the user:
while (objDataReader.Read()== true)
{
szPID = objDataReader.GetString("PID");
intQUANTITY = objDataReader.GetInt32("QUANTITY");
TextBox AddQtytxt = new TextBox();
AddQtytxt.Text = intQUANTITY.ToString();
AddQtytxt.Attributes["onchange"] = "AddQtytxt_TextChanged('" +szPID+ "','"
+AddQtytxt.Text+ "');";
}

i KNOW THAT THE PROBLEM IS on Post back it is recreating the textbox from
scratch, but can you let me know a way to do what i need,
Thx in advance for ur support,
using Visual Studio .net (C#)
--
Camelia FLOWER
Nov 16 '05 #1
0 867

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

Similar topics

1
by: ManuelC | last post by:
Hi I have a form that contains a multiselect listbox (simple multiselect) and a command button. The listbox shows a list of all reports (about 20) available for users to print and the command...
7
by: John S | last post by:
I have an event handler tied to a text box keypress event. All I am trying to do is have it read the key and return it in upper case. Because the event doesn't return anything, I cannot use the...
3
by: Alpha | last post by:
Hi, I have a window C# application. I update the dataset when user finished entering in a text box. But when I want to update the database when OK is pressed, the...
0
by: ~moses brown | last post by:
I have a web form with a multiline textbox. The string value entered into the textbox is inserted into a field in the sql server. If a return is pressed in the web form textbox to start a new line,...
1
by: MDBloemker | last post by:
can anyone help me fathom out how to use this bit of code: Public Class Utilities Public Shared Sub CreateConfirmBox(ByRef txt As WebControls.TextBox, _ ByVal strMessage As String)...
1
by: Jorge Ponte | last post by:
hi I have a Web User Control (ascx) - lets call it "My_WUC" - in a Web form. In that WUC I want have a textbox and a button. I want to click on the button and open a popup (I use javascript for...
0
by: Seok Bee | last post by:
Dear Experts, I am having a wizard control in my web app. I have some textbox controls within the wizard control. At the same time, I have a hyperlink to run a pop-up window for calendar. The...
7
by: Rudy | last post by:
Hello All! I have a value in a textbox(txbTableIDm.Text ) that I would like to use in a paremiter in a SP I wrote, and then have the select statement work off that parememter, retireive a...
6
by: Scotty | last post by:
Hi, I need some info How to return the value from the database My combobox Me.cboTypeAdres.Items.Add("Type Adres") Me.cboTypeAdres.Items.Add("Leverancier")...
9
by: Alexander Widera | last post by:
hi, is it possible to return an object of an unknown (but not really unknown) type with an method? i have the following situation: - a variable (A) of the type "object" which contains the...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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,...

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.