Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > question regarding __doPostBack

Reply
Thread Tools

question regarding __doPostBack

 
 
Marcelo
Guest
Posts: n/a
 
      12-11-2004
Hello,
I am trying to create a postback event, and it is working, just not calling
the sub.
I have a datagrid which has
<aspataGrid id="Mensajes"
...
<Columns>
<asp:HyperLinkColumn
....

DataNavigateUrlFormatString="javascript:__doPostBa ck('loadMessage','{0}')"

I also placed the following javascript function:
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("n etscape")
> -1) {

theform = document.forms["_ctl0"];
}
else {
theform = document._ctl0;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}


In the Sub Page_Load
I have
response.write ("__EVENTTARGET " & request("__EVENTTARGET") & "<br>")
response.write ("__EVENTARGUMENT " & request("__EVENTARGUMENT") & "<br>")

and I do receive both parameters, but the sub 'loadMessage' never gets
called.
Right now I patched it using a switch/case __EVENTTARGET then calling the
sub "manually".

What did I miss?

Thanks



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
__doPostBack Arguments question GaryDean ASP .Net 6 04-12-2006 02:54 AM
__doPostBack code block not being generated by asp.net page E ASP .Net 3 07-31-2003 10:43 AM
__doPostBack EventArgument Hayato Iriumi ASP .Net 0 07-22-2003 04:36 AM
Overriding __doPostBack Mike Dunn ASP .Net 2 07-09-2003 08:25 PM
Wierd Behavior of __doPostBack paul reed ASP .Net 1 07-08-2003 04:26 PM



Advertisments
 



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