A
ABHIJIT B
Hi,
I am developing one WebPage which has table stucture for which I
acnnot us HtmlTable class,GridView,DataGrid etc. for display.
The following is script inwhich I am using Response.Write() for
generating Table.
This script I am assigning to Literal Control in next step.
The problem I am facing is I want to open .htm page as PopuP either by
using window.open or showmodal dialog.
------------------------------------------------------------
Normal html code :
body>
<a href="#"
onclick="mywin001=window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);return false">Slide1</
a>
<br />
<a href="#" onclick="mywin001=OpenIt()">Slide2</a>
</body>
</html>
<script language="javascript" type="text/javascript">
function OpenIt()
{
alert("Hi");
window.event.returnValue=false;
//var returnVal = '';
//returnVal =
window.showModalDialog('SearchUsers.htm','','center:yes;scroll:no;resizable:no;dialogWidth:
750px;dialogHeight:425px;dialogHide:true;status:no;help:no');
var mywin001 = window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);
return true;
}
</script>
------------------------------------------------------------
I want tto use <a href='#' functionality in Response.Write I replaced
double qutoes with single quote it is giving syntax error..Kindly help
me out.
ASPX.cs code :
if (dtServiceStatusInfo.Rows.Count > 0)
{
Response.Write("<table border='1'>");
Response.Write("<tr>");
Response.Write("<td rowspan='2' style='width:
175px' align='center'> SERVICE </td>");
Response.Write("<td rowspan='1' colspan='3'
style='width: 225px' align='center'> EXPECTED </td>");
Response.Write("<td rowspan='2' align='center'>
PROCESSED </td>");
Response.Write("<td rowspan='2' align='center'>
DATACHECKER <br /> RUN </td>");
Response.Write("<td rowspan='2' align='center'>
NOT <br /> OPEN </td>");
Response.Write("<td rowspan='2' align='center'> IN
<br /> PROGRESS </td>");
Response.Write("<td rowspan='2' align='center'>
SUB. FOR <br /> RELEASE </td>");
Response.Write("<td rowspan='2' colspan='2'
align='center'> SUB. FOR <br /> RE-RUN </td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> IN CRS <br /> & NOT IN PRODN. </td>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> NOT IN CRS <br /> BUT IN PRODN. </td>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> IN CRS <br /> & IN PRODN. </td>");
Response.Write("</tr>");
foreach (DataRow record in
dtServiceStatusInfo.Rows)
{
Response.Write("<tr>");
Response.Write("<td rowspan='1' style='width:
175px' align='center'><a href='DatabaseControl.aspx?QStrServiceDesc="
+ record["ServiceDesc"].ToString() + "'>" +
record["ServiceDesc"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='#'
onclick='mywin001=window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);return false'>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='#'mywin001=OpenIt() '>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinPDN"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinBoth"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBProcessed"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["DCRun"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NotOpenedDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["InProgressDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["ReleaseDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["ReRunDBCnt"].ToString() + "</a></td>");
Response.Write("</tr>");
}
Response.Write("</table>");
dcDCHSucess = true;
}
I am developing one WebPage which has table stucture for which I
acnnot us HtmlTable class,GridView,DataGrid etc. for display.
The following is script inwhich I am using Response.Write() for
generating Table.
This script I am assigning to Literal Control in next step.
The problem I am facing is I want to open .htm page as PopuP either by
using window.open or showmodal dialog.
------------------------------------------------------------
Normal html code :
body>
<a href="#"
onclick="mywin001=window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);return false">Slide1</
a>
<br />
<a href="#" onclick="mywin001=OpenIt()">Slide2</a>
</body>
</html>
<script language="javascript" type="text/javascript">
function OpenIt()
{
alert("Hi");
window.event.returnValue=false;
//var returnVal = '';
//returnVal =
window.showModalDialog('SearchUsers.htm','','center:yes;scroll:no;resizable:no;dialogWidth:
750px;dialogHeight:425px;dialogHide:true;status:no;help:no');
var mywin001 = window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);
return true;
}
</script>
------------------------------------------------------------
I want tto use <a href='#' functionality in Response.Write I replaced
double qutoes with single quote it is giving syntax error..Kindly help
me out.
ASPX.cs code :
if (dtServiceStatusInfo.Rows.Count > 0)
{
Response.Write("<table border='1'>");
Response.Write("<tr>");
Response.Write("<td rowspan='2' style='width:
175px' align='center'> SERVICE </td>");
Response.Write("<td rowspan='1' colspan='3'
style='width: 225px' align='center'> EXPECTED </td>");
Response.Write("<td rowspan='2' align='center'>
PROCESSED </td>");
Response.Write("<td rowspan='2' align='center'>
DATACHECKER <br /> RUN </td>");
Response.Write("<td rowspan='2' align='center'>
NOT <br /> OPEN </td>");
Response.Write("<td rowspan='2' align='center'> IN
<br /> PROGRESS </td>");
Response.Write("<td rowspan='2' align='center'>
SUB. FOR <br /> RELEASE </td>");
Response.Write("<td rowspan='2' colspan='2'
align='center'> SUB. FOR <br /> RE-RUN </td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> IN CRS <br /> & NOT IN PRODN. </td>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> NOT IN CRS <br /> BUT IN PRODN. </td>");
Response.Write("<td rowspan='1' style='width:
75px' align='center'> IN CRS <br /> & IN PRODN. </td>");
Response.Write("</tr>");
foreach (DataRow record in
dtServiceStatusInfo.Rows)
{
Response.Write("<tr>");
Response.Write("<td rowspan='1' style='width:
175px' align='center'><a href='DatabaseControl.aspx?QStrServiceDesc="
+ record["ServiceDesc"].ToString() + "'>" +
record["ServiceDesc"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='#'
onclick='mywin001=window.open('DataCheckerStatusReport.htm',
700,450,null,null,'mywin001',5,true,true,true);return false'>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
//Response.Write("<td rowspan='1'
align='center'><a href='#'mywin001=OpenIt() '>" +
record["NoOfDBinCRS"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinPDN"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBinBoth"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NoOfDBProcessed"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["DCRun"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["NotOpenedDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["InProgressDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["ReleaseDBCnt"].ToString() + "</a></td>");
Response.Write("<td rowspan='1'
align='center'><a href='http://www.google.com'>" +
record["ReRunDBCnt"].ToString() + "</a></td>");
Response.Write("</tr>");
}
Response.Write("</table>");
dcDCHSucess = true;
}