Can I pass Clietside Objects

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Can I pass Clietside Objects

    Hi Guys,
    Couple Questions
    1. Is there any way that i can pass client Side Objects to Server Side.

    2. Can i validate the data of serverside text boxes / combo box in client
    side?

    If you know the answers please let me know.

    Thanks
    Murali


    Murali Inguva Guest

  2. Similar Questions and Discussions

    1. pass objects from one mxml to another
      HI All, Could some one let me know the way to pass value from one mxml to another on page request. The scenario is,I must get the mxml form input...
    2. How to pass AS Objects to a CFC
      Hi, It easy to Pass Strcutures, Arrays and Objects from CFC to FLEX. But the return route seems to be challenging. I've been trying to...
    3. Pass objects from and to web services
      Hi, I am trying to call a web service and get a value object and send the same object back to another web service. Although the two services share...
    4. Which is better, pass, or not pass by reference?
      Folks, I've asked this before but never got any response but its important and I thought I'd pitch it again (hopefully a bit clearer)... One...
    5. #25419 [NEW]: Call-time pass-by-reference has been deprecated but without it it's impossible to pass a object-reference via call_user_function
      From: roland at inkoeln dot com Operating system: Linux PHP version: 4.3.3 PHP Bug Type: Variables related Bug description: ...
  3. #2

    Default Re: Can I pass Clietside Objects

    1. What do you mean by passing? As object, no you cannot. You can set the
    values of various HTML elements, and then access them on the server. For
    example, if you have hidden input controls, you can set their value client
    side, and then retrieve those values on the server after a post.

    2. Yes. Use javascript to get access to the HTML element representing the
    textbox, and then just do whatever you need to.

    "Murali Inguva" <minguva@hotmail.com> wrote in message
    news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > Hi Guys,
    > Couple Questions
    > 1. Is there any way that i can pass client Side Objects to Server Side.
    >
    > 2. Can i validate the data of serverside text boxes / combo box in client
    > side?
    >
    > If you know the answers please let me know.
    >
    > Thanks
    > Murali
    >
    >

    Marina Guest

  4. #3

    Default Re: Can I pass Clietside Objects

    Murali:

    1. Nope. Thats what makes them "Client Side"
    2. Yes, using Javascript and the Form's OnSubmit event. Without knowing more
    specifics, thats all I can offer.


    --
    Elliot M. Rodriguez, MCSD
    *** It would take 227 cans of Mountain Dew to kill me***



    "Murali Inguva" <minguva@hotmail.com> wrote in message
    news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > Hi Guys,
    > Couple Questions
    > 1. Is there any way that i can pass client Side Objects to Server Side.
    >
    > 2. Can i validate the data of serverside text boxes / combo box in client
    > side?
    >
    > If you know the answers please let me know.
    >
    > Thanks
    > Murali
    >
    >

    Elliot Rodriguez Guest

  5. #4

    Default Re: Can I pass Clietside Objects

    Q1. I got that. I know that in previous version on you cannot do that. I was
    wondoring in .Net can we do it or not.

    Q2. I mean to say I have <asp:TextBox id="TextBox1"
    runat="server"></asp:TextBox>
    How do iget this value in javascript.
    I cannot see any object with this name because it runs at server.
    Is it possible?



    "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > 1. What do you mean by passing? As object, no you cannot. You can set the
    > values of various HTML elements, and then access them on the server. For
    > example, if you have hidden input controls, you can set their value client
    > side, and then retrieve those values on the server after a post.
    >
    > 2. Yes. Use javascript to get access to the HTML element representing the
    > textbox, and then just do whatever you need to.
    >
    > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > Hi Guys,
    > > Couple Questions
    > > 1. Is there any way that i can pass client Side Objects to Server Side.
    > >
    > > 2. Can i validate the data of serverside text boxes / combo box in
    client
    > > side?
    > >
    > > If you know the answers please let me know.
    > >
    > > Thanks
    > > Murali
    > >
    > >
    >
    >

    Murali Inguva Guest

  6. #5

    Default Re: Can I pass Clietside Objects

    Hi

    alert(document.forms[0].TextBox1.value);

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "Murali Inguva" <minguva@hotmail.com> wrote in message
    news:evg$2X6SDHA.2480@tk2msftngp13.phx.gbl...
    > Q1. I got that. I know that in previous version on you cannot do that. I
    was
    > wondoring in .Net can we do it or not.
    >
    > Q2. I mean to say I have <asp:TextBox id="TextBox1"
    > runat="server"></asp:TextBox>
    > How do iget this value in javascript.
    > I cannot see any object with this name because it runs at server.
    > Is it possible?
    >
    >
    >
    > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > > 1. What do you mean by passing? As object, no you cannot. You can set
    the
    > > values of various HTML elements, and then access them on the server. For
    > > example, if you have hidden input controls, you can set their value
    client
    > > side, and then retrieve those values on the server after a post.
    > >
    > > 2. Yes. Use javascript to get access to the HTML element representing
    the
    > > textbox, and then just do whatever you need to.
    > >
    > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > > Hi Guys,
    > > > Couple Questions
    > > > 1. Is there any way that i can pass client Side Objects to Server
    Side.
    > > >
    > > > 2. Can i validate the data of serverside text boxes / combo box in
    > client
    > > > side?
    > > >
    > > > If you know the answers please let me know.
    > > >
    > > > Thanks
    > > > Murali
    > > >
    > > >
    > >
    > >
    >
    >

    Vidar Petursson Guest

  7. #6

    Default Re: Can I pass Clietside Objects

    Thaks for help

    What about the events?
    Means if it a command button can i write client side click event just like
    HTML Controls?



    "Vidar Petursson" <theking@icysoft.com> wrote in message
    news:uE1AHd6SDHA.1912@tk2msftngp13.phx.gbl...
    > Hi
    >
    > alert(document.forms[0].TextBox1.value);
    >
    > --
    > Best Regards
    > Vidar Petursson
    > ==============================
    > Microsoft Internet Client & Controls MVP
    > ==============================
    > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > news:evg$2X6SDHA.2480@tk2msftngp13.phx.gbl...
    > > Q1. I got that. I know that in previous version on you cannot do that. I
    > was
    > > wondoring in .Net can we do it or not.
    > >
    > > Q2. I mean to say I have <asp:TextBox id="TextBox1"
    > > runat="server"></asp:TextBox>
    > > How do iget this value in javascript.
    > > I cannot see any object with this name because it runs at server.
    > > Is it possible?
    > >
    > >
    > >
    > > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > > news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > > > 1. What do you mean by passing? As object, no you cannot. You can set
    > the
    > > > values of various HTML elements, and then access them on the server.
    For
    > > > example, if you have hidden input controls, you can set their value
    > client
    > > > side, and then retrieve those values on the server after a post.
    > > >
    > > > 2. Yes. Use javascript to get access to the HTML element representing
    > the
    > > > textbox, and then just do whatever you need to.
    > > >
    > > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > > > Hi Guys,
    > > > > Couple Questions
    > > > > 1. Is there any way that i can pass client Side Objects to Server
    > Side.
    > > > >
    > > > > 2. Can i validate the data of serverside text boxes / combo box in
    > > client
    > > > > side?
    > > > >
    > > > > If you know the answers please let me know.
    > > > >
    > > > > Thanks
    > > > > Murali
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Murali Inguva Guest

  8. #7

    Default Re: Can I pass Clietside Objects

    All .NET controls just get evaluated to plain old HTML. Have you looked at
    the rendered HTML? Because you will see that an <asp:Textbox> becomes an
    <input>, and so on.

    Client side functionality has not changed - it is still just the browser
    evaluating HTML and javascript. So everything is the same - client side
    events, client side properties, everything.

    "Murali Inguva" <minguva@hotmail.com> wrote in message
    news:u77pBh6SDHA.2228@tk2msftngp13.phx.gbl...
    > Thaks for help
    >
    > What about the events?
    > Means if it a command button can i write client side click event just like
    > HTML Controls?
    >
    >
    >
    > "Vidar Petursson" <theking@icysoft.com> wrote in message
    > news:uE1AHd6SDHA.1912@tk2msftngp13.phx.gbl...
    > > Hi
    > >
    > > alert(document.forms[0].TextBox1.value);
    > >
    > > --
    > > Best Regards
    > > Vidar Petursson
    > > ==============================
    > > Microsoft Internet Client & Controls MVP
    > > ==============================
    > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > news:evg$2X6SDHA.2480@tk2msftngp13.phx.gbl...
    > > > Q1. I got that. I know that in previous version on you cannot do that.
    I
    > > was
    > > > wondoring in .Net can we do it or not.
    > > >
    > > > Q2. I mean to say I have <asp:TextBox id="TextBox1"
    > > > runat="server"></asp:TextBox>
    > > > How do iget this value in javascript.
    > > > I cannot see any object with this name because it runs at server.
    > > > Is it possible?
    > > >
    > > >
    > > >
    > > > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > > > news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > > > > 1. What do you mean by passing? As object, no you cannot. You can
    set
    > > the
    > > > > values of various HTML elements, and then access them on the server.
    > For
    > > > > example, if you have hidden input controls, you can set their value
    > > client
    > > > > side, and then retrieve those values on the server after a post.
    > > > >
    > > > > 2. Yes. Use javascript to get access to the HTML element
    representing
    > > the
    > > > > textbox, and then just do whatever you need to.
    > > > >
    > > > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > > > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > > > > Hi Guys,
    > > > > > Couple Questions
    > > > > > 1. Is there any way that i can pass client Side Objects to Server
    > > Side.
    > > > > >
    > > > > > 2. Can i validate the data of serverside text boxes / combo box in
    > > > client
    > > > > > side?
    > > > > >
    > > > > > If you know the answers please let me know.
    > > > > >
    > > > > > Thanks
    > > > > > Murali
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Marina Guest

  9. #8

    Default Re: Can I pass Clietside Objects

    Pefect..
    You helped me one more time
    thanks a lot
    "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    news:O0VRsl6SDHA.1912@tk2msftngp13.phx.gbl...
    > All .NET controls just get evaluated to plain old HTML. Have you looked at
    > the rendered HTML? Because you will see that an <asp:Textbox> becomes an
    > <input>, and so on.
    >
    > Client side functionality has not changed - it is still just the browser
    > evaluating HTML and javascript. So everything is the same - client side
    > events, client side properties, everything.
    >
    > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > news:u77pBh6SDHA.2228@tk2msftngp13.phx.gbl...
    > > Thaks for help
    > >
    > > What about the events?
    > > Means if it a command button can i write client side click event just
    like
    > > HTML Controls?
    > >
    > >
    > >
    > > "Vidar Petursson" <theking@icysoft.com> wrote in message
    > > news:uE1AHd6SDHA.1912@tk2msftngp13.phx.gbl...
    > > > Hi
    > > >
    > > > alert(document.forms[0].TextBox1.value);
    > > >
    > > > --
    > > > Best Regards
    > > > Vidar Petursson
    > > > ==============================
    > > > Microsoft Internet Client & Controls MVP
    > > > ==============================
    > > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > > news:evg$2X6SDHA.2480@tk2msftngp13.phx.gbl...
    > > > > Q1. I got that. I know that in previous version on you cannot do
    that.
    > I
    > > > was
    > > > > wondoring in .Net can we do it or not.
    > > > >
    > > > > Q2. I mean to say I have <asp:TextBox id="TextBox1"
    > > > > runat="server"></asp:TextBox>
    > > > > How do iget this value in javascript.
    > > > > I cannot see any object with this name because it runs at server.
    > > > > Is it possible?
    > > > >
    > > > >
    > > > >
    > > > > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > > > > news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > > > > > 1. What do you mean by passing? As object, no you cannot. You can
    > set
    > > > the
    > > > > > values of various HTML elements, and then access them on the
    server.
    > > For
    > > > > > example, if you have hidden input controls, you can set their
    value
    > > > client
    > > > > > side, and then retrieve those values on the server after a post.
    > > > > >
    > > > > > 2. Yes. Use javascript to get access to the HTML element
    > representing
    > > > the
    > > > > > textbox, and then just do whatever you need to.
    > > > > >
    > > > > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > > > > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > > > > > Hi Guys,
    > > > > > > Couple Questions
    > > > > > > 1. Is there any way that i can pass client Side Objects to
    Server
    > > > Side.
    > > > > > >
    > > > > > > 2. Can i validate the data of serverside text boxes / combo box
    in
    > > > > client
    > > > > > > side?
    > > > > > >
    > > > > > > If you know the answers please let me know.
    > > > > > >
    > > > > > > Thanks
    > > > > > > Murali
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Murali Inguva Guest

  10. #9

    Default Re: Can I pass Clietside Objects

    Murali

    From the code behind page to attach an event (or any other client side
    attribute) to the object:

    Button1.Attributes.Add("onClick", "javascript:confirm(""Submit form?"");")

    --
    S. Justin Gengo
    Web Developer / Programmer

    Free Code Library At:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Murali Inguva" <minguva@hotmail.com> wrote in message
    news:u77pBh6SDHA.2228@tk2msftngp13.phx.gbl...
    > Thaks for help
    >
    > What about the events?
    > Means if it a command button can i write client side click event just like
    > HTML Controls?
    >
    >
    >
    > "Vidar Petursson" <theking@icysoft.com> wrote in message
    > news:uE1AHd6SDHA.1912@tk2msftngp13.phx.gbl...
    > > Hi
    > >
    > > alert(document.forms[0].TextBox1.value);
    > >
    > > --
    > > Best Regards
    > > Vidar Petursson
    > > ==============================
    > > Microsoft Internet Client & Controls MVP
    > > ==============================
    > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > news:evg$2X6SDHA.2480@tk2msftngp13.phx.gbl...
    > > > Q1. I got that. I know that in previous version on you cannot do that.
    I
    > > was
    > > > wondoring in .Net can we do it or not.
    > > >
    > > > Q2. I mean to say I have <asp:TextBox id="TextBox1"
    > > > runat="server"></asp:TextBox>
    > > > How do iget this value in javascript.
    > > > I cannot see any object with this name because it runs at server.
    > > > Is it possible?
    > > >
    > > >
    > > >
    > > > "Marina" <zlatkinam@nospam.hotmail.com> wrote in message
    > > > news:uOrQMS6SDHA.2280@TK2MSFTNGP12.phx.gbl...
    > > > > 1. What do you mean by passing? As object, no you cannot. You can
    set
    > > the
    > > > > values of various HTML elements, and then access them on the server.
    > For
    > > > > example, if you have hidden input controls, you can set their value
    > > client
    > > > > side, and then retrieve those values on the server after a post.
    > > > >
    > > > > 2. Yes. Use javascript to get access to the HTML element
    representing
    > > the
    > > > > textbox, and then just do whatever you need to.
    > > > >
    > > > > "Murali Inguva" <minguva@hotmail.com> wrote in message
    > > > > news:%23MTwfO6SDHA.3132@tk2msftngp13.phx.gbl...
    > > > > > Hi Guys,
    > > > > > Couple Questions
    > > > > > 1. Is there any way that i can pass client Side Objects to Server
    > > Side.
    > > > > >
    > > > > > 2. Can i validate the data of serverside text boxes / combo box in
    > > > client
    > > > > > side?
    > > > > >
    > > > > > If you know the answers please let me know.
    > > > > >
    > > > > > Thanks
    > > > > > Murali
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139