Tagged Questions
0
votes
2answers
49 views
VB.net - Pass Custom Parameter in SQL Update Command
I am using a Gridview with SQLDataSource Select/Insert/Update command. It works fine for updating or changing value using the Gridview. However recently I added another plugin which use Javascript to ...
0
votes
0answers
192 views
Context.User.Identity.GetUserId() doesn't return any value
Why the following code doesn't return any data? There are values in the database for Context.User.Identity.GetUserId()
ASPX markup:
<asp:SqlDataSource ID="owner_information" runat="server" ...
1
vote
1answer
137 views
Change inline to code behind
I have the following code in an aspx page
<asp:DataList ID="MissionaryDataList" runat="server" DataKeyField="MissionaryID" DataSourceID="MissionaryDataSource" BorderStyle="Solid" BorderWidth="2px" ...
0
votes
1answer
785 views
using selectcommand on code behind with gridview
I have a sqldatascource that I need to pass null values to it and then use the selectcommand specified by a stored procedure and then using the result query to populate a gridview on the page load
...
0
votes
2answers
3k views
Creating a SelectCommand in code behind which works identically to creating one in the SQLDataSource
I'm using asp.nets webforms and gridview to create large data tables on my website. I also have a very simple method in code behind which allows the entire gridview to download to an excel file. This ...
1
vote
2answers
14k views
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="...
0
votes
1answer
737 views
ASPxCombobox not fetched from SQLdatasource saved in session
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["SavedSQLSources"] == null)
SavedSQLSources = new Dictionary<...
2
votes
2answers
1k views
referencing control IDs from code behind that is in a repeater
This week I had a problem of trying to determine what control to use to be able to display data from multiple data sources in a non-grid looking way. Thanks to this forum, I have learned that the ...
1
vote
3answers
13k views
GridView RowUpdating SqlDataSource.Update from CodeBehind
So I am having an issue with doing an update in a Gridview during an OnRowUpdating event.
What I am trying to do is set the UpdateCommand in an SqlDataSource then update using that command. The ...
0
votes
1answer
5k views
ASP.NET SqlDataSource parameter declaration in code behind
I'm implementing SqlDataSource in code behind. Here is my code:
var sqlDataSource = new SqlDataSource
{
ConnectionString = _constr,
...
0
votes
2answers
191 views
Is possible to insert using sqldatasource without defaultvalue property?
Is possible to perform insert operation on sqldatasource in code-behind without using defualt value property? Something like provide some key-value collection for the parameters and use the Insert() ...