ASP.NET CHEATSHEET

Saturday, April 18, 2009

LEARN ASP.NET



















click here to view the code and output of an aspx file

FREE ASP.NET WEB HOSTING

nl/l@123
aspspider.net is providing free web hosting of your asp.net files.
It will be useful for learning asp.net and display your college project
For example, yesterday I created my website there. Its name is http://aspspider.ws/lamens/
You can use their MS Access or sql server.

Friday, April 17, 2009

ASP.NET TUTORIAL MS ACCESS CONNECTIVITY








<%@ Page Language="VB" Debug="true" %>

<%@ Import Namespace="System.Data.OleDb" %>


<script runat="server">

Sub Page_Load()

Dim sql As String

Dim dbcomm As OleDbCommand

Dim dbconn As OleDbConnection

Dim dbread As OleDbDataReader

dbconn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source="
& Server.MapPath("emp.mdb"))

dbconn.Open()

sql = "select * from emp"

dbcomm = New OleDbCommand(sql, dbconn)

dbread = dbcomm.ExecuteReader()

employees.DataSource = dbread

employees.DataBind()

dbread.Close()

dbconn.Close()

End Sub

</script>


<html>

<body>




<asp:Repeater id="employees" runat="server">


<HeaderTemplate>

<table border="1" width="250">

<tr>

<th>Employee Name</th>

<th>Post</th>


</tr>

</HeaderTemplate>


<ItemTemplate>

<tr>

<td><%#Container.DataItem("employee_name")%></td>

<td><%#Container.DataItem("post")%></td>


</tr>

</ItemTemplate>


<FooterTemplate>

</table>

</FooterTemplate>


</asp:Repeater>




</body>

</html>



Monday, February 2, 2009

ASP DOT NET CHEATSHEET

  • Q.1 What is the Difference between ASP and ASP.Net?
    The ASP normally stands for the OLD ASP programming. But ASP.Net is the latest technique.
  • Q2. So, ASP.Net is the latest version of ASP. Is that Right?
    No, ASP.Net is totally a New Generation of ASP (Not a simple upgradation to a new version). Q2. ASP stands for ?
    ASP stands for Active Server Pages
  • Q3. What is Classic ASP?
    The OLD ASP is now called as Classic ASP.
    ------------------------------------------------------------------
    Q5. I want to learn ASP.Net from my PC. What I should do?
    First thing is, Your pc should be a XP professional or Windows 2000 or higher versions
  • Q6. Ok, Mine is XP. Then?
    You should install IIS.
  • Q7. What is IIS? IIS stands for Internet Information Server. If you install IIS, it means, you have installed WEB SERVER in your pc.
  • Q8. Where I will get this IIS software?
    Q9. It is available in the Windows OS CD itself. The following are the steps to install IIS.
    Click START button >> SETTINGS > CONTROL PANEL >> ADD AND REMOVE PROGRAMS >> ADD/REMOVE WINDOWS COMPONENTS >> CLICK ON THE CHECK BOX AGAINST IIS >> CLICK NEXT >> Now it will ask you to insert the Windows OS CD. Just insert the Windows CD in the Drive. >> IIS will be over.
    -------------------------------------------------------------
  • Q9a. OK. I have installed IIS. Then?
    Then you should install .NET framework and Critical Security Updates and Latest Service packs.
  • Q9b. But How?
    Just open the Broswer >> Toos > Windows Update. That is all. All the necessary things will be installed by downloading from Internet.

  • Q9. In what way ASP.Net is better than Classic ASP?
    Actually, the classic ASP is more flexible and powerful than ASP.Net. But Maintaining the Program is very difficult.
  • Q10. What do you mean by MAINTAINING THE PROGRAM?
    If a program is written by Mr.X and if he left the company, it is very difficult to maintain or modify the code by another programmer Mr.Y. Because, Classic ASP is code intensive. But ASP.Net is written in a Framework concept and it is Object Oriented. So Maintaining the code is very easy. More over, for ENTERPRISE LEVEL APPLICATIONS, Classic ASP is NOT suitable.
    ---------------------------------------------------------
  • Q11. So, I should learn only the ASP.NET and not the Classic ASP. Is that Right?
    Yes. If you want to get more salary means, you should work for a Bigger Company. Bigger company means, it will be of Enterprise level Software Development. So ASP.Net gets you more salary than the classic one. But if you have the knowledge of classic ASP, learning ASP.Net will become quite easier.
    -------------------------------------------------------------------
  • Q12. ASP.Net is a Programming Language or Not?
    No.
    ASP.Net uses the Programming Languages like C# or J# or VisualBasic(VB.Net)
    -----------------------------------------------------------
  • Q13. What is Visual Studio.Net?
    It is an Editor or Development tool for ASP.Net Applications
    -----------------------------------------------
  • Q14. Is there any other advantage for ASP.Net over Classic ASP?
    ASP.Net runs the compiled Programs. So it is faster. Classic asp works like an Interpreter.
    ---------------------------------------------------------


Followers