MR alaa

MR alaa

  • 1.1k
  • 631
  • 21.3k

web browers control c#

May 15 2016 5:06 PM
hi every boy 
how to get all element  values in td of  this piece of code 
there is comment before webpage code which contain values
 the value are in <SCRIPT type=text/javascript> its value 1 and value 2 
how can i get them despite they are in <!--       --> in comment tage ?? 
  1. <table>  
  2. <TBODY>  
  3. <TR>  
  4. <TD vAlign=top align=center>  
  5. <DIV id=ContentPlaceHolder1_CrystalReportViewer1 style="BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none">  
  6. <LINK rel=stylesheet type=text/css href="../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css">  
  7. <STYLE>  
  8. .drill_cursor {  
  9. cursor: url('../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/drill_cursor.cur'), default;  
  10. }  
  11. </STYLE>  
  12. <SCRIPT type=text/javascript>  
  13. <!-- 
  14. bobj.crv.writeWidget({'cons':'bobj.crv.newViewer','args':{'id':'ContentPlaceHolder1_CrystalReportViewer1__UI','isDisplayModalBG':false,'visualStyle':{'width':'868px','height':'1202px'},'layoutType':'fitReport'},'children':[{'cons':'bobj.crv.newPrintUI','args':{'isActxPrinting':true,'codeBase':'../aspnet_client/system_web/4_0_30319/crystalreportviewers13/ActiveXControls/PrintControl.cab','url':'../emp_teacher/crevision_newN.aspx','maxPage':1,'paperOrientation':1,'paperSize':1,'paperWidth':0,'paperLength':0,'driverName':'DISPLAY','useDefPrinter':false,'useDefPrinterSettings':false,'sendPostDataOnce':'0','lcid':1033}},{'cons':'bobj.crv.newReportProcessingUI'},{'cons':'bobj.crv.newExportUI','args':{'canSupportRange':true,'availableFormats':[{'name':'Crystal Reports (RPT)','value':'CrystalReports'},{'name':'PDF','value':'PDF'},{'name':'Microsoft Excel (97-2003)','value':'MSExcel'},{'name':'Microsoft Excel (97-2003) Data-Only','value':'RecordToMSExcel'},{'name':'Microsoft Excel Workbook Data-only','value':'RecordToMSExcel2007'},{'name':'Microsoft Word (97-2003)','value':'MSWord'},{'name':'Microsoft Word (97-2003) - Editable','value':'EditableRTF'},{'name':'Rich Text Format (RTF)','value':'RTF'},{'name':'Character Separated Values (CSV)','value':'CharacterSeparatedValues'},{'name':'XML','value':'XML'}]}},{'cons':'bobj.crv.newToolbar','args':{'visualStyle':{'className':'crtoolbar'},'id':'CrystalReportViewer1_toptoolbar'},'children':[{'cons':'bobj.crv.newToolbarButtonGroup','args':{'id':'_btnGrp'},'children':[{'cons':'bobj.crv.newPrintButton','args':{'id':'CrystalReportViewer1_toptoolbar_print','isDisabled':false}},{'cons':'bobj.crv.newDrillUpButton','args':{'id':'CrystalReportViewer1_toptoolbar_drillUp','isDisabled':true}}]},{'cons':'bobj.crv.newToolbarSeparator'},{'cons':'bobj.crv.newSearchTextControl','args':{'id':'CrystalReportViewer1_toptoolbar_search','searchText':''}},{'cons':'bobj.crv.newToolbarSeparator'},{'cons':'bobj.crv.newPrevPageButton','args':{'id':'CrystalReportViewer1_toptoolbar_prevPg','isDisabled':false}},{'cons':'bobj.crv.newNextPageButton','args':{'id':'CrystalReportViewer1_toptoolbar_nextPg','isDisabled':false}},{'cons':'bobj.crv.newSelectPageControl','args':{'curPage':1,'numPages':'1','id':'CrystalReportViewer1_toptoolbar_selectPg','showMenu':true}},{'cons':'bobj.crv.newZoomControl','args':{'id':'CrystalReportViewer1_toptoolbar_zoom','initialZoom':100}}]},{'cons':'bobj.crv.newReportAlbum','args':{'initTabIdx':0,'displayDrilldownTab':true},'children':[{'cons':'bobj.crv.newReportView','args':{'viewStateId':'0','label':'Main Report','isMainReport':true},'children':[{'cons':'bobj.crv.newReportPage','args':{'width':816,'height':1056,'documentView':'PrintLayout','content':'\r\n<style>\r\n div.crystalstyle div {position:absolute; z-index:25}\r\n div.crystalstyle a {text-decoration:none}\r\n div.crystalstyle a img {border-style:none; border-width:0}\r\n div.crystalstyle div.tbg {background: url("../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/dhtmllib/images/transp.gif") repeat-x repeat-y;}\r\n .drill_cursor { cursor: url("../aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/drill_cursor.cur"), default; }\t.fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-0 {font-size:12pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-1 {font-size:14pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-2 {font-size:16pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-3 {font-size:11pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-0 {border-color:#000000;border-style:solid;border-width:0px;border-left-style:solid;border-left-width:1px;border-right-style:solid;border-right-width:1px;border-top-style:solid;border-top-width:1px;border-bottom-style:solid;border-bottom-width:1px;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-1 {background-color:#C0C0C0;layer-background-color:#C0C0C0;border-color:#FFFFFF;border-left-width:0px;border-right-width:0px;border-top-width:0px;border-bottom-width:0px;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-2 {border-color:#000000;border-left-width:0px;border-right-width:0px;border-top-width:0px;border-bottom-style:outset;border-bottom-width:0px;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-3 {background-color:#D6D6D6;layer-background-color:#D6D6D6;border-color:#000000;border-left-width:0px;border-right-width:0px;border-top-width:0px;border-bottom-width:0px;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-4 {border-color:#000000;border-style:solid;border-width:0px;border-left-style:solid;border-left-width:1px;border-right-width:0px;border-top-width:0px;border-bottom-style:outset;border-bottom-width:0px;}\r\n\t.ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-5 {border-color:#000000;border-style:solid;border-width:0px;border-left-style:solid;border-left-width:2px;border-right-style:solid;border-right-width:2px;border-top-style:solid;border-top-width:2px;border-bottom-style:solid;border-bottom-width:2px;}\r\n<\/style>\r\n<div name="ctl00$ContentPlaceHolder1$CrystalReportViewer1$ctl01" id="ContentPlaceHolder1_CrystalReportViewer1_ctl01" class="crystalstyle" style="overflow:hidden;width:100%;height:100%;">\r\n\t<div class="crystalstyle" style="margin-top:24px;margin-bottom:24px;margin-left:24px;margin-right:24px;top:0px;left:0px;width:768px;height:1008px;overflow:hidden;">\r\n <div id="Box4" class="ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-5" style="z-index:10;top:80px;left:8px;width:731px;height:815px;">\r\n\r\n <\/div>\r\n <div id="Box2" class="ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-0" style="z-index:10;top:825px;left:8px;width:733px;height:69px;">\r\n\r\n <\/div>\r\n <div id="Box3" class="ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-5" style="z-index:10;top:433px;left:8px;width:732px;height:228px;">\r\n\r\n <\/div>\r\n <div id="Section2" class="nn" style="z-index:3;top:0px;left:0px;width:768px;height:201px;">\r\n\r\n <\/div>\r\n <div id="MUDNAME1" class="tbg ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-0" style="top:85px;left:437px;width:152px;height:27px;text-align:right;">\r\n <table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr>\r\n <td><table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr>\r\n <td align="right" nowrap="true" style="vertical-align:top;"><span class="fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-0" style="position:absolute;right:0px;">value 1<\/span><\/td>\r\n <\/tr>\r\n <\/table><\/td>\r\n <\/tr>\r\n <\/table>\r\n <\/div><div style="width:154px;height:4px;top:114px;left:441px;overflow:hidden;z-index:25;background-color:#000000;layer-background-color:#000000;">\r\n\r\n <\/div><div style="width:4px;height:29px;top:89px;left:591px;overflow:hidden;z-index:25;background-color:#000000;layer-background-color:#000000;">\r\n\r\n <\/div>\r\n <div id="EDARANAME1" class="tbg ad1dd726ee-12bf-4066-9c57-99b1cdc6bd6f-0" style="top:85px;left:21px;width:152px;height:27px;text-align:right;">\r\n <table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr>\r\n <td><table width="100%" border="0" cellpadding="0" cellspacing="0">\r\n <tr>\r\n <td align="right" nowrap="true" style="vertical-align:top;"><span class="fc14cc3e7b-21d0-4dc1-a4a4-d78699cb397e-0" style="position:absolute;right:0px;">value 2<\/span><\/td>\r\n <\/tr>\r\n <\/table><\/td>\r\n <\/tr>\r\n <\/table>\r\n <\/div> \r\n'}}]}]},{'cons':'bobj.crv.newLeftPanel','args':{'hasToggleGroupTreeButton':false,'hasToggleParameterPanelButton':false},'children':[{'cons':'bobj.crv.newToolPanel','args':{'initialViewType':'None','width':'200px'},'children':[{'cons':'bobj.crv.newGroupTree','args':{'toolPanelType':'GroupTree','enableDrilldown':true,'enableNavigation':true,'lastExpandedPath':'','label':'Group Tree','visualStyle':{}}}]}]},{'cons':'bobj.crv.newStatusbar','args':{'id':'ContentPlaceHolder1_CrystalReportViewer1__UI_statusbar'},'children':[{'cons':'bobj.crv.newStatusbarBreadcrumb','args':{'values':[]}},{'cons':'bobj.crv.newStatusbarVersionIndicator'}]}]}); //-->  
  15. </SCRIPT>  
  16. </DIV>  
  17. </TD>  
  18. </TR>  
  19. </TBODY>  
  20. </table>  
  21.    

Answers (2)