Read client side value from server side in VB.NEt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joh

    #1

    Read client side value from server side in VB.NEt

    I have a vb.net application where I have a client side html input:
    <td><input name="CurrentUs erStatus" type="text" id="UserStatus " /></
    td>

    Is there anyway I can acces the value of this control from server side
    inside my vb.net code? (please note I don't want to have runat=server
    for the input control)

  • =?Utf-8?B?ZG90TmV0RGF2ZQ==?=

    #2
    RE: Read client side value from server side in VB.NEt

    Yes, of course. It will just come through as a Form value.

    =============== =============== ========
    David McCarter [Microsoft VB.NET MVP]

    VSDN Tips & Tricks .NET Coding Standards available at:
    www.cafepress.com/vsdntips.20412485


    "Joh" wrote:
    I have a vb.net application where I have a client side html input:
    <td><input name="CurrentUs erStatus" type="text" id="UserStatus " /></
    td>
    >
    Is there anyway I can acces the value of this control from server side
    inside my vb.net code? (please note I don't want to have runat=server
    for the input control)
    >
    >

    Comment

    • Michel Posseth  [MCP]

      #3
      Re: Read client side value from server side in VB.NEt

      Ofcourse if you perform a client side submit , you can read the value in the
      request object ( request.form("C urrentUserStatu s") )

      If you mean without perfoming a postback at all , well even then there are
      ways however this requires some scripting


      hth

      Michel


      "dotNetDave " <dotNetDave@dis cussions.micros oft.comschreef in bericht
      news:502AAF32-985C-4BD5-83F5-8FBF236A73D1@mi crosoft.com...
      Yes, of course. It will just come through as a Form value.
      >
      =============== =============== ========
      David McCarter [Microsoft VB.NET MVP]

      VSDN Tips & Tricks .NET Coding Standards available at:
      www.cafepress.com/vsdntips.20412485
      >
      >
      "Joh" wrote:
      >
      >I have a vb.net application where I have a client side html input:
      ><td><input name="CurrentUs erStatus" type="text" id="UserStatus " /></
      >td>
      >>
      >Is there anyway I can acces the value of this control from server side
      >inside my vb.net code? (please note I don't want to have runat=server
      >for the input control)
      >>
      >>

      Comment

      • Joh

        #4
        Re: Read client side value from server side in VB.NEt

        On 2 Aug, 22:01, "Michel Posseth [MCP]" <M...@posseth.c omwrote:
        Ofcourse if you perform a client side submit , you can read the value in the
        request object ( request.form("C urrentUserStatu s") )
        >
        If you mean without perfoming a postback at all , well even then there are
        ways however this requires some scripting
        >
        hth
        >
        Michel
        >
        "dotNetDave " <dotNetD...@dis cussions.micros oft.comschreef in berichtnews:502 AAF32-985C-4BD5-83F5-8FBF236A73D1@mi crosoft.com...
        >
        >
        >
        Yes, of course. It will just come through as a Form value.
        >
        =============== =============== ========
        David McCarter [Microsoft VB.NET MVP]

        VSDN Tips & Tricks .NET Coding Standards available at:
        www.cafepress.com/vsdntips.20412485
        >
        "Joh" wrote:
        >
        I have a vb.net application where I have a client side html input:
        <td><input name="CurrentUs erStatus" type="text" id="UserStatus " /></
        td>
        >
        Is there anyway I can acces the value of this control from server side
        inside my vb.net code? (please note I don't want to have runat=server
        for the input control)- Dölj citerad text -
        >
        - Visa citerad text -
        Thanks for your answers. And yes, I would like to do it without a
        postback. What would that scripting look like?

        Comment

        Working...