No html source for datagrid

K

Ken Cox [Microsoft MVP]

Hi John,

There's some odd markup in there like this:

<IFRAME id=__hifSmartNav style="DISPLAY: none" name=__hifSmartNav
src="/aspnet_client/system_web/1_1_4322/SmartNav.htm"></IFRAME>

Is SmartNav.htm actually accessible? You could try turning off
SmartNavigation to see if that fixes this.

Anyway, you can get at the source with this IE add-in:

http://www.thundermain.com/code/FullSource.aspx

Here's the entire source.

<HTML><HEAD><TITLE>report</TITLE>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<META content=C# name=CODE_LANGUAGE>
<META content=JavaScript name=vs_defaultClientScript>
<META content=http://schemas.microsoft.com/intellisense/ie5
name=vs_targetSchema><LINK href="/css/styles.css" type=text/css
rel=stylesheet>
<SCRIPT language=javascript src="script.js"></SCRIPT>
</HEAD>
<BODY MS_POSITIONING="GridLayout"><IFRAME id=__hifSmartNav style="DISPLAY:
none" name=__hifSmartNav
src="/aspnet_client/system_web/1_1_4322/SmartNav.htm"></IFRAME>
<FORM id=report name=report action=report.aspx method=post
target=__hifSmartNav1100312682921 __smartNavEnabled="true"
__formAttached="true"><INPUT type=hidden
name=HierarGrid_ExpandedIDs_gdReport> <INPUT type=hidden name=__EVENTTARGET>
<INPUT type=hidden name=__EVENTARGUMENT> <INPUT type=hidden
value=dDwtMTExMTQ5MzEzOztsPGdkUmVwb3J0Oz4+yCMF5i6TRUh+6e6I0jJCRf2Ch8E=
name=__VIEWSTATE>
<SCRIPT language=javascript type=text/javascript>
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.report;
}
else {
theform = document.forms["report"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</SCRIPT>

<SCRIPT language=JavaScript>
function HierarGrid_toggleRow(sender)
{
if(sender == null)
return;

var state = 1;

//if the hidden row has not already been generated, clone the panel into a
new row
var existingRow = window.document.getElementById(sender.id + "showRow");
if (existingRow==null)
{
//getting a reference to the table
var table = GetParentElementByTagName(sender, "TABLE");
var index = GetParentElementByTagName(sender, "TR").sectionRowIndex + 1;
//concatenate name of hidden panel => replace "Icon" from sender.id with
"Panel"\n
rowDivName = HierarGrid_ReplaceStr(sender.id, "Icon", "Panel");
var rowDiv = window.document.getElementById(rowDivName);
//adding new row to table
var newRow = table.insertRow(index);
newRow.id = sender.id + "showRow";
//adding new cell to row
var newTD=document.createElement("TD");
if(table.rows[0].cells[0].colSpan > 1)
newTD.colSpan = table.rows[0].cells[0].colSpan;
else
newTD.colSpan = table.rows[0].cells.length;
var myTD = newRow.appendChild(newTD);
//clone Panel into new cell
var copy = rowDiv.cloneNode(true);
selectsControl = copy.getElementsByTagName("select");
//manually copy selected state of <select> tags
for(var i = 0; i < selectsControl.length; i ++)
{
var selectOld = document.getElementById(selectsControl.id);
for(var j = 0; j< selectOld.options.length; j++)
{
if(selectOld.options[j].selected)
selectsControl.options[j].selected =true;
}
}

copy.style.display = "";
myTD.appendChild(copy);
rowDiv.parentNode.removeChild(rowDiv);

sender.src = HierarGrid_ReplaceStr(sender.src, "plus", "minus");
state = 1;
}
else
{
if (existingRow.style.display=="none")
{
existingRow.style.display = "";
sender.src = HierarGrid_ReplaceStr(sender.src, "plus", "minus");
state = 1;
}
else
{
existingRow.style.display = "none";
sender.src = HierarGrid_ReplaceStr(sender.src, "minus", "plus");
state = 0;
}
}
ChangeRowState(sender, state);
}
function HierarGrid_ReplaceStr(orgString, findString, replString)
{
pos = orgString.lastIndexOf(findString);
return orgString.substr(0, pos) + replString + orgString.substr(pos +
findString.length);
}
function GetParentElementByTagName(element, tagName)
{
var element=element;
while(element.tagName != tagName)
element = element.parentNode;
return element;
}
function ChangeRowState(sender, state)
{
var table = GetParentElementByTagName(sender, "TABLE");
var rowStates =
document.getElementsByName(table.ExpandedClientIDsName)[0].value;

if(state == 1)
{
if(rowStates.indexOf(sender.id) == -1)
rowStates += ", " + sender.id;
}
else if(state == 0)
rowStates = rowStates.replace(sender.id, "");

document.getElementsByName(table.ExpandedClientIDsName)[0].value =
rowStates;
}
</SCRIPT>

<SCRIPT language=JScript
src="/aspnet_client/system_web/1_1_4322/SmartNav.js"
type=text/JScript></SCRIPT>

<TABLE class=DataGridItem id=Table1 style="Z-INDEX: 102; LEFT: 48px;
POSITION: absolute; TOP: 256px" cellSpacing=1 cellPadding=1 width=300
border=0>
<TBODY>
<TR>
<TD style="WIDTH: 83px" align=right><SPAN class=standard-text id=Label1
style="FONT-WEIGHT: bold">Start Date :</SPAN></TD>
<TD><INPUT id=txtStartDate style="WIDTH: 104px" size=12 value=11/10/2004
name=txtStartDate><A href="javascript:OpenCalendar('txtStartDate',
true)"><IMG src="http://www.jamsportland.com/images/icon-calendar.gif"
align=absBottom border=0></A></TD></TR>
<TR>
<TD style="HEIGHT: 26px" align=right><SPAN class=standard-text id=Label5
style="FONT-WEIGHT: bold">End Date :</SPAN></TD>
<TD style="HEIGHT: 26px"><INPUT id=txtEndDate style="WIDTH: 104px" size=12
value=11/12/2004 name=txtEndDate><A
href="javascript:OpenCalendar('txtEndDate', true)"><IMG
src="http://www.jamsportland.com/images/icon-calendar.gif" align=absBottom
border=0></A></TD></TR>
<TR>
<TD align=right></TD>
<TD><INPUT id=btnRefresh type=submit value=Refresh
name=btnRefresh></TD></TR></TBODY></TABLE>
<TABLE id=gdReport style="Z-INDEX: 101; LEFT: 96px; WIDTH: 704px; POSITION:
absolute; TOP: 376px; BORDER-COLLAPSE: collapse; HEIGHT: 748px"
cellSpacing=0 rules=all border=1
ExpandedClientIDsName="HierarGrid_ExpandedIDs_gdReport">
<TBODY>
<TR class=grid-header>
<TD>&nbsp;</TD>
<TD><A href="javascript:__doPostBack('gdReport$_ctl2$_ctl0','')">Rate
Type</A></TD>
<TD><A
href="javascript:__doPostBack('gdReport$_ctl2$_ctl1','')">Description</A></TD>
<TD><A
href="javascript:__doPostBack('gdReport$_ctl2$_ctl2','')">From</A></TD>
<TD><A href="javascript:__doPostBack('gdReport$_ctl2$_ctl3','')">To</A></TD>
<TD><A href="javascript:__doPostBack('gdReport$_ctl2$_ctl4','')">Changed
By</A></TD>
<TD><A href="javascript:__doPostBack('gdReport$_ctl2$_ctl5','')">Change
Date</A></TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>CD</TD>
<TD>5565 $500.00 - $19999.99</TD>
<TD>jgfjhjgh</TD>
<TD>5565</TD>
<TD>john smith</TD>
<TD>11/10/04 11:29</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Equity Loans</TD>
<TD>Fixed Rate Equity Loans - Owner occupied - 5-YR</TD>
<TD>4.990</TD>
<TD>3.990</TD>
<TD>john smith</TD>
<TD>11/10/04 12:18</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Equity Loans</TD>
<TD>Fixed Rate Equity Loans - Owner occupied - 10-YR</TD>
<TD>7.740</TD>
<TD>5.740</TD>
<TD>john smith</TD>
<TD>11/10/04 12:18</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Checking</TD>
<TD>$50,000.00 and Over</TD>
<TD>1.700</TD>
<TD>7.700</TD>
<TD>john smith</TD>
<TD>11/10/04 12:19</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>First Mortgage</TD>
<TD>1/1 ARM, Owner Occup</TD>
<TD>3.625</TD>
<TD>4.625</TD>
<TD>john smith</TD>
<TD>11/10/04 12:27</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>First Mortgage</TD>
<TD>7/1 ARM, Owner Occup</TD>
<TD>1.0%</TD>
<TD>5.0%</TD>
<TD>john smith</TD>
<TD>11/10/04 12:27</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Retired Loans</TD>
<TD>Stock LOC - New</TD>
<TD>7.660</TD>
<TD>6.660</TD>
<TD>john smith</TD>
<TD>11/10/04 12:34</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Retired Loans</TD>
<TD>Variable Rate New Auto</TD>
<TD>5.000</TD>
<TD>1.000</TD>
<TD>john smith</TD>
<TD>11/10/04 12:34</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Secured Loans</TD>
<TD>Autos, Vans, Trucks &amp; SUVs - 61 - 72 Months</TD>
<TD>3.490</TD>
<TD>4.490</TD>
<TD>john smith</TD>
<TD>11/10/04 12:53</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Secured Loans</TD>
<TD>Autos, Vans, Trucks &amp; SUVs - 73 - 84 Months</TD>
<TD>11.490</TD>
<TD>51.490</TD>
<TD>john smith</TD>
<TD>11/10/04 12:53</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Signature Loans</TD>
<TD>Classic Visa</TD>
<TD>11.500</TD>
<TD>6.500</TD>
<TD>john smith</TD>
<TD>11/10/04 12:55</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Signature Loans</TD>
<TD>Starter Visa</TD>
<TD>0.000</TD>
<TD>50.000</TD>
<TD>john smith</TD>
<TD>11/10/04 12:55</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Signature Loans</TD>
<TD>Secured Visa</TD>
<TD>0.000</TD>
<TD>4.000</TD>
<TD>john smith</TD>
<TD>11/10/04 12:55</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Money Market</TD>
<TD>$0.00 - $9,999.99</TD>
<TD>2.100</TD>
<TD>3.100</TD>
<TD>john smith</TD>
<TD>11/10/04 12:30</TD></TR>
<TR class=DataGridItem>
<TD></TD>
<TD>Money Market</TD>
<TD>$100,000.00 and Over</TD>
<TD>2.070</TD>
<TD>3.070</TD>
<TD>john smith</TD>
<TD>11/10/04 12:30</TD></TR>
<TR class=DataGridAltItem>
<TD></TD>
<TD>Savings</TD>
<TD>$2,500.00 - $9,999.99</TD>
<TD>0.950</TD>
<TD>10.950</TD>
<TD>john smith</TD>
<TD>11/10/04 12:37</TD></TR>
<TR class=DataGridPager>
<TD colSpan=7><SPAN>1</SPAN></TD></TR></TBODY></TABLE><SPAN id=lblError
style="Z-INDEX: 103; LEFT: 120px; WIDTH: 456px; COLOR: red; POSITION:
absolute; TOP: 344px"></SPAN><SPAN class=presentText id=Label2
style="Z-INDEX: 104; LEFT: 144px; WIDTH: 401px; POSITION: absolute; TOP:
216px">Rate Changes Report</SPAN>
<SCRIPT language=JavaScript>
var HierarGrid_ExpandedIDs_gdReport =
document.getElementById("HierarGrid_ExpandedIDs_gdReport").value.split(",
");
for(var index = 0; index < HierarGrid_ExpandedIDs_gdReport.length; index++)
{
if(HierarGrid_ExpandedIDs_gdReport[index] != null &&
HierarGrid_ExpandedIDs_gdReport[index] != "")
HierarGrid_toggleRow(document.getElementById(HierarGrid_ExpandedIDs_gdReport[index]));
}
</SCRIPT>
</FORM></BODY></HTML>
 
K

Ken Cox [Microsoft MVP]

Oops. Sorry, I didn't realize there was an earlier thread where you found
nailed it down to SmartNavigation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top