Monthly Archives: May 2012

AdRotator Control in ASP.Net

ASP.Net AdRotator Control - How to use Adrotator control in ASP.Net C#. Adrotator control is used to display the sequence of advertisement images on web page in asp.net.

Page refresh automatic in ASP.Net

Add meta tag in your Head portion and your page will automatically refreshed with 3 second interval.
       


<html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Meera Academy</title>
<meta http-equiv=”refresh” content=”3 url=http://meeraacademy.com”>
</head>
<body>
<form id=”form1″ runat=”server”>
<div></div>
</form>
</body>
</html>

<meta http-equiv=”refresh” content=”3 url=http://meeraacademy.com”>

read more

IF Statement in JavaScript

learn to use IF Statement in Javascript. Here we learn how to use IF Statement in Javascript and how to call javascript function on Button click events in HTML Documents.

How to use Prompt box in JavaScript

In the Prompt box, user will have two option OK OR Cancel.Prompt box allow user to input a value before click the OK OR Cancel Button.If clicks "OK", means true. If clicks "Cancel", means false.

How to use Confirm box in JavaScript

Confirmation javascript used to confirm an important actions that are taking place on a website. For example, they may be used to confirm an order submission or logout from the website, change the login password we confirm that action before they done..

Alert box in JavaScript

Alert function in Javascript. An alert dialog box is used to give a warning message to the users on website.

Declare a variable in JavaScript

cc    Declare a variable is imortant thing in any language. Here, we declare a variable with var Keyword in javascript.
<head runat=”server”>
<script language=”javascript” type=”text/javascript”>var  name;
name=”Meera Academy”;
document.write(name);
</script>
</head>                                             

read more

What is JavaScript?

What is JavaScript ? how to use JavaScript in HTML document.

ASP.Net Interview Short Questions

ASP.Net C# Short Interview Questions, interview question for asp.net c#. Question for asp.net framework.

MasterPage in ASP.Net

MasterPage in ASP.Net

  • MasterPage is a very useful concept of ASP.Net.
  • A single master page defines the look and feel and standard behavior  for all of the pages in your .Net application. 
  • Start to Create a MastePage in ASP.Net 
  • First, Add new masterpage in your web application from add new item tab. 
  • give the name of masterpage which you want. and then click add button to create new masterpage in your web application.
  • After doing this, you will have a below screen. 
  • which describe the HTML code of MastePage.

read more

Read XML file and Bind to DataGrid in ASP.Net.

Bind XML file to DataGrid

C# .Net

    DataSet DS = new DataSet();
    DS.ReadXml(Server.MapPath("meeraacademy.xml"));
    DataGrid1.DataSource = DS.Tables[0].DefaultView;
    DataGrid1.DataBind();


Create a meeraacademy.xml file.

"1">    
      Meera
      Vasani 
      Modasa

  
Student >
  <
Student id="2">    
      Rahul
      Patel
      Bombay
 
Student >

 

  • Vb.Net

    Dim Ds as New DataSet
    DS.ReadXML(Mappath("meeraacademy.xml"))
    DataGrid1.DataSource=DS
    DataGrid1.DataBind()

    read more

  • What is IsPostBack?

    IsPostBack in ASP.Net

    • IsPostBack meaning that the web form has been submitted back to the Server.