A
Andy
I have written an ASP.NET app that searches an XML database
for journal titles. The app passes two session variables
(title and means of search) from one page to another. I
only now got the session variables to work as intended.
The problem started when I press the Search command
control on my default.aspx page. The appropriate code
is here:
private void cmdSeek_Click(object sender, System.EventArgs e)
{
Utility Util = new Utility();
if (Util.IsValidSearchPhrase(this.txtSeek.Text))
{
string resultsURL;
Session["sought"] = (string) this.txtSeek.Text;
Session["sortby"] = (string) this.rdoSortby.Selection.Value;
resultsURL = this.ResolveUrl("results.aspx");
this.RedirectToMobilePage(resultsURL);
}
}
Now, the command control works as intended on browsers that access
the page via wired (IE, Netscape) or Wi-Fi (PocketIE, Palm/NetForce)
connections. The control does *not* work on cell phone browsers like
OpenWave or BlackBerry. I found out why on examining the ASP.NET
output to the OpenWave browser: ASP.NET is interpreting the URL
as going back to default.aspx!
<anchor title="Seek">Search
<go href="/ ... /Default.aspx">
<postfield name="__EVENTTARGET" value="cmdSeek" />
<postfield name="txtSeek" value="$(txtSeek)" />
<postfield name="rdoSortby" value="$(rdoSortby)" />
</go>
</anchor>
Is there any way to make ASP.NET interpreting the URL correctly?
for journal titles. The app passes two session variables
(title and means of search) from one page to another. I
only now got the session variables to work as intended.
The problem started when I press the Search command
control on my default.aspx page. The appropriate code
is here:
private void cmdSeek_Click(object sender, System.EventArgs e)
{
Utility Util = new Utility();
if (Util.IsValidSearchPhrase(this.txtSeek.Text))
{
string resultsURL;
Session["sought"] = (string) this.txtSeek.Text;
Session["sortby"] = (string) this.rdoSortby.Selection.Value;
resultsURL = this.ResolveUrl("results.aspx");
this.RedirectToMobilePage(resultsURL);
}
}
Now, the command control works as intended on browsers that access
the page via wired (IE, Netscape) or Wi-Fi (PocketIE, Palm/NetForce)
connections. The control does *not* work on cell phone browsers like
OpenWave or BlackBerry. I found out why on examining the ASP.NET
output to the OpenWave browser: ASP.NET is interpreting the URL
as going back to default.aspx!
<anchor title="Seek">Search
<go href="/ ... /Default.aspx">
<postfield name="__EVENTTARGET" value="cmdSeek" />
<postfield name="txtSeek" value="$(txtSeek)" />
<postfield name="rdoSortby" value="$(rdoSortby)" />
</go>
</anchor>
Is there any way to make ASP.NET interpreting the URL correctly?