DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Should I use this?

Hybrid View

  1. #1
    Carl Guest

    Should I use this?


    I am learning ASP.NET and I have VS.NET. I am wondering a couple of things.
    Should I just code my pages in Notepad or am i better off using VS.NET?

    When I create a page in .NET it gives me a file similar to this
    xxx.aspx.vb in this file is the Sub Page_Load method.
    What do I use this file for? I know that might sounds silly to some of you.
    (or all of you)

    But, I was attempting to create an event for an asp server control button
    and I put the typical onClick attribute in the <asp:button> line and I tried
    to raise the event from that aspx.vb area but it wouldn't let me. Basically
    I have to keep the event method in the <script></script> tag pair within
    the HTML.

    SO , what does this file do for me...thanks.

  2. #2
    Howard Kaikow Guest

    Re: Should I use this?

    Use the IDE in VS .NET.

    --
    http://www.standards.com/; Programming and support for Word macros,
    including converting from WordBasic to VBA; Technical reviewing; Standards;
    Product functional/design/specifications
    ------------------------------------------------
    "Carl" <cjnkns@hotmail.com> wrote in message news:3d6b999e$1@10.1.10.29...
    >
    > I am learning ASP.NET and I have VS.NET. I am wondering a couple of

    things.
    > Should I just code my pages in Notepad or am i better off using VS.NET?
    >
    > When I create a page in .NET it gives me a file similar to this
    > xxx.aspx.vb in this file is the Sub Page_Load method.
    > What do I use this file for? I know that might sounds silly to some of

    you.
    > (or all of you)
    >
    > But, I was attempting to create an event for an asp server control button
    > and I put the typical onClick attribute in the <asp:button> line and I

    tried
    > to raise the event from that aspx.vb area but it wouldn't let me.

    Basically
    > I have to keep the event method in the <script></script> tag pair within
    > the HTML.
    >
    > SO , what does this file do for me...thanks.




  3. #3
    Patrick Troughton Guest

    Re: Should I use this?


    The xxx.aspx.vb file is a "code-behind" file. What this file is used for is
    to seperate the presentation (HTML and JavaScript) from the actual code (VB.NET).
    In other words, it's just to keep your code organized. Some people consider
    having three different languages (HTML, JavaScript and VB.NET) in the same
    file to be messy. You don't have to use the code-behind file if you don't
    want to. Personally...I like the code-behind, but it's up to you.

    /Pat

    "Carl" <cjnkns@hotmail.com> wrote:
    >
    >I am learning ASP.NET and I have VS.NET. I am wondering a couple of things.
    >Should I just code my pages in Notepad or am i better off using VS.NET?
    >
    >When I create a page in .NET it gives me a file similar to this
    >xxx.aspx.vb in this file is the Sub Page_Load method.
    >What do I use this file for? I know that might sounds silly to some of you.
    >(or all of you)
    >
    >But, I was attempting to create an event for an asp server control button
    >and I put the typical onClick attribute in the <asp:button> line and I tried
    >to raise the event from that aspx.vb area but it wouldn't let me. Basically
    >I have to keep the event method in the <script></script> tag pair within
    >the HTML.
    >
    >SO , what does this file do for me...thanks.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center