how to get client control(html) value in server side(c#)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    how to get client control(html) value in server side(c#)?

    hai all,

    i want to get client control value in server side code(c#) i am using asp.net 2005.
    can anybody help with sample code?
    thanx in advance.

    With Lov
    -Nirmal
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    Hi Nirmal,

    U can make tht HTML control as server control Using Runat="server"

    Or if u want after submiting page, u can do it using Request Object

    Comment

    • nirmalsingh
      New Member
      • Sep 2006
      • 218

      #3
      Originally posted by kunal pawar
      Hi Nirmal,

      U can make tht HTML control as server control Using Runat="server"

      Or if u want after submiting page, u can do it using Request Object
      it works fine by ur idea, thanx a lot. then,
      i want to do client side validation, if it satisfies, it needed to be post else the form should not be refreshed. how to do this?

      Comment

      • urstop
        New Member
        • Oct 2007
        • 12

        #4
        You can use validations controls that will validate the data and will post only when the data entered meets the requirements.

        If the requirement is not met , the validation controls display a error message to the user.

        Regards,
        UrStop

        Comment

        Working...