473,770 Members | 6,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting values from datagrid

hello experts....

-i'm having a datagrid with 10 columns and 4 rows and one submit button.
-the fields are eno,ename,eid,a nd 4 check boxes
-after entering values when i clik the submit button the values i entered
must passt to next page and displayed in datagrid and at the same time it
must be inserted in the database

-plz help me...how to do it.

-thx in advance.

regards
siva
Nov 19 '05 #1
4 1544
After submit, fill your data in a dataset. Persist that data in the DB and
save the dataset in Session variable. On the next page get the data from the
Session variable.
Or instead of saving the dataset in Session, you may get the data directly
from the database on the next page.

Hope that helps!
Regards,
Kostadin Kostov

"sivashanka r" wrote:
hello experts....

-i'm having a datagrid with 10 columns and 4 rows and one submit button.
-the fields are eno,ename,eid,a nd 4 check boxes
-after entering values when i clik the submit button the values i entered
must passt to next page and displayed in datagrid and at the same time it
must be inserted in the database

-plz help me...how to do it.

-thx in advance.

regards
siva

Nov 19 '05 #2
After submit, fill your data in a dataset. Persist that data in the DB and
save the dataset in Session variable. On the next page get the data from the
Session variable.
Or instead of saving the dataset in Session, you may get the data directly
from the database on the next page.

Hope that helps!
Regards,
Kostadin Kostov

"sivashanka r" wrote:
hello experts....

-i'm having a datagrid with 10 columns and 4 rows and one submit button.
-the fields are eno,ename,eid,a nd 4 check boxes
-after entering values when i clik the submit button the values i entered
must passt to next page and displayed in datagrid and at the same time it
must be inserted in the database

-plz help me...how to do it.

-thx in advance.

regards
siva

Nov 19 '05 #3
hey man sory to distrub ya

-i dono how to put the particular fields in the dataset
-c the eno,ename i want to put in the session variable..
-wats the problem means...i want to select the particular field ie eno,enmae
from the grid.
-and the other problem is how to put the selected value in the session
variabale

-plz reply experts

-thx in advance

"Kostadin Kostov" <Ko************ @discussions.mi crosoft.com> wrote in
message news:7D******** *************** ***********@mic rosoft.com...
After submit, fill your data in a dataset. Persist that data in the DB and
save the dataset in Session variable. On the next page get the data from the Session variable.
Or instead of saving the dataset in Session, you may get the data directly
from the database on the next page.

Hope that helps!
Regards,
Kostadin Kostov

"sivashanka r" wrote:
hello experts....

-i'm having a datagrid with 10 columns and 4 rows and one submit button.
-the fields are eno,ename,eid,a nd 4 check boxes
-after entering values when i clik the submit button the values i entered must passt to next page and displayed in datagrid and at the same time it must be inserted in the database

-plz help me...how to do it.

-thx in advance.

regards
siva

Nov 19 '05 #4
hey man sory to distrub ya

-i dono how to put the particular fields in the dataset
-c the eno,ename i want to put in the session variable..
-wats the problem means...i want to select the particular field ie eno,enmae
from the grid.
-and the other problem is how to put the selected value in the session
variabale

-plz reply experts

-thx in advance

"Kostadin Kostov" <Ko************ @discussions.mi crosoft.com> wrote in
message news:7D******** *************** ***********@mic rosoft.com...
After submit, fill your data in a dataset. Persist that data in the DB and
save the dataset in Session variable. On the next page get the data from the Session variable.
Or instead of saving the dataset in Session, you may get the data directly
from the database on the next page.

Hope that helps!
Regards,
Kostadin Kostov

"sivashanka r" wrote:
hello experts....

-i'm having a datagrid with 10 columns and 4 rows and one submit button.
-the fields are eno,ename,eid,a nd 4 check boxes
-after entering values when i clik the submit button the values i entered must passt to next page and displayed in datagrid and at the same time it must be inserted in the database

-plz help me...how to do it.

-thx in advance.

regards
siva

Nov 19 '05 #5

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

Similar topics

4
2847
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
2
2019
by: Bradley M. Small | last post by:
Hi -- I am using webmatrix so whatever I try and do is determined by what I can do by hand. That said, I am trying to figure out how to get the original values for a field that is being edited. What I have is a table that had 2 fields in it. Let's say Field1 and Field2. The key to the table is Field1, Field2 so the ddl would look like this: create table MyTable (
3
1673
by: ALPO | last post by:
We have a datagrid built using template columns. Many are text boxes. These text boxes are bound to a datasource as follows: <ItemTemplate> <asp:TextBox id="txtPeriod1" runat="server" columns="1" Font-Size="8pt" text='<%# Container.dataitem ("LaborHoursAm")%>' >
2
2035
by: Colin McGuigan | last post by:
This is a translation of an ASP page to ASP.Net. First, the background: The goal is to have a grid of different settings for the application -- think something along the lines of the Property Page for a control. You have two columns -- the first column is a simple caption, and the second column can be one of a number of controls (textbox, checkbox, dropdownlist, etc) for each row. So row #1 might have a textbox in the second column,...
0
1357
by: Anil Kumar Lakky Reddy | last post by:
I have seen lots of people complaining about not getting updated values from edit columns of datagrid. I had similar problem, I figured I was refreshing the data on each page load. I fixed it by conditinally loading the data on page load. if(!Page.IsPostBack) then only bind and refresh data. Make sure you are not refreshing the data before reading the values from edit textboxes or whatever you are using. Hope that helps for people who are...
3
1572
by: AMD Desktop | last post by:
Hi, I need to add a header to a datagrid. This is the code I am trying to use: Dim dgStaffingReport As New DataGrid Dim dgitem As New DataGridItem(0, 0, ListItemType.Header) Dim mycell As New TableCell()
3
1278
by: Moojjoo | last post by:
I created an user control (.ascx file) with a DropDownList (DDL) with the following code behide: public string Selected_dept_value() { string dept_value = dept_dropdown.SelectedValue; return dept_value; } All the values were added via the visual interface.
2
1695
by: Kiran Kumar Pinjala | last post by:
Hi, May be this is silly, or I just need a second pair eyes to look at this. I am trying to get values that I have edited in a datagrid and update the values with those values. Here is the code that I am using in my update command. TextBox txtProdName = (TextBox)e.Item.Cells.Controls; TextBox txtSuppID = (TextBox)e.Item.Cells.Controls; TextBox txtCatID = (TextBox)e.Item.Cells.Controls;
1
5311
by: nate axtell | last post by:
In VB .NET I load the contents of an Excel or comma seperated values file into a dataGrid (via a datatable). One of the columns has a comma in the name of the column. So for the comma separated values files I put double quotes are the column name. What I see is that the name ends up getting displayed correctly in the DataGrid column, "Class (1,2,3)". When I click on the column to sort I see the following error: "Additional information:...
0
1756
by: Erik | last post by:
Why isn't my update method getting called? Pasted below is an aspx from a 1.1 application I'm working on. It has two textboxes and a button for inserting data into the database, and a datagrid for editing and deleting data. When a user clicks on the "Edit" button in the datagrid, Edit() method is called and the appropriate row is changed into textboxes. And if user clicks on the "Update" button, the Update() method is fired. But if...
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10225
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9867
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7415
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.