Top "Sqldatasource" questions

The SqlDataSource control enables you to use a Web control to access data located in a relational database, including Microsoft SQL Server and Oracle databases.

'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value

I'm using TemplateField in GridView to implement edit/delete from database. I'm Querying Data with the SqlDataSource Control. when I …

c# asp.net gridview data-binding sqldatasource
How to specify parameter value for stored procedure in SqlDataSource

Being new to using the declarative syntax of SqlDataSource I am trying to figure out a way to set the …

asp.net stored-procedures parameters sqldatasource
asp:SqlDataSource to DataSet Items

I have an asp:SqlDataSource ID="SqlDataSource1" tool on my aspx page, what I want to do in the c# …

c# .net sqldatasource
The GridView 'GridView1' fired event Sorting which wasn't handled

I have created a gridview using toolbox in c#, it is able to show & sort the items in my …

c# data-binding gridview sqldatasource
SQLDatasource parameters

How can i set sql parameters for an sqlDatasource in the code behind? I am trying like this: int id=1; …

c# asp.net sqldatasource
Setting the value of insert parameter of SqlDataSource in codebehind

I have this SqlDataSource in my form: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" InsertCommand="…

c# parameters insert code-behind sqldatasource
Updating gridview with SqlDataSource in asp.net

i want to update the records from the gridview using SqlDataSource, here is what i am doing. below is my …

asp.net gridview sql-update sqldatasource
ASP.NET Setting parameter for SqlDataSource programatically does not work for postback

I want to set a parameter for a SqlDataSource programmatically as described in Step 5 at http://www.asp.net/data-access/…

asp.net gridview sqldatasource
How to use User.Identity.Name as a parameter for SqlDataSource in ASP.NET?

For SqlDataSource I can configure the external source for the incoming paramater. For example it might be a QueryString, Session, …

c# asp.net parameter-passing sqldatasource
Accessing data from my SqlDataSource in the code behind C# .net

I have a contact page where there is a datalist of people and if you click on one of them …

c# .net asp.net sqldatasource