473,378 Members | 1,393 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,378 software developers and data experts.

need some assistance

Hi,
I need to pass back multiple selection from an asp.net app datagrid and
update a table. How should I handle this? I get the values by looping he
datagrid, but, do I execute the update stored procedure on every iteration?
Or is there a way to pass all the selection at once to the sp?

Thanks
Dec 15 '06 #1
2 901
Hi,
if you dont want to fire update query for each and every row then you can
implement bulk insert/update by using OPENXML.You will get complete working
code for it in the followinf link:
http://www.codeproject.com/cs/databa...ic_OpenXml.asp

Although it is for bulk insert you can write code for bulk update also by
digging little bit.If you are still not able to get around then please feel
free to ask me.

Thanks and regards,
Manish Bafna
MCP and MCTS

"Chris" wrote:
Hi,
I need to pass back multiple selection from an asp.net app datagrid and
update a table. How should I handle this? I get the values by looping he
datagrid, but, do I execute the update stored procedure on every iteration?
Or is there a way to pass all the selection at once to the sp?

Thanks
Dec 15 '06 #2
Hi,
you will find following url also useful:
http://support.microsoft.com/kb/315968

Although thse links will not provide exact solutions to your probelm but by
modifying these codes littel bit you can solve your probelm.

Thanks and Regards,
Manish Bafna
MCP and MCTS

"Chris" wrote:
Hi,
I need to pass back multiple selection from an asp.net app datagrid and
update a table. How should I handle this? I get the values by looping he
datagrid, but, do I execute the update stored procedure on every iteration?
Or is there a way to pass all the selection at once to the sp?

Thanks
Dec 15 '06 #3

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

Similar topics

2
by: lagunasun | last post by:
not shitass responses. People like this david fellow, degrade the board. again, here is my msg, and thanks again for any assistance! I am going from learning c++ console apps to windows, and need...
0
by: Jawahar | last post by:
All I had posted this in the remote assistance group and could not get any replies so I thought that I could try in the developer group Thanks One of the issues we face when helping our remote...
2
by: CSDunn | last post by:
Hello, I need some assistance with error handling in an Access 2003 Project form. The project is has a data source connection to a SQL Server 2000 database. The main form is named...
0
by: Joe Ross | last post by:
(Apologies in advance if there is a better forum for asking advice on this topic). Our ASP.NET application occasionally starts spitting out OutOfMemory exceptions. When this happens, the memory...
0
by: mwalk66 | last post by:
I have been able to create a web based company phone book by retrieving the last name, first name, email address and telephone # from active directory. However I need serious assistance in...
1
by: Chris | last post by:
Hi, How can I post a web request like http://site.com/lookupvalue.aspx?id=xxxxx and then parse the request ex Home
0
by: serpius | last post by:
Hello Everyone, I am a beginner in VB.Net 2003 and am taking classes in beginning VB.net. To make a long story short, I am looking for real samples of coding in Console Apps. I am the type of...
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
3
by: gaurav92K | last post by:
sir i am working in a company . there are many pc. i want to use remote assistance. i configure all group policy which are related remote assistance.and i enable service through remote in system...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.