Detailsview itemupdating new values

Here is my detailsview: I tried adding a label to my page and then once updated Name had been assigned the value of the textbox I tried assigning that value to the label and it printed out the old product name not the one in the textbox.

I can't see anything wrong with the code and it's driving me mad. hi, i think you miss something, try to see the table where you save the value of the fields you entered if it change anything, if it change anything, then you have put some code on your SP that retrieves data after the UPDATE code that you have.

The Details View control lacks a property to indicate the default value of an input field. You might think that the Details View control fires an event that, properly handled, gives you a chance to set the default value of input fields. More precisely, the Details View control doesn t fire a specific event that would let you do so.

However, in the long list of events fired by the Details View control, there s one that you can leverage to implement a little piece of logic to set default input values.

You can choose the most appropriate combination of data fields to render each piece of information conveniently.

The default set of data fields includes templated, image checkboxes, and hyperlink fields.

After doing this, we can retrieve the Data Key value in the following ways. So, we call Databind() method in the Page Index Changed event handler and then retrieve the datakey value as shown in the code given below.

The code to retrieve Data Key value in the Data Bound event of details View control is given below.




In this column, I ll first answer a specific question posed by a reader, then move on to putting the solution in perspective and extending other features of the Details View control.Filling out the form and inserting a record into the database works well.


  1. Pingback:

  2. eric   •  

    His energy and big personality brought people’s hands in the air and the crowd swaying back and forth to the beat.

  3. eric   •  

    As the name implies, the show is pretty steamy, with host Rose Caraway acting as the show’s “Sexy Librarian,” reading erotic fiction spanning from the usual fare to zombie horror erotica. The sexual health educator with Indiana University’s famed Kinsey Institute offers a no-nonsense podcast answering all of your burning sex and love questions.

  4. eric   •  

    A successful POF login will bring you to your inbox.

  5. eric   •  

    However this is not the first time that conversational interaction had become a boon for the erotic entertainment industry.

  6. eric   •  

    Other plaintiffs in the case included former Chicago Bulls star Scottie Pippen and former NFL linebacker Shawne Merriman. With 14 seconds remaining in a game with North Carolina, a game that the Tarheels were on the way to winning 86-72, Tyler Hansbrough rebounded his own miss from the foul line and was smashed in the face by Duke's Gerald Henderson, breaking his nose.

  7. eric   •  

    International Dating Agency Pair Ukraine was created for men who are really interested in serious relationship, marriage and family creation with Ukrainian girl.

  8. eric   •  

    Either you dig his halitosis and pronounced limp or you don’t.

  9. eric   •  

    Among the pros: “It’s allowing women to go out and have a good time,” Stepp said.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>