Ask a Question related to ASP.NET General, Design and Development.
-
Murali Inguva #1
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
-
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... -
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... -
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... -
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... -
#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: ... -
Marina #2
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
-
Elliot Rodriguez #3
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
-
Murali Inguva #4
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...client> 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>> > side?
> >
> > If you know the answers please let me know.
> >
> > Thanks
> > Murali
> >
> >
>
Murali Inguva Guest
-
Vidar Petursson #5
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...was> Q1. I got that. I know that in previous version on you cannot do that. Ithe> 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 setclient> > values of various HTML elements, and then access them on the server. For
> > example, if you have hidden input controls, you can set their valuethe> > side, and then retrieve those values on the server after a post.
> >
> > 2. Yes. Use javascript to get access to the HTML element representingSide.> > 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> client> > >
> > > 2. Can i validate the data of serverside text boxes / combo box in>> >> > > side?
> > >
> > > If you know the answers please let me know.
> > >
> > > Thanks
> > > Murali
> > >
> > >
> >
>
Vidar Petursson Guest
-
Murali Inguva #6
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...For> 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...> was> > Q1. I got that. I know that in previous version on you cannot do that. I> the> > 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> > > values of various HTML elements, and then access them on the server.> client> > > example, if you have hidden input controls, you can set their value> the> > > side, and then retrieve those values on the server after a post.
> > >
> > > 2. Yes. Use javascript to get access to the HTML element representing> Side.> > > 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>> > client> > > >
> > > > 2. Can i validate the data of serverside text boxes / combo box in> >> > > > side?
> > > >
> > > > If you know the answers please let me know.
> > > >
> > > > Thanks
> > > > Murali
> > > >
> > > >
> > >
> > >
> >
>
Murali Inguva Guest
-
Marina #7
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...I> 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.set> > 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 canrepresenting> For> > the> > > > values of various HTML elements, and then access them on the server.> > client> > > > example, if you have hidden input controls, you can set their value> > > > side, and then retrieve those values on the server after a post.
> > > >
> > > > 2. Yes. Use javascript to get access to the HTML element>> > the> > Side.> > > > 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> >> > > > >
> > > > > 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
-
Murali Inguva #8
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...like> 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 justthat.> > 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 doserver.> I> set> > > 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> > > the
> > > > > values of various HTML elements, and then access them on thevalue> > For> > > > > example, if you have hidden input controls, you can set theirServer> representing> > > client
> > > > > side, and then retrieve those values on the server after a post.
> > > > >
> > > > > 2. Yes. Use javascript to get access to the HTML element> > > 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 toin> > > Side.
> > > > > >
> > > > > > 2. Can i validate the data of serverside text boxes / combo box>> >> > > > client
> > > > > > side?
> > > > > >
> > > > > > If you know the answers please let me know.
> > > > > >
> > > > > > Thanks
> > > > > > Murali
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
Murali Inguva Guest
-
S. Justin Gengo #9
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...I> 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.set> > 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 canrepresenting> For> > the> > > > values of various HTML elements, and then access them on the server.> > client> > > > example, if you have hidden input controls, you can set their value> > > > side, and then retrieve those values on the server after a post.
> > > >
> > > > 2. Yes. Use javascript to get access to the HTML element>> > the> > Side.> > > > 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> >> > > > >
> > > > > 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



Reply With Quote

