I have linkbutton.
If i click linkbutton ,it should open dialogbox where i can select picture file and this should gets display above linkbutton in a small box..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sharad GuptaPosted Jun 12, 2013, 8:21 AM
komara salla
you can simply add another aspx or html page for dialog box like i add a aspx page for dialog box
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
simply manage this page for selecting picture and code on button 1 click to manage your picture displaying in a box.
Now How to call above aspx page as a dialog window
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
Now write this code on link button click for opening that window
protected void LinkButton1_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "call me", "myFunction()", true);
}
Thanks..