Click here to Skip to main content
15,900,973 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Script..., Pin
Guffa27-Jul-07 22:47
Guffa27-Jul-07 22:47 
GeneralRe: Script..., Pin
Member 387988127-Jul-07 23:03
Member 387988127-Jul-07 23:03 
QuestionDatagrid control Pin
Prakash_Mishra27-Jul-07 20:39
Prakash_Mishra27-Jul-07 20:39 
AnswerRe: Datagrid control Pin
Member 387988127-Jul-07 20:57
Member 387988127-Jul-07 20:57 
GeneralRe: Datagrid control Pin
Prakash_Mishra27-Jul-07 21:16
Prakash_Mishra27-Jul-07 21:16 
GeneralRe: Datagrid control Pin
Member 387988127-Jul-07 21:38
Member 387988127-Jul-07 21:38 
GeneralRe: Datagrid control Pin
Prakash_Mishra27-Jul-07 22:12
Prakash_Mishra27-Jul-07 22:12 
AnswerRe: Datagrid control Pin
Vipin.d27-Jul-07 21:19
Vipin.d27-Jul-07 21:19 
. why didnt u can use query string for passing candid?
In datagrid , create a template column with hyper link
like
 <<code> <asp:TemplateColumn HeaderText="News Heading">
																								<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
																								<ItemStyle Width="35%"></ItemStyle>
																								<ItemTemplate>
																									<asp:HyperLink Runat =server CssClass=Newslink NavigateUrl ='<%#GetURL(DataBinder.Eval(Container.DataItem, "NewsId").ToString())%>' ID="Hyperlink1">
																										<%#DataBinder.Eval(Container.DataItem, "NewsHeading")%>
																									</asp:HyperLink>
																								</ItemTemplate>
																							</asp:TemplateColumn>

</code> >  




in c#
 <br />
protected     string GetURL (string fldval ) <br />
 <br />
		{ <br />
//here u can make ur if condition<br />
 			<br />
			string SzOpenwindow="";<br />
<br />
			<br />
			SzOpenwindow="javascript:openMywindow('yourpage1.aspx?&id="+ fldval +"','View',500,320)";<br />
<br />
			return SzOpenwindow; <br />
<br />
		}<br />

writa js

function openMywindow(url,name,iWidth,iHeight)
{


var iLeft = (screen.availWidth-500 - iWidth/ 2);

var iTop = (screen.availHeight-420 - iHeight / 2);

var features;

var objwindow;

features = "width="+iWidth+",height="+iHeight+",left="+iLeft+",top="+iTop;

features += ",screenX="+iLeft+",screenY="+iTop;

features += ",scrollbars=1,resizable=0,location=0";

features += ",menubar=0,toolbar=0,status=0";

objwindow = window.open(url,name, features);


}











All I ever wanted is what others have....
CrazySanker





AnswerRe: Datagrid control Pin
Imran Khan Pathan27-Jul-07 21:55
Imran Khan Pathan27-Jul-07 21:55 
QuestionFileUpload Control. - Not Working Pin
Jagadeesh Jupalli27-Jul-07 19:17
Jagadeesh Jupalli27-Jul-07 19:17 
AnswerRe: FileUpload Control. Pin
Christian Graus27-Jul-07 19:38
protectorChristian Graus27-Jul-07 19:38 
GeneralRe: FileUpload Control. Pin
Jagadeesh Jupalli27-Jul-07 20:15
Jagadeesh Jupalli27-Jul-07 20:15 
GeneralRe: FileUpload Control. Pin
Christian Graus27-Jul-07 21:49
protectorChristian Graus27-Jul-07 21:49 
AnswerRe: FileUpload Control. Pin
Guffa27-Jul-07 22:45
Guffa27-Jul-07 22:45 
QuestionASP3 & DB Pin
mehrdadc4827-Jul-07 19:14
mehrdadc4827-Jul-07 19:14 
AnswerRe: ASP3 & DB Pin
Paul Conrad27-Jul-07 19:42
professionalPaul Conrad27-Jul-07 19:42 
AnswerRe: ASP3 & DB Pin
Christian Graus27-Jul-07 19:47
protectorChristian Graus27-Jul-07 19:47 
GeneralRe: ASP3 & DB Pin
mehrdadc4827-Jul-07 20:40
mehrdadc4827-Jul-07 20:40 
GeneralRe: ASP3 & DB Pin
Christian Graus27-Jul-07 21:51
protectorChristian Graus27-Jul-07 21:51 
Question Insert a button on each row of a data grid(Code behind C#) Pin
paytam27-Jul-07 16:53
paytam27-Jul-07 16:53 
AnswerRe: Insert a button on each row of a data grid(Code behind C#) Pin
T.EDY27-Jul-07 17:19
T.EDY27-Jul-07 17:19 
GeneralRe: Insert a button on each row of a data grid(Code behind C#) Pin
paytam27-Jul-07 21:07
paytam27-Jul-07 21:07 
GeneralRe: Insert a button on each row of a data grid(Code behind C#) Pin
T.EDY29-Jul-07 17:38
T.EDY29-Jul-07 17:38 
QuestionRepeater Pin
Assaf8227-Jul-07 16:20
Assaf8227-Jul-07 16:20 
AnswerRe: Repeater Pin
Christian Graus27-Jul-07 17:46
protectorChristian Graus27-Jul-07 17:46 

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.