Ask a Question related to ASP.NET General, Design and Development.
-
Johno #1
doPostBack client-side function
Whenever you drop a linkbutton on an ASP.NET web form,
the following script gets emitted:
function __doPostBack(eventTarget, eventArgument) {
var theform = document.Form1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value =
eventArgument;
theform.submit();
}
However, when I check the call to __doPostBack() executed
when the linkbutton is checked, only the eventTarget
argument is specified, even though the linkbutton has
it's CommandArgument property set.
What's the purpose of the .__EVENTARGUMENT field in
relation to server-side postback controls?
TIA
John
Johno Guest
-
Passing multiple arguments to the client-side JavaScript function in AJAX
I am a beginner with AJAX, and have managed to learn how to use it when passing single parameters, but I want to return more than one value to the... -
flashcom: client side cant access server side
hi all, i hav install the flash com on the PC. It work well, on the server PC, i can access and log in to the 'chat room'.. however, if im... -
Controls with a client side onLoad function or seting a cursor server side
Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or... -
Client side and server side scripting problem
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve... -
button evet ---- server side - client side ???
I want to use button. My question is that How can use server side and client site event at the same time. That is: I want to use button : when... -
Marina #2
Re: doPostBack client-side function
__doPostBack is the generic asp.net generated function to cause postbacks.
Perhaps other controls that use it do have a reason to use the
__eventargument field.
"Johno" <ltj__bukem@hotmail.com> wrote in message
news:001f01c34d47$6ab94790$a401280a@phx.gbl...> Whenever you drop a linkbutton on an ASP.NET web form,
> the following script gets emitted:
>
> function __doPostBack(eventTarget, eventArgument) {
> var theform = document.Form1;
> theform.__EVENTTARGET.value = eventTarget;
> theform.__EVENTARGUMENT.value =
> eventArgument;
> theform.submit();
> }
>
> However, when I check the call to __doPostBack() executed
> when the linkbutton is checked, only the eventTarget
> argument is specified, even though the linkbutton has
> it's CommandArgument property set.
>
> What's the purpose of the .__EVENTARGUMENT field in
> relation to server-side postback controls?
>
> TIA
>
> John
Marina Guest
-
Teemu Keiski #3
Re: doPostBack client-side function
For example controls that implement IPostBackEventHandler interface can send
arguments for postback processing. Some action might vary based on which
argument has been sent for the particular control. For example
implementation of Next/Prev buttons in a custom control.
--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
[url]http://www.mansoft.fi[/url]
AspInsiders Member, [url]www.aspinsiders.com[/url]
ASP.NET Forums Moderator, [url]www.asp.net[/url]
AspAlliance Columnist, [url]www.aspalliance.com[/url]
"Johno" <ltj__bukem@hotmail.com> wrote in message
news:001f01c34d47$6ab94790$a401280a@phx.gbl...> Whenever you drop a linkbutton on an ASP.NET web form,
> the following script gets emitted:
>
> function __doPostBack(eventTarget, eventArgument) {
> var theform = document.Form1;
> theform.__EVENTTARGET.value = eventTarget;
> theform.__EVENTARGUMENT.value =
> eventArgument;
> theform.submit();
> }
>
> However, when I check the call to __doPostBack() executed
> when the linkbutton is checked, only the eventTarget
> argument is specified, even though the linkbutton has
> it's CommandArgument property set.
>
> What's the purpose of the .__EVENTARGUMENT field in
> relation to server-side postback controls?
>
> TIA
>
> John
Teemu Keiski Guest
-



Reply With Quote

