Wednesday, April 28, 2010

How to Generate "Popup Window" in Asp.Net with C#

  • Take two forms
  • Put one button in one form.
  • Write these coding into button click event
protected void Button2_Click(object sender, EventArgs e)
    {
        OpenNewWindow("Default2.aspx");
    }


// This is  function that is called when button is clicked
  
public void OpenNewWindow(string url)
    {

        ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("", url));

    }

Thursday, March 11, 2010

here is the pin codes of all the area of the Ahmadabad.

Click Here