Advertisement

06.06.2005 at 07:02AM PDT, ID: 21448081
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.6

Updating a database table from a dataset.

Asked by pgilfeather in Programming for ASP.NET

Tags: , ,

Can someone please take a look at the following code and advise me as to what might be preventing the update.

There is no error(the good news), but there is no update either(the bad). And it follows that with every bit of good news comes........

Your help would be greatly appreciated.

Thanks in advance

Paul G  


Dim ds As New DataSet
            ds = CType(Session("CachedDataset"), DataSet)

            Dim dsChanges As New DataSet
            dsChanges = ds.GetChanges(DataRowState.Modified Or DataRowState.Added)

            dgDisplayChanges.DataSource = dsChanges
            dgDisplayChanges.DataBind()

            Dim da As New SqlDataAdapter
            Dim cnn As New SqlConnection(Constants.elearningConnectionString)
            Dim cmdUpdate As New SqlCommand("UpdateVideoDetailTable")
            da.SelectCommand.CommandType = CommandType.StoredProcedure
            cmdUpdate.Connection = cnn



            With cmdUpdate.Parameters
                .Add("@RETURN_VALUE", SqlDbType.Int, 4)
                .Item(2).Direction = ParameterDirection.ReturnValue
                .Add("@VideoDetailID", SqlDbType.Int, 4, "VideoDetailID")
                .Add("@VideoTitle ", SqlDbType.VarChar, 500, "VideoTitle")
                .Add("@VideoDuration", SqlDbType.Decimal, "VideoDuration")
                .Add("@VideoURL", SqlDbType.VarChar, 1000, "VideoURL")
                .Add("@GlobalAccessID", SqlDbType.Int, 4, "GlobalAccessID")
            End With

            da.UpdateCommand = cmdUpdate
            da.Update(dsChanges, "VideoDetail")
        Catch ex As Exception
            lblError.Text = ex.Message
        End Try

Here is the sp that is being run in the background.

CREATE PROC procUpdate
@VideoDetailID Int,
@VideoTitle varchar(500),
@VideoDuration Decimal,
@VideoURL Varchar(1000),
@GlobalAccessID Int
AS
Update dbo.tblVideoDetail
Set VideoTitle=@VideoTitle,
VideoDuration=@VideoDuration,
VideoURL=@VideoURL,
GlobalAccessID=@GlobalAccessID
WHERE VideoDetailID=@VideoDetailIDStart Free Trial
[+][-]06.06.2005 at 07:04AM PDT, ID: 14153283

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:09AM PDT, ID: 14153314

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:11AM PDT, ID: 14153336

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:15AM PDT, ID: 14153357

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

Zone: Programming for ASP.NET
Tags: updating, dataset, table
Sign Up Now!
Solution Provided By: b1xml2
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.06.2005 at 07:18AM PDT, ID: 14153382

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:18AM PDT, ID: 14153388

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:22AM PDT, ID: 14153412

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:22AM PDT, ID: 14153413

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.

 
[+][-]06.06.2005 at 07:25AM PDT, ID: 14153434

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.

 
[+][-]06.06.2005 at 07:26AM PDT, ID: 14153451

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:28AM PDT, ID: 14153466

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:35AM PDT, ID: 14153534

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.

 
[+][-]06.06.2005 at 07:37AM PDT, ID: 14153555

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.

 
[+][-]06.06.2005 at 07:39AM PDT, ID: 14153571

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.06.2005 at 07:40AM PDT, ID: 14153582

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.

 
[+][-]06.06.2005 at 07:44AM PDT, ID: 14153619

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 07:52AM PDT, ID: 14153701

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.

 
[+][-]06.06.2005 at 07:59AM PDT, ID: 14153768

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.06.2005 at 08:19AM PDT, ID: 14153988

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.

 
[+][-]06.06.2005 at 08:55AM PDT, ID: 14154400

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.

 
[+][-]06.06.2005 at 09:15AM PDT, ID: 14154610

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.07.2005 at 02:46AM PDT, ID: 14160199

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.

 
[+][-]06.07.2005 at 05:57AM PDT, ID: 14161327

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.07.2005 at 06:22AM PDT, ID: 14161532

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]06.07.2005 at 08:12AM PDT, ID: 14162698

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.

 
[+][-]06.07.2005 at 08:15AM PDT, ID: 14162737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]06.16.2005 at 06:20AM PDT, ID: 14230783

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

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