473,466 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

help needed

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..

Nov 16 '06 #1
3 1367
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

"nil" wrote:
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..

Nov 16 '06 #2
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..

Nov 16 '06 #3
nil

Ciaran O''Donnell wrote:
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

"nil" wrote:
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..

hi..i tried by declaring it as global but it's not working...so can u tell me how to create session in code?and how it works?can u send me code for that?i m new to .net so i'll be thankful to you if u send me code for that...
Nov 16 '06 #4

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

Similar topics

28
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
7
by: ChadDiesel | last post by:
Hello everyone, I'm having a problem with Access that I need some help with. The short version is, I want to print a list of parts and part quantities that belong to a certain part group---One...
7
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. ...
10
by: Mae Lim | last post by:
Dear all, I'm new to C# WebServices. I compile the WebService project it return no errors "Build: 1 succeeded, 0 failed, 0 skipped". Basically I have 2 WebMethod, when I try to invoke the...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
2
by: Steve K | last post by:
I got a bit of a problem I like some help on. I'm designing an online training module for people that work in food processing plants. This is my target audience. These workers have little or no...
3
by: Kitana907 | last post by:
Hi- I'm attempting to write a module that uses and updates info from two tables and does the following: Opens the recordset of a table called "tblstoreinv" If the Needed Field in the...
9
by: smartbei | last post by:
Hello, I am a newbie with python, though I am having a lot of fun using it. Here is one of the excersizes I am trying to complete: the program is supposed to find the coin combination so that with...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
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
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.