Solved

ASP.net C# SqlDataSource - stored procedure with parameters

Posted on 2012-03-24
3
510 Views
Last Modified: 2012-06-22
Hi

In ASP.net I have a SqlDataSoure parameters for a GridView that uses a stored procedure with certain parameters. How do I call this with different parameters from C# code
0
Comment
Question by:murbro
3 Comments
 
LVL 51

Assisted Solution

by:Ted Bouskill
Ted Bouskill earned 250 total points
ID: 37762158
0
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 250 total points
ID: 37764399
For How the SQL DATASOURCE Works:

http://msdn.microsoft.com/en-us/library/z72eefad.aspx

GridView Examples for ASP.NET 2.0: Editing the Underlying Data in a GridView:

http://msdn.microsoft.com/en-us/library/ms972948.aspx

Dynamically Assign Parameter to SqlDataSource Parameter Collection:

http://geekswithblogs.net/AzamSharp/archive/2006/08/30/89789.aspx
0
 

Author Closing Comment

by:murbro
ID: 37786443
Thanks very much
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question