Advertisement

05.27.2008 at 02:46PM PDT, ID: 23436490
[x]
Attachment Details

update table in asp.net

Asked by dshi15 in Visual Studio, Programming for ASP.NET, SQL Query Syntax

I have edit customer page. When user click on update record button, the record is not updated. Why?

Code fragment is here.

select  Customer.service from customer where customerId=1

If Not IsDBNull(rd("service ")) Then service  = rd("service ")

ddlservice.SelectedValue = Service

When user selected different Service  from dropdown list

I have btnUpdate

sql = "Update customer set Service='" & ddlservice.SelectedValue.tostring  & " where customerId=1"

Why customer table is not updated?

Thanks in advance.


Start Free Trial
[+][-]05.27.2008 at 03:11PM PDT, ID: 21656210

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Programming for ASP.NET, SQL Query Syntax
Sign Up Now!
Solution Provided By: MrClyfar
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.27.2008 at 04:53PM PDT, ID: 21656636

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 08:13PM PDT, ID: 21657450

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.01.2008 at 08:35AM PDT, ID: 21687430

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628