Results 1 to 3 of 3

Thread: how to change from HTMl pages to ASPX PAges, web experts Needed ( HELP)

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Cool how to change from HTMl pages to ASPX PAges, web experts Needed ( HELP)

    how to convert HTML page to aspx page, Web Experts & Gurus Required HEre !!!!!

    --------------------------------------------------------------------------------

    Dear all,
    now i have my web designer working all over to build my site interface he is using XARA web Design packages to produce awesome pages. now when i imported these pages into my visual basic .net web application project and try to copy the html code so that i can build an aspx pages that i can program. i had all types of problems

    1 - first when i place a server control (button) on the page, i had the error control must be placed between runat=server tags.

    i went around this problem by placing the button inside a panel control, the forms shows it but whenever the user click the button at run time. i ahd an exception

    can any1 help me out, what will help is how to convert html pages into aspx pages. i know their structures are similat but the aspx uses a code behind page approach to grant the page it's functionality.

    oh, please note that my html pages contains JAva script menus at the top of the pages that were build by XARA..

    Waiting your precious help

    BST RGDS

    Maged A. REda

  2. #2
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: how to change from HTMl pages to ASPX PAges, web experts Needed ( HELP)

    Well, sorry if I'm being totally patronising here, but you need to put the asp controls in a form that is set to runat=server.

    Eg
    Code:
    <form runat=server>
         <asp:TextBox id=txtForename runat=server></asp:TextBox>
    </form>
    If you're aware of this already, I apologise. But this appears to be where you're going wrong.



    Oh, and ASP.NET doesn't necessarily use codebehind. You can just put your ASP code in <script runat=server></script> tags.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: how to change from HTMl pages to ASPX PAges, web experts Needed ( HELP)

    Don't crosspost on the forums! Only Jimi Hendrix is allowed to do that!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width