what's use of original_{0}" in update command in grid view

Discussion in 'ASP' started by shyam_oec, Jan 9, 2010.

  1. shyam_oec

    shyam_oec New Member

    Joined:
    Nov 26, 2007
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Developer, .NET Framework
    Location:
    Jamshedpur
    hi,
    In grid view while giving update command what is the use of OldValuesParameterFormatString="original_{0}".Though it is clear that this gives a format for some value but what is the significance of _{0} in "original_{0}" .It is giving error when i write _{1} instead of _{0} in "original_{0}".
    so,why it is happening so?
     
  2. urstop

    urstop New Member

    Joined:
    Oct 17, 2007
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    0
    The {0} gets replaced with the parameter/field name at run time. So its always {0}. So if you have a parameter named customerID, it becomes original_customerID and will hold the old value.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice