Skip to content Skip to sidebar Skip to footer

asp.net Introduction

Asp.Net Introduction:-
      Asp.net is the web based application, this can be written into two types one is server side coding another one is client side programming, the server side program is purely written in asp(Active Server Page) program and the client side scripting is written in JavaScript, JQuery and/HTML codings. Any how we need to know the basic of the html coding then only we can learn easier asp.net. Basically the asp.net using  Microsoft SQL server and many plugins are there for easier to write the programs.

Microsoft asp.net image


Difference of in normal HTML controls and asp.net controls.
Asp.Net:-

<script type="text/javascript">
function clear_text()
{
  if($("#<%=text1.ClientID%>").text()=="")
  {
   alert("Text Box is already Clear");
 }
else
{
  $("#<%=text1.ClientID%>").text("");
}
}
</script>
................
................
<asp:textbox id="text1" placeholder="Enter any Text" runat="server"/>
<asp:button text="Clear" id="button1" onClientClick="clear_text(); return false;" runtat="server"/>


HTML:-

<script type="text/javascript">
function clear_text()
{
  if($("#text1").val()=="")
  {
   alert("Text Box is already Clear");
 }
else
{
  $("#text1").val("");
 }
}
</script>
................
................
<input type="textbox" id="text1" placeholder="Enter any Text"/>
<input type="button" Value="Clear" id="button1" onclick="clear_text();"/>


Output:-


Advertisement:-

Post a Comment for "asp.net Introduction"