Feeds:
Posts
Comments

Archive for January, 2009

PopUp form can be open through two ways from code behind, you can use both way , parameters can be send through Query string as well

protected void Button1_Click(object sender, EventArgs e){
OpenNewWindow(”test.aspx”);
OpenNewWindowUsingResponse(“test.aspx”);
}
public void OpenNewWindow(string url)
{
ClientScript.RegisterStartupScript(this.GetType(), “newWindow”, String.Format(”<script>window.open(’{0}’);</script>”, url));
}
Public Void OpenNewWindowUsingResponse(string Url)
{
Response.Write(“<scr” + “ipt>\r\n”);
Response.Write(“open(‘” + Url + “‘);\r\n”);
Response.Write(“</scr” + “ipt>”);
}

Both Works fine

Read Full Post »

very helpful link i found on internet http://csharpdotnetfreak.blogspot.com/2008/12/export-gridview-to-pdf-using-itextsharp.html

Read Full Post »