All Questions
Tagged with insert-update asp.net
31
questions
-2
votes
1
answer
20
views
I try to update name record but I can't
protected void submit_Click(object sender, EventArgs e)
{
Label2.Text = Session["id"].ToString();
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["...
1
vote
1
answer
184
views
Updating Records on Zoho using C#
I am trying to update records on a Zoho database and there does not seem to be a single piece of C# code online for me to use to help find my issue. My code is:
WebRequest request = WebRequest.Create(&...
1
vote
1
answer
159
views
C# SetValues, EntityState.Modified not working
I have the following entries in my database:
MeetingID AgendaItem LegistarID Title
48620 3 60710 Comment
48620 5 60615 Extending report date
48620 ...
0
votes
2
answers
603
views
How do I create an empty model to pass to an insert-update view when there are more than on model in the dbcontext?
I need to create an empty form for database update. In the controller this is called: public ViewResult Create() => View("Edit", new List());
<TargetFramework>netcoreapp2.2</...
1
vote
3
answers
5k
views
How to get selected value from checkbox in C#
I have the following line of code in insert.aspx.
Source Code:
<asp:CheckBox ID="chkIncludeSignature" runat="server" Text="Include Signature" />
Code Behind:
command1.Parameters.AddWithValue(...
1
vote
1
answer
132
views
how to make current primary key update itself instead of table generating a new primary key Asp.net mvc
I have a application where stores can complete a questionnaire.
within this application I have two tables
db.StoreAud(pk:AuditId) which contains all the stores information
db.storequests(pk:...
0
votes
3
answers
83
views
ASP.NET unable select and Update
protected void btnLogin_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection("Data Source=MCDU11;Initial Catalog=VisitorManagement;Integrated Security=True");
...
0
votes
4
answers
66
views
Error in Updating a Record
Hello Everyone I'm new in here. I am currently making an asp.net project monitoring module. At this moment I am in the process of editing the project form and adding resources to the selected task in ...
0
votes
2
answers
86
views
Update few Properties of Model after Inserting in database
In my ASP.NET Web forms app, I have a Model whose ID is of type IDENTITY of type int. In my Insert, after saving the item, I create a directory of that itemId & want to save images in it & ...
0
votes
0
answers
109
views
Update one/multiple boolean column ASP.NET
I want to update a Boolean bound column in gridview without adding any
Command Type : Edit Column to grid
I want to update it in grid directly. its not important if its server side or client side,...
1
vote
5
answers
1k
views
Insert/Update in asp.net and SQL SERVER 2008
I am trying to insert a record if requested prodName doesnot exist in database. If it exists I want to update the value of quantity attribute. I have used the following it neither inserts nor Updates ...
0
votes
2
answers
928
views
reducing stock by one on selection
I am trying to select film by using on select command, print the title in a label once selected.. that works well.
next part is the selected film will then decrement 1 from the database stock on ...
0
votes
1
answer
98
views
Entity Framework duplicating class when trying to insert related entity
I have an ASP.NET application with a view trying to update an existing entity's title, price, and another bool and string. I have a simple one to many relation of Modifier_Categories and Modifiers. ...
0
votes
2
answers
187
views
Dynamically created content is updating "a step behind" on button click
So I am creating a simple question/answer format and having an issue when submitting an answer. I dynamically create divs/buttons/textboxs from the database via a "RenderQuestions()" function. This ...
1
vote
1
answer
142
views
Data are missing after updating
Okay I'll discuss my problem with images so we can solve it easily. Hoping.
First, The image below shows the PersonalInfo gridview under PersonalInfo.aspx
Second, The image below shows the ...