473,397 Members | 2,099 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,397 software developers and data experts.

Updating the Database from a Webform

Hi, I am trying to update my database from a WebForm. I
am not getting an error but the update routine isn't
working. Do you have any ideas.
In properties, my sqlcommand.commandtext =UPDATE
t_loan_info SET l_tpr = @l_tpr, l_loanAmt = @l_loanAmt
where l_accessnum='12075'
My <Click Event> is pasted below.

Button Click event>

With SqlCommand1

'.Parameters("@l_accessnum").Value =
DropDownList1.SelectedItem.Text
'.Parameters("@num").Value = TextBox2.Text
.Parameters("@l_tpr").Value = TextBox10.Text
.Parameters("@l_loanamt").Value =
TextBox3.Text
End With

SqlConnection1.Open()
SqlCommand1.ExecuteNonQuery()
SqlConnection1.Close()
TextBox3.DataBind()
TextBox10.DataBind()

Page.DataBind()

I'd appreciate any assistance.

Thank you,
Bill
Nov 20 '05 #1
1 1040
Cor
Hi Billy,

I dont know if I or someone here can help you, so take a change in the
newsgroup
microsoft.public.dotned.framework.adonet, it is filled will all of this kind
of questions.

But maybe I can give it a try, but therefore I think I need the code, that
you are using to fill the webpage with the data, because I think you are
mixing things up.

Cor
Hi, I am trying to update my database from a WebForm. I
am not getting an error but the update routine isn't
working. Do you have any ideas.
In properties, my sqlcommand.commandtext =UPDATE
t_loan_info SET l_tpr = @l_tpr, l_loanAmt = @l_loanAmt
where l_accessnum='12075'
My <Click Event> is pasted below.

Button Click event>
With SqlCommand1
'.Parameters("@l_accessnum").Value =
DropDownList1.SelectedItem.Text
'.Parameters("@num").Value = TextBox2.Text
.Parameters("@l_tpr").Value = TextBox10.Text
.Parameters("@l_loanamt").Value =
TextBox3.Text
End With
SqlConnection1.Open()
SqlCommand1.ExecuteNonQuery()
SqlConnection1.Close()
TextBox3.DataBind()
TextBox10.DataBind()
Page.DataBind()

Nov 20 '05 #2

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

Similar topics

4
by: Angel | last post by:
How can I update the datatable with the datagrid values after the datagrid itself has been modified.? I assume it's not automatically done. Thanks.
0
by: Tom Wild | last post by:
Hi I am creating a webform in VB.Net which connects to an Access database. I can get the webform to connect to the database fine and also to download data but when I try and update the...
0
by: Arne Beruldsen | last post by:
I'm using a Webform. I have a very simple Access Database with mulitple tables. As the user scrolls thru the rows...one of the items will be updated via input from a text box. When the user hits...
2
by: Comfort | last post by:
How can I load a picture direct from the database to my webform? Right now I can load it from the database to a certain drive and load it from that drive to my webform using .imageurl
1
by: sekisho | last post by:
I'm dynamically adding a column of labels and a column of text boxes to a panel on a webform, based on data returned from an SQL query, which the user builds by selecting options from a few...
2
by: Jeremy Dillinger | last post by:
I have a program setup to pull data from a database. My database table has things such as (category, Item, price, etc.) In my program I want to have multiple list boxes that will have a pull down...
1
by: prp | last post by:
Hi I need to add new record in the access database in asp webform. But i m getting the probem as given below: Current Recordset does not support updating. This may be a limitation of the...
23
by: tanya2001 | last post by:
hi all.. I am trying to update my datagrid in my webform...but its not getting updated..though in the database it removing the <null> and inserting a blank field....its not taking the input which m...
0
by: servantofone | last post by:
If someone could point me in the right direction, that's all I'm looking for. It doesn't need to be super specific, but I'm wondering what technology I should research and the best options to solve...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.