I have a MobilePage app running with all the script in the aspx module and want to move it to the CodeBehindModule. I can't get the namespace references right. If I do:
using System;
using System.Data;
using System.Data.OleDb;
using System.Web;
Public Class DeliveryList6...
Thanks for your patience, AGIMA. It doesn't sound like the jscript and virtual directories have anything to do with my problem. My question is:
1. If I develop a project named test3, I get a real directory named test3 under my local IIS5 root, a dll named test3.dll in bin, which apparently...
Thanks, AGIMA, for your prompt response to my call for help.
1. In my above example, I assume what you refer to as the "ASPNET _client directory" would be test3. If I'm putting my pages in the root, there will not be a directory with that name on the production server.
2. You...
To develop, I have to make a project and give it a name. ASP.NET makes a directory with that name under the IIS5 root and project builds make a dll with that name in bin. For production, I want to put the main page in the web server root. I can't figure out what to name the dll and how to...
superCerealKiller solved this problem for me in another thread in this Forum. The right way is:
Request.QueryString("DP") with NameSpace System.Web imported.
This sounds like a problem I had running examples in a book that put all the script in the .aspx file rather than in the CodeBehind. The CodeBehind file generated by the ide had a Page_Load routine that had the parameter clause and "Handles Page_Load ... " etc. I just copied all...
In the Page_Load routine in my mobile web page, I'm having trouble retrieving a caller ID from the calling browser. The following line works in a conventional .aspx page, but not in my mobile page:
lngDeliveryPersonID = Int32.Parse(HttpRequest.QueryString("DP"))
The error message...
Thanks, jfrost10, for your help. It looks like you have the right answer. I put:
Imports System.Data
Imports System.Data.OleDb
Public Class DeliveryList3LoadsDeliveryListAndMsgs
Inherits System.Web.UI.MobileControls.MobilePage
With some OleDb I/O code in the Page_Load event routine...
I've tried to put my code in the CodeBehind module, but when it needs NameSpace lines, e.g., for I/O, I can't figure out where to put them to avoid an error message. Event routines not requiring NameSpace lines are ok. Can anyone advise?
I'm programming for microbrowsers using the mobile add-ons to ASP.NET and having a lot of trouble. Problem 1 is that I don't know how to find out the meaning of these BC??? error messages, such as:
BC30311: Value of type 'System.Data.DataSet' cannot be converted to 'String'. I get this when I...
...populate a Mobile list, I got some strange dataset property problems. The following is my code:
dadDelivery = New OleDbDataAdapter( "Select * From tblDelivery", connIn )
dadDelivery.Fill( dstDelivery, "tblDelivery" )
'To bind to a datagrid, the code that works says...
I want to use comma delimited text files as the sources for the data I use at Page_Load time to populate a web page. I'm pretty sure I've seen references to an OLE_DB provider for text in the general ADO capability, but it looks like only a few providers are offered with ADO.NET data objects...
This is a bit off topic, but it looks like it is still open. It appears to me that you're adding records to an order table and assigning unique id numbers to them. As link9 suggested, the natural way to do that is to let Access manage an AutoNumber field. If you don't need to immediately know...
My custom is to keep all my data on a separate disk from the C: partition, so when an OS partition gets damaged or cluttered, I can just gen a new one or plug in a backup copy. If a machine poops out, I can pull the data disk and take it to a backup machine. For Visual Interdev 6.0 projects, I...
Many Thanks, D'Arcy, for your tip. That was the problem. My page is now running at: http://www.johnifrederick.com/DeliveryList2.aspx
I transferred both the .dll and the .pdb files. It works both in IE and the Openwave 6.2 http simulator.
Getting back to my other problem of copying pages, is...
I have some more on this problem. I have a working .aspx page with event code in the CodeBehind file. If I copy it, give it a new name and put that name in the CodeBehind as the Class name, and in the Inherits parameter in the header of the .aspx page, it doesn't work. When viewed in browser...
I just finished a version of a new mobile internet .aspx page and moved it to my demo web site to show. It failed. The problem is in the Inherits="Test1.DeliveryList2" parameter in the .aspx page header. The message is that it cannot inherit from Test1.DeliveryList2. Here, Test1 is...
I downloaded the MobileIT package from msdn which was described as adding mobile device support to .NET Framework 1.0 and I also tried the .NET Framework 1.1 Final Beta. The namespace I need is System.Web.UI.MobileControls. So far, I don't see it in Object Browser, don't see it in one of the...
I have my personal showcase web site and maintain the database parts of three client web sites on Hostway.com. They offer SQL Server, but I use Access. I recommend them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.