A
ashelley
I have this in my aspx page:
--------------
<mobileeviceSpecific id=DeviceSpecific1 Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<%# ((string)Session["clientScript"]) %>
</contenttemplate>
</Choice>
</mobileeviceSpecific>
--------------
I have this in my code behind in formload:
--------------
Session["clientScript"] = "<Script for=\"window\" event=\"onload\"
language=\"jscript\">window.Form1.txtJump.focus();</Script>";
--------------
But the client script is never added to the page. My goal is to be
able to dynamically control which control gets focus when the page is
redrawn. The following works:
--------------
<mobileeviceSpecific id="DeviceSpecific1" Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<Script for="window" event="onload"
language="jscript">
window.Form1.txtJump.focus();
</Script>
</contenttemplate>
</Choice>
</mobileeviceSpecific>
--------------
<mobileeviceSpecific id=DeviceSpecific1 Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<%# ((string)Session["clientScript"]) %>
</contenttemplate>
</Choice>
</mobileeviceSpecific>
--------------
I have this in my code behind in formload:
--------------
Session["clientScript"] = "<Script for=\"window\" event=\"onload\"
language=\"jscript\">window.Form1.txtJump.focus();</Script>";
--------------
But the client script is never added to the page. My goal is to be
able to dynamically control which control gets focus when the page is
redrawn. The following works:
--------------
<mobileeviceSpecific id="DeviceSpecific1" Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<Script for="window" event="onload"
language="jscript">
window.Form1.txtJump.focus();
</Script>
</contenttemplate>
</Choice>
</mobileeviceSpecific>