help needed

N

nil

hello everyone..my self nilesh and i m new to vb.net and developing one
web application..and now i've one problem...the problem is like that i
m creating one datatable and in that user will add new record by making
dataentry and that record is stored and when make dataentry second time
the first one will be overwrited...here is the coding that i did..plz
see it
dim dt as new datatable("Book Order")
dim dr as datarow=dt.newrow()
dt.columns.add(new datacolumn("Id",gettype(string)))
dr.("Id")=txtid.text
dt.rows.add(dr)
datagrid1.datasource=dt
datagrid1.databind()
here i show the coding for only one column i did the same coding for
all the column...hope
u'll get the solution for my problem..tell me what should i do?
and i also want to use the messagebox in my application so how can i
use it?i think for that i've to use javascript then tell me the coding
for that s i don't know that..and i also want to use the menu so how
can i do that?should i use style.css or something else?
and plz keep in mind that i can't use control in my application s the
company for which i m developing the application is don't want it..
 
G

Guest

You are remaking the table everytime the user enters a new item and then
adding the item and data binding it. You need to cache the table in the
session or something each time so you are adding the new rows to the same
table each time.


Ciaran O'Donnell
 
N

nil

thanks but i tried also declaring both the declaration of table and
also as global in that class ...but same thing is happening..so can u
tell me how to create session..and can u tell me how to use..and i'll
be thankful to u if u can send me code for that s i m new to .net..
Thanks..
 
N

nil

Ciaran said:
You are remaking the table everytime the user enters a new item and then
adding the item and data binding it. You need to cache the table in the
session or something each time so you are adding the new rows to the same
table each time.


Ciaran O'Donnell
 

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

Similar Threads

Datagrid Datatable Insert rows and data 6
HelpMeDataView 1
DataGrid and Simple Sorting 1
DataViewHelp 5
HelpMe 2
Solution Required 2
Untyped DataSet as datasource in Reportviewer 0
ViewState and DataTable 1

Top