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

How to question about gridviews

Can you use a gridview, through its smart tag, to call a stored procedure
that requires two parameters and have it delete a specific row? I have used a
grid view with a stored procedure requiring one parameter, but for one page,
I want a gridview that uses a stored procedure that has two parameters and I
cannot get it to work. Can this be done? Does anyone have an example in case
I am missing something in my setup? Thank you.
Nov 23 '06 #1
2 935
I see you have posted this question many times in various different formats.
Although I am not sure at this moment, but in an earlier post, you said you
were using a LineItem table. Why not use the LineItem tables ID as your
datakey for the gridview, then you do not have to pass two parameters into
the stored procedure.

"Wannabe" wrote:
Can you use a gridview, through its smart tag, to call a stored procedure
that requires two parameters and have it delete a specific row? I have used a
grid view with a stored procedure requiring one parameter, but for one page,
I want a gridview that uses a stored procedure that has two parameters and I
cannot get it to work. Can this be done? Does anyone have an example in case
I am missing something in my setup? Thank you.
Nov 23 '06 #2
You know...I did not think of that. I'll try it that way. Thanks.

"Mike Collins" wrote:
I see you have posted this question many times in various different formats.
Although I am not sure at this moment, but in an earlier post, you said you
were using a LineItem table. Why not use the LineItem tables ID as your
datakey for the gridview, then you do not have to pass two parameters into
the stored procedure.

"Wannabe" wrote:
Can you use a gridview, through its smart tag, to call a stored procedure
that requires two parameters and have it delete a specific row? I have used a
grid view with a stored procedure requiring one parameter, but for one page,
I want a gridview that uses a stored procedure that has two parameters and I
cannot get it to work. Can this be done? Does anyone have an example in case
I am missing something in my setup? Thank you.
Nov 23 '06 #3

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

Similar topics

0
by: manuel.ricca | last post by:
Hello, I'm trying to create a table with 2 nested gridviews and then a DetailsView on the right. The DetailsView should show the details of the item selected in the 2nd (nested) GridView: My...
0
by: Roy | last post by:
Hey all, I must be losing my touch. I have made many pages in the 1.1 framework that utilize custom bidirectional paging in datagrids. We've converted over to 2.0 and I've been trying to use the...
1
by: Roy | last post by:
Hey all. Below is the nested syntax on how to make a "codeless" nested gridview embedded within another gridviews templatefield column. Only problem is that it loads slow. REAL SLOW. There has to...
2
by: Hennie | last post by:
I have 2 gridviews on a page, each with own SQL Datasource pointing to different tables on same database. In the 1st date format is "dd/MM/yyyy" Other 1 "MM/dd/yyyy hh:mm:ss" In the SQL...
1
by: Carlos | last post by:
Hi all, I need to place 5 gridviews next to each other. However, during esign time, the gridviews are placed under the previous.I played with the position style of the document but it did not...
0
by: shapper | last post by:
Hello, I created 2 GridViews, A and B. I created 2 datasets from Asp.Net 2.0 profile data. Each GridView has a Bound Field and a Button Field. When a button on GridView A is clicked the...
2
by: parkc | last post by:
I have two gridviews and a transfer all button on both grids. Transferring one record at a time in the right order works. However when I click the transfer all button, the records move to the other...
2
by: DK | last post by:
I have an asp.net web site which has GridViews on many pages. They are different except they all have a common Pager Template. On the DataBound event, I customize this template based on the number...
8
by: =?Utf-8?B?VGltIFRhZmZsaW5nZXI=?= | last post by:
Hello, I'm developing an application with one parent table and 12 child tables. The parent table is patient information and the children contain such things as lab results, medications,...
8
by: stoogots2 | last post by:
I would like to reuse the code for gridview sorting for each of the several GridViews that I have on one page. I've not done this before, so I am seeking a more elegant and reusable solution than...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...

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.