473,404 Members | 2,170 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,404 software developers and data experts.

grid updating and stored procedure

I have this issue. I need to create a web page where the user can run
some searches. They will get retruned to the web site 0, 1 or many
records which I will put in a data grid. The user will then be able
to update a single field in any of the rows. If they get 10 rows
returned in their search i will let them update as many as they want.
It will be a simple field of 10 characters no more than that. but I
wonder how does this get done? since a dataset doesn't exist after
the web page is loaded. after the user clicks a submit button how do
i get the updates they have done, how do i know which ones they
updated, and how do I get the change back to sql server? i am told I
have to use a stored procedure. does the stored procedure get exec'ed
for each row that was changed or do I send all the changes back
together at once to the stored procedure? thahnk you this is new for
me. it will be in c# but if you type VB i can read that too.
Nov 19 '05 #1
2 1195
The dataset is there during server side processing residing on the server.
Now, if you let the dataset take care of pulling your data and save the
changes back to the db, read this for more
http://msdn.microsoft.com/library/de...dWriteData.asp

Else, if you want to update changes in your grid yourself using your own
logic, see more in
http://msdn.microsoft.com/library/de...setupdates.asp

let me know if you need more explanation.

regards
Joyjit

"Antonio Policelli" <bl*****@yahhhoooo.com> wrote in message
news:uI****************@TK2MSFTNGP12.phx.gbl...
I have this issue. I need to create a web page where the user can run
some searches. They will get retruned to the web site 0, 1 or many
records which I will put in a data grid. The user will then be able
to update a single field in any of the rows. If they get 10 rows
returned in their search i will let them update as many as they want.
It will be a simple field of 10 characters no more than that. but I
wonder how does this get done? since a dataset doesn't exist after
the web page is loaded. after the user clicks a submit button how do
i get the updates they have done, how do i know which ones they
updated, and how do I get the change back to sql server? i am told I
have to use a stored procedure. does the stored procedure get exec'ed
for each row that was changed or do I send all the changes back
together at once to the stored procedure? thahnk you this is new for
me. it will be in c# but if you type VB i can read that too.

Nov 19 '05 #2
CMA
hi,

try to get something from this article.
http://msdn.microsoft.com/library/de...isualBasic.asp

hope this helps,
CMA

"Antonio Policelli" <bl*****@yahhhoooo.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
I have this issue. I need to create a web page where the user can run
some searches. They will get retruned to the web site 0, 1 or many
records which I will put in a data grid. The user will then be able
to update a single field in any of the rows. If they get 10 rows
returned in their search i will let them update as many as they want.
It will be a simple field of 10 characters no more than that. but I
wonder how does this get done? since a dataset doesn't exist after
the web page is loaded. after the user clicks a submit button how do
i get the updates they have done, how do i know which ones they
updated, and how do I get the change back to sql server? i am told I
have to use a stored procedure. does the stored procedure get exec'ed
for each row that was changed or do I send all the changes back
together at once to the stored procedure? thahnk you this is new for
me. it will be in c# but if you type VB i can read that too.

Nov 19 '05 #3

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

Similar topics

3
by: 8leggeddj | last post by:
Hello, I am having a problem when using access xp as a frontend for sql server 2000. I have been trying to update a number of stored procedures (Just simple adding fields etc) which results in...
5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
3
by: Ryan.Chowdhury | last post by:
This is a general question regarding the use of view and stored procedures. I'm fairly new to databases and SQL. I've created a SQL database using an Access Data Project ("ADP") and I'm...
1
by: Hrvoje Voda | last post by:
I'm reading information from store procedure and I would like to put the result in dataGrid. In all examples and books about working with store procedures is the example only with console. I'm...
6
by: Sebastian Santacroce | last post by:
How do I get a datetime field from a database to show just time in the datagrid. The default just shows date. Thank you Sebastian
1
by: larry mckay | last post by:
Hi, I'd like to use a datagrid with a 1. most grid's use SQL data adapters as a datasource. I'd like to use a parametrized query into a stored procedure (specifically a sqldatareader)...
3
by: Roger Withnell | last post by:
I have a framed website. I plan to include in default.asp a routine to check if the annual subscription is due from the records in the People table. If so, then the routine would send emails...
1
by: Fir5tSight | last post by:
Hi All, This seems to be a difficult problem for me. Hope you can help me out... I have a program whose major part is a grid that displays several columns from data obtained from a stored...
12
by: brwalias | last post by:
Hi, using .net 2 sql server 2005 Here is my situation: I'm passing a variable in the url from a selection on Page A and need to display the results on the Results page be based on that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...
0
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,...

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.