Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > SelectionList woe

Thread Tools

SelectionList woe

Posts: n/a
Dear All,

I'm trying to read back data from a selection list control when the
output rendering is in WML. I've turned ViewState and SessionState off
using the revelent Page directives.

The problem is that when I do Request.Params["moochew"] (where moochew
is the name of the control) I simply get string.Empty returned and not
null as I'd expect if the whole thing was failing completly.

Source Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<body Xmlns:mobile="">
<mobile:form id="Step1" title="Complete Order" runat="server">
<mobileanel id="controlsPanel1" runat="server">
<mobile:SelectionList Runat="server" ID="fortran"
<Item Text="1" Value="1" />
<Item Text="2" Value="2" />
<mobile:Command id="cmdNext1" runat="server">Next ></mobile:Command>

CS codebehind:

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;

namespace MppGlobal.WebSite.Wap
/// <summary>
/// Summary description for Test.
/// </summary>
public class Test : MppGlobal.Web.Mobile.MobilePage
protected System.Web.UI.MobileControls.Panel controlsPanel1;
protected System.Web.UI.MobileControls.Command cmdNext1;
protected System.Web.UI.MobileControls.Form Step1;

protected System.Web.UI.MobileControls.SelectionList fortran;

private void Page_Load(object sender, System.EventArgs e)

// Test it actually works.
int farmer = Convert.ToInt32(Request.Params["fortran"]);


#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
// CODEGEN: This call is required by the ASP.NET Web Form Designer.

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
this.Load += new System.EventHandler(this.Page_Load);
this.cmdNext1.Click+=new EventHandler(cmdNext1_Click);

private void cmdNext1_Click(object sender, EventArgs e)


Any thoughts or suggestions?

Kind Regards,


Reply With Quote

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
ASPNET permissions woe - even when writing to a local drive that is mapped ASP .Net 3 09-12-2005 04:35 PM
Recursive nested elements woe GR33DY XML 3 06-25-2004 09:55 PM
XSL Recursive nested elements woe GR33DY XML 0 06-24-2004 09:34 AM
static routing woe's - please help ongicek Cisco 1 12-31-2003 04:21 PM
SelectionList Control Kenny ASP .Net 0 12-01-2003 02:17 PM