A
ashelley
I have this in my aspx page:
--------------
<mobile
eviceSpecific id=DeviceSpecific1 Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<%# ((string)Session["clientScript"]) %>
</contenttemplate>
</Choice>
</mobile
eviceSpecific>
--------------
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:
--------------
<mobile
eviceSpecific id="DeviceSpecific1" Runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<Script for="window" event="onload"
language="jscript">
window.Form1.txtJump.focus();
</Script>
</contenttemplate>
</Choice>
</mobile
eviceSpecific>
--------------
<mobile
<Choice Filter="isHTML32">
<contenttemplate>
<%# ((string)Session["clientScript"]) %>
</contenttemplate>
</Choice>
</mobile
--------------
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:
--------------
<mobile
<Choice Filter="isHTML32">
<contenttemplate>
<Script for="window" event="onload"
language="jscript">
window.Form1.txtJump.focus();
</Script>
</contenttemplate>
</Choice>
</mobile