Jump to content

vadder85

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by vadder85

  1. Hello..I have one problem here regarding on putting html into aspBelow is my code<% if request("id_map") = "1" then "<img src='images/spinstar.gif'>" %>The error returned : " Syntax Error "Can someone correct the error please?

  2. Oh, now I understant the question, sorry about that pervious post. you can have a option for the user to set your page a homepage.. something like "click here to set this page as default page"http://javascript.internet.com/miscellaneo...-home-page.html
    well..tq 4 all the info..but suddenly i was thinking that I if could set my server to make all user must have to view my default page first before they could go anywhere...any possibilities?
  3. hi..i have one problem here and hope someone can help me...This is my mapmap.jpgmy question is, how can I display an arrow (animation) on the specific retail store based on the information i send to the page (for example maybe the hot spot coordinate of the retail store). So that, the arrow will show the exact location of the retail store searched earlier in the system.For example, perhaps I want to find McDonalds store, then the system or map should display the exact location of McDonalds restaurant with displaying the arrow on the location of McDtq and hope get some replies from all of u

  4. Hi..i have one problem here while manipulating my mapI managed to draw out a mall map that contains the location of each store..When a user try to view the location of the store, i will display the map image..But, can someone tell me on how I can make the map to automatically put the viewed store on the middle of my screen..in other word..auto-focus to the viewed store?Does it involved with manipulating coordinates or something else...hope someone can help me...tq

  5. ok,let me explain about my project..basically my system should provide information abot any kiosk in a mall based on information searched by user...but then, in the system, I would like to show the location of the searched kiosk based on the map created?so, what software actually should I choose? and can it tolerate with ASP.NET?

  6. hi..i'm using DataGrid to display all my records..and i use to enalbe the delete functionPrivate Sub DataGrid2_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid2.DeleteCommandmy dataset is named = DataSet21and my table named = "store_detail"anyone can show me on how to enable the delete function? perhaps in VB..tq

  7. if you have
    <form runat="server" method="post" action="yourOtherPage.aspx"><asp:TextBox id="txtBox" runat="server"/></form>

    Then on yourOtherPage.aspx you can get the values like thisC#

    Request.QueryString["txtBox"];

    VB

    Request.QueryString("txtBox")

    This si pretty basic stuff, have you read the tutorial?

    yeah,I know..but I'm dealing with .NET mobile..not the normal one..quite hard to find the resources.
  8. you could store the url in the databse as well you would just have ot make sure you created the pages withte h exact names.
    Ok,I would like to show you somethingdo_postback.jpgdid you see the javascript on bottom of the page?now,that link appear when I put my mouse on top of Books,Gifts,Toys,and Hobbies link? How can I change the link into my desired page? can you explain more regarding on your previous answer.quite blur..sorry..hehe
  9. we'll need to see some code and be more specific....what pages are you talking about and what is the data?
    Here's the code:<%@ Page Language="vb" AutoEventWireup="false" Codebehind="store_directory.aspx.vb" Inherits="FYP2007.store_directory" %><%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><HEAD> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> <meta content="http://schemas.microsoft.com/Mobile/Page" name="vs_targetSchema"></HEAD><body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm"> <mobile:form id="Form1" BackColor="#80FFFF" runat="server"><mobile:Label id="Label1" runat="server" Font-Name="Arial" ForeColor="Black" Font-Size="Large" Font-Bold="True" Alignment="Center">Store Directory</mobile:Label> <mobile:Image id="Image1" runat="server" Alignment="Center" ImageUrl="/FYP2007\images\Paper_Shopping_Bags.gif"></mobile:Image> <mobile:List id=List1 runat="server" DataSource="<%# DataSet11 %>" DataTextField="category_name" DataMember="store_directory" Decoration="Bulleted" DataValueField="category_id"> </mobile:List> <mobile:Link id="Link1" runat="server" Alignment="Center" NavigateUrl="default.aspx">Home</mobile:Link><mobile:Link id="Link3" runat="server" Alignment="Center" NavigateUrl="search_store.aspx">Search Store</mobile:Link><mobile:Link id="Link4" runat="server" Alignment="Center" NavigateUrl="search_item.aspx">Search Item</mobile:Link></mobile:form></body>and here is my print screenstore_directorynew.jpgdid you see the links below the image..that one I got the data from Access Database..ok,now how can I make each of the link connected to it own page that will be created later...i hope u got my explanation
  10. First off I will assume you are using windows XP if you are using Windows server 2003 replace ASPNET with NETWORK SERVICE int he instructions belowright click on your database file.Choose Properties -> Select Security tablook for a user called ASPNET. If it is not there Click the Add button and type in ASPNET. Then change that users permissions to have "Full Control".Close all dialogs and try your code again.
    tq!!! i managed to retrieve the data...tq bro!!!
  11. check the permissions on the database file and make sure to give NETWORK SERVICE (WinServer 2003 or ASPNET on WinXP) permission to read/write/modify the database. Make sure also that every folder in the path has the same permissions.
    sorry, I cannot understand your answer.can you be more specifically?
  12. check the permissions on the database file and make sure to give NETWORK SERVICE (WinServer 2003 or ASPNET on WinXP) permission to read/write/modify the database. Make sure also that every folder in the path has the same permissions.
    sorry, I cannot understand your answer.can you be more specifically?
  13. smartphone Resolutions: 176x220, 160x240, 208x240 (176x220 for most Smartphones).PDA resolutions 240x160 (palm)320x240 (palm & windows mobile pre 2003v2)640x480 (windows mobile 2003v2)
    i've tried by using vs 2003 and managed to follow all the steps but when i debug,error message come out...like this"The Microsoft Jet database engine cannot open the file 'C:\Inetpub\wwwroot\MobileWebApplication1\store_info.mdb'. It is already opened exclusively by another user, or you need permission to view its data."what's that mean?Line 90: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadLine 91: 'Put user code to initialize the page hereLine 92: OleDbDataAdapter1.Fill(DataSet11, "store")Line 93: List1.DataBind()Line 94: How to solve?
  14. If you can using normal webforms would be easiest but make sure your target devices have XHTML enabled browsers, some only can view WML.
    maybe it should be okay as my target device is PDA and Smartphone..that's mean I have to adjust the interface until it fits the screen of PDA or Smartphone..any idea on that way?
  15. When using mobile.net all tags have to have <mobile:try <mobile:accessdatasource.....
    I've tried your solution but it failed..it stated that "Unknown server tag"..do you know other way on how to solve this problem?or it is better for me to use normal asp web form toin order to develop and view it from mobile devices such as PDA?
  16. I really need to see the code and to have the EXACT error message word for word.
    Here's the code<%@ Page Language="VB" AutoEventWireup="false" CodeFile="store_directory.aspx.vb" Inherits="store_directory" %><%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %><html xmlns="http://www.w3.org/1999/xhtml" ><body> <mobile:Form id="Form1" runat="server" BackColor="#80FFFF"> <mobile:Label ID="Label1" Runat="server" Font-Bold="True" Font-Name="Century Gothic">Store Directory</mobile:Label><br /><br /><mobile:Image ID="Image1" Runat="server" Alignment="Left" ImageUrl="~/images/Paper_Shopping_Bags.gif"></mobile:Image>  <asp:accessdatasource id="AccessDataSource1" runat="server" datafile="~/db1.mdb" selectcommand="SELECT [store_name] FROM [store_info]"></asp:accessdatasource>  <asp:objectdatasource id="ObjectDataSource1" runat="server"></asp:objectdatasource>  </mobile:Form>  <asp:accessdatasource id="AccessDataSource2" runat="server" datafile="C:\Inetpub\wwwroot\MIK2007\db1.mdb" deletecommand="DELETE FROM `store_info` WHERE `id` = ?" insertcommand="INSERT INTO `store_info` (`id`, `store_name`) VALUES (?, ?)" selectcommand="SELECT `id`, `store_name` FROM `store_info`" updatecommand="UPDATE `store_info` SET `store_name` = ? WHERE `id` = ?"><InsertParameters><asp:Parameter Type="Int32" Name="id"></asp:Parameter><asp:Parameter Type="String" Name="store_name"></asp:Parameter></InsertParameters><DeleteParameters><asp:Parameter Type="Int32" Name="id"></asp:Parameter></DeleteParameters><UpdateParameters><asp:Parameter Type="String" Name="store_name"></asp:Parameter><asp:Parameter Type="Int32" Name="id"></asp:Parameter></UpdateParameters></asp:accessdatasource></body></html>or..do you actually know the right way to connect to a database and later on display/retrieve info from the database in List..(BUT using Mobile Web Forms)
  17. There isn't much out there on that error. but basically it means you cannot use that control because it is not a mobile control. I don't know what a template is or hwo they are used.Is there a specific DataSourceObject for mobile apps?I would recommend taking your quesation to forums.asp.net also.
    For your information, I've tried to debug the application..an error occur and said asp:listbox cannot be a top-level form element..what's that mean?
×
×
  • Create New...