1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to check is this is a asp or asp.net

Discussion in 'C#' started by cakka, Mar 12, 2010.

  1. #1
    hello, i am a php coder... but now i am working in asp website.. just easy task.. adding a captcha on there.. but i am confuse...
    how to do that.. and i get some information that asp & asp.net is differently
    how to check what the code on the site that i am working on (asp or asp.net) ?

    ** sorry if my english not good
    thanks
     
    cakka, Mar 12, 2010 IP
  2. cakka

    cakka Member

    Messages:
    159
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #2
    i feel, i have got this answer :D
    asp using file extension = .asp
    asp.net using file extension = .aspx

    thanks :)
     
    cakka, Mar 12, 2010 IP
  3. Ehmad

    Ehmad Peon

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    view source code and if u can see viewstate thng ther it's usually asp.net else it's classic asp, asp and asp.net are different u can google about 'em to get gud answer :)
     
    Ehmad, Mar 12, 2010 IP
  4. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #4
    There is many differences. The filename is a good start, also if the code contains a datatype for variable declarations then it is asp.net. for example:
    asp:
    Dim myStr

    asp.net:
    Dim myStr As String

    Also asp.net code will most likely have controls within the html, like:
    <asp:Button ID="mybutton"></asp:Button>

    Another giveaway is event handlers within the code:
    Private Sub Page_Load(ByVal sender As Object ... ... etc.
     
    camjohnson95, Mar 15, 2010 IP