Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.NET 2.0 and AJAX

ASP.NET 2.0 and AJAX

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studiojavascripthtml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RX Maverick
    wrote on last edited by
    #1

    What's the best way to use ASP.NET 2.0 and AJAX? I know there is ASP.NET AJAX but I have uninstalled it after trying it, I like hand coding mine better. My current environment is ASP.NET 2.0 with code in separate files all code is VB.NET, I'm using a master page to build a frame and I have a group of web controls created. I have my AJAX calling an aspx file, what I'm doing so far is working, but Visual Studio seems unhappy that my AJAX aspx file have no html, head, body or forms tags. Also, I'd like to make most of my controls AJAX enabled (and VS doesn't expect to see the html, head, etc. tags) but I can't directly access them (because they're .ascx files). So the answers I'm looking for are, should I just continue on using .aspx files (and ignore errors), is there a better/more correct way to generate content to feed to JavaScript, is there a file extension that I can use as a web control or for AJAX as needed? Thanks for any information you can provide.

    C 1 Reply Last reply
    0
    • R RX Maverick

      What's the best way to use ASP.NET 2.0 and AJAX? I know there is ASP.NET AJAX but I have uninstalled it after trying it, I like hand coding mine better. My current environment is ASP.NET 2.0 with code in separate files all code is VB.NET, I'm using a master page to build a frame and I have a group of web controls created. I have my AJAX calling an aspx file, what I'm doing so far is working, but Visual Studio seems unhappy that my AJAX aspx file have no html, head, body or forms tags. Also, I'd like to make most of my controls AJAX enabled (and VS doesn't expect to see the html, head, etc. tags) but I can't directly access them (because they're .ascx files). So the answers I'm looking for are, should I just continue on using .aspx files (and ignore errors), is there a better/more correct way to generate content to feed to JavaScript, is there a file extension that I can use as a web control or for AJAX as needed? Thanks for any information you can provide.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      RX Maverick wrote:

      I know there is ASP.NET AJAX

      You mean ATLAS ? Yeah, that exists, and it's pretty simple to use, but expensive as well.

      RX Maverick wrote:

      I have my AJAX calling an aspx file, what I'm doing so far is working, but Visual Studio seems unhappy that my AJAX aspx file have no html, head, body or forms tags

      Just turn that validation off. Or, if it worries you, define a file extension like aspxa, set it up in IIS, and it will all be fine.

      RX Maverick wrote:

      Also, I'd like to make most of my controls AJAX enabled (and VS doesn't expect to see the html, head, etc. tags) but I can't directly access them (because they're .ascx files).

      What's the problem here ? I don't understand ?

      RX Maverick wrote:

      should I just continue on using .aspx files (and ignore errors),

      For the AJAX postback ? Yes, almost certainly.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups