commas apearing inn my textboxes

A

AlanM

I have asp.net page with a asp:table
in the page load function I build the table with stock items from a database
with some textboxes to enter amounts into. By pressing a button the user can
then add new items that I get from another table in the database. All works
well except that each time I add a new row I get a comma entered into the
textbox in the rows that were built during the page load event.

Lets say I have 10 rows added in the page load event, then I add a further 3
rows via the button event, I will get a coma in the first 3 rows added in
the page event.

if I was to add value to the text boxed added via button event, it will
place the values in the correct textbox but also add the value to a textbox
in a row at the top of the table thats was created with the page load event
also.

Anyone familiar with this problem?
 
S

Sjaakie

AlanM schreef:
I have asp.net page with a asp:table
in the page load function I build the table with stock items from a database
with some textboxes to enter amounts into. By pressing a button the user can
then add new items that I get from another table in the database. All works
well except that each time I add a new row I get a comma entered into the
textbox in the rows that were built during the page load event.

Lets say I have 10 rows added in the page load event, then I add a further 3
rows via the button event, I will get a coma in the first 3 rows added in
the page event.

if I was to add value to the text boxed added via button event, it will
place the values in the correct textbox but also add the value to a textbox
in a row at the top of the table thats was created with the page load event
also.

Anyone familiar with this problem?

Check your INSERT query for a misplaced comma.
 
A

AlanM

Sjaakie said:
AlanM schreef:

Check your INSERT query for a misplaced comma.

no its not that.

as the right data is placed in teh orect textboxes, it is that the same data
is then placed in the textboxes that have already been placed in the table.
It actual adss the data to the data that is already there like such, 10,10,
if there is no data for that textbox it will place a comma like ,,
 
S

Sjaakie

AlanM schreef:
no its not that.

as the right data is placed in teh orect textboxes, it is that the same data
is then placed in the textboxes that have already been placed in the table.
It actual adss the data to the data that is already there like such, 10,10,
if there is no data for that textbox it will place a comma like ,,


Do you use a html text input box? (<input type="text" ...>)
If so, check whether you have multiple boxes with identical IDs.
 

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

Top