[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Tony

8/20/2003 4:00:00 PM

I am using Openwave SDK 4.1 with VS.net 2003, i have two text boxes which
will ask for username and password and according to it the program will
decide whether to bring the user to the next page or not...
It works perfectly in the IE browser, however, when i try to use it on the
UP.Simulator provided with the SDK, text that user input does not seems to
be recongised by using TextBox.Text ... no matter what the user type,
TextBox.Text will return an empty string...
Is there anyone know how to solve this problem? I have no idea what could
cause this...
Thanks in advance
Tony


1 Answer

diamondwxp

8/22/2003 9:42:00 AM

0

I tried to add a textbox to form and to get the text from it,it work well in
openwave UP411, for your ref I attach the cs file here.

namespace sdgd
{
public class MobileWebForm1 : System.Web.UI.MobileControls.MobilePage
{
protected System.Web.UI.MobileControls.Form Form2;
protected System.Web.UI.MobileControls.TextBox TextBox1;
protected System.Web.UI.MobileControls.Command Command1;
protected System.Web.UI.MobileControls.TextBox TextBox2;
protected System.Web.UI.MobileControls.Link Link1;
protected System.Web.UI.MobileControls.Form Form1;

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}

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

private void InitializeComponent()
{
this.Command1.Click += new System.EventHandler(this.Command1_Click);
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

private void Command1_Click(object sender, System.EventArgs e)
{
this.ActiveForm=Form2;
TextBox2.Text="form2: " + TextBox1.Text;
}
}
}

Maybe you can try with UP411.Any problem please ask me free.

Regards
Diamond

"Tony" <liquid__snake@hotmail.com> &#208;&#180;&#200;&#235;&#211;&#202;&#188;&#254;
news:eDkxeRzZDHA.2024@TK2MSFTNGP12.phx.gbl...
> I am using Openwave SDK 4.1 with VS.net 2003, i have two text boxes which
> will ask for username and password and according to it the program will
> decide whether to bring the user to the next page or not...
> It works perfectly in the IE browser, however, when i try to use it on the
> UP.Simulator provided with the SDK, text that user input does not seems to
> be recongised by using TextBox.Text ... no matter what the user type,
> TextBox.Text will return an empty string...
> Is there anyone know how to solve this problem? I have no idea what could
> cause this...
> Thanks in advance
> Tony
>
>