Click here to Skip to main content
15,891,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to implement SSL on local IIS? Pin
hogan.john17-Dec-07 23:58
hogan.john17-Dec-07 23:58 
AnswerRe: How to implement SSL on local IIS? Pin
Michael Sync18-Dec-07 16:15
Michael Sync18-Dec-07 16:15 
QuestionHow to open a pop up window on clicking hyperlinkfield inside gridview Pin
mithun narayanan17-Dec-07 23:44
mithun narayanan17-Dec-07 23:44 
GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview Pin
N a v a n e e t h17-Dec-07 23:54
N a v a n e e t h17-Dec-07 23:54 
GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview [modified] Pin
mithun narayanan18-Dec-07 0:23
mithun narayanan18-Dec-07 0:23 
GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview Pin
N a v a n e e t h18-Dec-07 1:30
N a v a n e e t h18-Dec-07 1:30 
GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview Pin
mithun narayanan18-Dec-07 19:39
mithun narayanan18-Dec-07 19:39 
GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview Pin
Pankaj Chamria18-Dec-07 0:33
Pankaj Chamria18-Dec-07 0:33 
First you need an Itemplate in the GridView with Hyperlink as one of the required columns. I think you already have that. Then implement the row data bound event as below:

protected void GridView_RowDataBound ( object sender, GridViewRowEventArgs e )
{
LinkButton lnkBut = new LinkButton();
HyperLink hlnk = new HyperLink();


if ( (ListItemType)e.Row.RowType == ListItemType.Item ||
(ListItemType)e.Row.RowType == ListItemType.AlternatingItem )
{
hlnk = (HyperLink)( e.Row.FindControl("HyperLink1") );
string strPathFromDB = hlnk.Text; //NOTE: OR this can be a predetermined path hard-coded here if you wish to have the same path for all rows. You can add your query string after the path.
hlnk.NavigateUrl = String.Format("{0}", strPathFromDB.Replace("\\", "/"));
hlnk.Target = "_blank";

ALTERNATE WAY: Attach javascript to Hyperlink.
url = "DocumentLinkControl.aspx?TradeDate=" + tradeDate + "&CounterParty=" + counterParty

lnkBut.Attributes.Add("onclick", "window.open('" + url + "',null,'left=400, top=50, height=800, width= 650, status=no, resizable= no, scrollbars= yes, toolbar= no,location= no, menubar= no');");

}
}

Let me know if this didnt work..
Pankaj Chamria,
Software Programmer.

GeneralRe: How to open a pop up window on clicking hyperlinkfield inside gridview Pin
mithun narayanan18-Dec-07 19:40
mithun narayanan18-Dec-07 19:40 
GeneralPassing value in Javascript from DataList Pin
raushan_917-Dec-07 23:25
raushan_917-Dec-07 23:25 
GeneralCalling Aspx page Pin
danasegaranea17-Dec-07 23:03
danasegaranea17-Dec-07 23:03 
GeneralRe: Calling Aspx page Pin
Christian Graus17-Dec-07 23:08
protectorChristian Graus17-Dec-07 23:08 
GeneralRe: Calling Aspx page Pin
danasegaranea17-Dec-07 23:33
danasegaranea17-Dec-07 23:33 
QuestionHow to Authenticate Password Using MD5 Hash code Pin
rockz...17-Dec-07 22:52
rockz...17-Dec-07 22:52 
GeneralRe: How to Authenticate Password Using MD5 Hash code Pin
Christian Graus17-Dec-07 22:59
protectorChristian Graus17-Dec-07 22:59 
GeneralRe: How to Authenticate Password Using MD5 Hash code Pin
Paul Conrad23-Dec-07 8:08
professionalPaul Conrad23-Dec-07 8:08 
GeneralRe: How to Authenticate Password Using MD5 Hash code Pin
Paddy Boyd17-Dec-07 23:30
Paddy Boyd17-Dec-07 23:30 
GeneralRe: How to Authenticate Password Using MD5 Hash code Pin
Mark Churchill18-Dec-07 4:38
Mark Churchill18-Dec-07 4:38 
JokeRe: How to Authenticate Password Using MD5 Hash code Pin
Paddy Boyd18-Dec-07 4:42
Paddy Boyd18-Dec-07 4:42 
JokeRe: How to Authenticate Password Using MD5 Hash code Pin
Mark Churchill18-Dec-07 5:36
Mark Churchill18-Dec-07 5:36 
QuestionHow to change Image in Image Box at Runtime Pin
Zeeshan Ahmed Memon17-Dec-07 22:49
Zeeshan Ahmed Memon17-Dec-07 22:49 
AnswerRe: How to change Image in Image Box at Runtime Pin
Christian Graus17-Dec-07 22:54
protectorChristian Graus17-Dec-07 22:54 
GeneralRe: How to change Image in Image Box at Runtime Pin
Zeeshan Ahmed Memon17-Dec-07 23:12
Zeeshan Ahmed Memon17-Dec-07 23:12 
GeneralString And UTF Encoding Pin
Deepak the Cool17-Dec-07 22:41
Deepak the Cool17-Dec-07 22:41 
GeneralRe: String And UTF Encoding Pin
Paddy Boyd17-Dec-07 23:33
Paddy Boyd17-Dec-07 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.