Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Mobile / October 2003

Tip: Looking for answers? Try searching our database.

Error Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TR - 09 Oct 2003 15:35 GMT
Hi,

i'm development a mobile page with ASP.NET Web Matrix. To see if my page
is correct, i put the URL of my IIS in a Emulator On Line. The page load
correct, but when i push back buttom, the emulador said: "is not a WML
page". I don't know what happend.

This is the code:
----------------

   Function GetOrders() As System.Data.DataSet
       Dim connectionString As String = "server='(local)';
trusted_connection=true; database='databasepuntonet'"
       Dim dbConnection As System.Data.IDbConnection = New
System.Data.SqlClient.SqlConnection(connectionString)

       Dim queryString As String = "SELECT [Orders].* FROM [Orders]"
       Dim dbCommand As System.Data.IDbCommand = New
System.Data.SqlClient.SqlCommand
       dbCommand.CommandText = queryString
       dbCommand.Connection = dbConnection

       Dim dataAdapter As System.Data.IDbDataAdapter = New
System.Data.SqlClient.SqlDataAdapter
       dataAdapter.SelectCommand = dbCommand
       Dim dataSet As System.Data.DataSet = New System.Data.DataSet
       dataAdapter.Fill(dataSet)

       Return dataSet
   End Function

Sub Page_Load(Sender As Object, E As EventArgs)

   If Not Page.IsPostBack Then
       OrderList.DataSource = GetOrders()
       OrderList.DataBind()    
   End If

End Sub
------------------

Before, i inserted a OrderList Web Control.

Thanks.
diamondwxp - 10 Oct 2003 04:21 GMT
Hi, as your description, you didn't have a back button in you page.
You must use the back button in the emulator, so maybe this is an issue of
your emualtor setting.

Regards
Diamond
> Hi,
>
[quoted text clipped - 40 lines]
>
> Thanks.
TR - 10 Oct 2003 10:20 GMT
Thanks.

diamondwxp escribió:

>Hi, as your description, you didn't have a back button in you page.
>You must use the back button in the emulator, so maybe this is an issue of
[quoted text clipped - 48 lines]
>>
>>Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.