[Webtest] (no subject)

Sophie De Malet Roquefort Sophie De Malet Roquefort <sdemaletroquefort@datadiscoveries.com>
Mon, 11 Jul 2011 14:50:37 +0100


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> P, UL, OL, DL, DIR, MENU, PRE { margin: 0 auto;}</STYLE>

<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY leftMargin=1 rightMargin=1 topMargin=1><FONT size=2>
<P align=left><FONT face=Tahoma>Hi&nbsp;there,<FONT face=Tahoma><FONT face=Tahoma></FONT></P>
<DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma></FONT></DIV>
<DIV><FONT face=Tahoma>I am using an Ajax drop down extender control, which displays a grid when a text box is clicked.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Consolas><FONT face=Consolas>
<P>In the rowdatabound event of the grid, I set the onclick event handler to set the selected row of the grid.</P>
<P>&nbsp;</P>
<P>e.Row.Attributes[</FONT></FONT><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas>"onclick"</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>] = Page.ClientScript.GetPostBackClientHyperlink(FileGridView,</P>
<P></FONT></FONT><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas>"Select$"</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> + e.Row.RowIndex);</FONT></FONT></P>
<P><FONT face=Consolas><FONT face=Consolas></FONT></FONT>&nbsp;</P>
<P><FONT face=Consolas><FONT face=Consolas>This is then handled by the following event handler:</FONT></FONT></P>
<P><FONT face=Consolas></FONT>&nbsp;</P><FONT face=Consolas><FONT face=Consolas>
<P></FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>protected</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> </FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>void</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> FileGridView_SelectedIndexChanged(</FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>object</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> sender, </FONT></FONT><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas>EventArgs</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> e)</P>
<P>{</P></FONT></FONT><FONT face=Consolas><FONT face=Consolas>
<P>&nbsp;&nbsp;&nbsp;&nbsp; txtFile.Text = FileGridView.SelectedRow != </FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>null</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> ? Server.HtmlDecode(FileGridView.SelectedRow.Cells[1].Text) : </FONT></FONT><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas>""</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>;</P>
<P></FONT></FONT><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas>&nbsp;&nbsp;&nbsp;&nbsp; ProfileCommon</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> profile = Profile.GetProfile(Profile.UserName);</P>
<P></FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>&nbsp;&nbsp;&nbsp;&nbsp; if</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas> (FileGridView.SelectedRow == </FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>null</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>) </FONT></FONT><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas><FONT color=#0000ff face=Consolas>return</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; profile.</FONT></FONT><FONT color=#ff0000 face=Consolas><FONT color=#ff0000 face=Consolas><FONT color=#ff0000 face=Consolas>User</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>.ImportId = </FONT></FONT><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas><FONT color=#2b91af face=Consolas>Convert</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>.ToInt32(FileGridView.SelectedRow.Cells[0].Text);</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; profile.</FONT></FONT><FONT color=#ff0000 face=Consolas><FONT color=#ff0000 face=Consolas><FONT color=#ff0000 face=Consolas>Save</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>();</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect(</FONT></FONT><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas><FONT color=#a31515 face=Consolas>"~/Overview.aspx"</FONT></FONT></FONT><FONT face=Consolas><FONT face=Consolas>);</P>
<P>}</P>
<P>&nbsp;</P>
<P>The generated html from Firebug is :</P>
<P>&nbsp;</P>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox containerNodeBox nodeHidden open" role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=true class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">div</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox containerNodeBox nodeHidden open" role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=true class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">table</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">id</SPAN>="<SPAN class="nodeValue editable ">ctl00_ctl00_loggedOnDropDown_importDropDown_FileGridView</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">class</SPAN>="<SPAN class="nodeValue editable ">FileGridViewClass</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">cellspacing</SPAN>="<SPAN class="nodeValue editable ">0</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">border</SPAN>="<SPAN class="nodeValue editable ">0</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">style</SPAN>="<SPAN class="nodeValue editable ">
border-&nbsp;&nbsp;&nbsp; color:Black;border-width:1px;border-style:Solid;border-collapse:collapse;</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox containerNodeBox nodeHidden open" role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=true class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">tbody</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox containerNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=false class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">tr</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">style</SPAN>="<SPAN class="nodeValue editable ">color:White;background-color:#F24B31;</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV></DIV>
<DIV class="nodeBox containerNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=false class="nodeLabelBox repTarget " role=treeitem>
<DIV class="nodeBox containerNodeBox nodeHidden open" role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=true class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">tr</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">style</SPAN>="<SPAN class="nodeValue editable ">background-color:#DDDDDD;</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onmouseout</SPAN>="<SPAN class="nodeValue editable ">this.style.backgroundColor='#EEEEEE'</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onmouseover</SPAN>="<SPAN class="nodeValue editable ">this.style.backgroundColor='#999999'</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onclick</SPAN>="<SPAN class="nodeValue editable ">javascript:__doPostBack('ctl00$ctl00$loggedOnDropDown$importDropDown$FileGridView','Select$0')</SPAN>"</SPAN>
<SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox textNodeBox nodeHidden " role=presentation><SPAN aria-expanded=true class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">td</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV>
<DIV class="nodeBox containerNodeBox nodeHidden open" role=presentation>
<DIV class="nodeChildBox " role=group>
<DIV class="nodeBox textNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN class="nodeLabelBox repTarget " role=treeitem><STRONG><FONT color=#0000ff>&lt;<SPAN class="nodeTag ">span</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">id</SPAN>="<SPAN class="nodeValue editable ">ctl00_ctl00_loggedOnDropDown_importDropDown_FileGridView_ctl02_importName</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN><SPAN class="nodeText editable "><SPAN class="  ">test 2</SPAN></SPAN>&lt;/<SPAN class="nodeTag ">span</SPAN>&gt;</FONT></STRONG></SPAN></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget ">&lt;/<SPAN class="nodeTag ">td</SPAN>&gt;</SPAN></DIV></DIV>
<DIV class="nodeBox textNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">td</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN><SPAN class="nodeText editable "><SPAN class="  ">23.09.2008</SPAN></SPAN>&lt;/<SPAN class="nodeTag ">td</SPAN>&gt;</SPAN></DIV></DIV>
<DIV class="nodeBox containerNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN aria-expanded=false class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">td</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">align</SPAN>="<SPAN class="nodeValue editable ">center</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV></DIV>
<DIV class="nodeBox textNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">td</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN><SPAN class="nodeText editable "><SPAN class="  ">12.09.2009</SPAN></SPAN>&lt;/<SPAN class="nodeTag ">td</SPAN>&gt;</SPAN></DIV></DIV>
<DIV class="nodeBox textNodeBox nodeHidden " role=presentation>
<DIV class="nodeLabel " role=presentation><SPAN class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">td</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">class</SPAN>="<SPAN class="nodeValue editable ">align-right</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN><SPAN class="nodeText editable "><SPAN class="  ">99</SPAN></SPAN>&lt;/<SPAN class="nodeTag ">td</SPAN>&gt;</SPAN></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget ">&lt;/<SPAN class="nodeTag ">tr</SPAN>&gt;</SPAN></DIV></DIV>
<DIV class="nodeBox containerNodeBox nodeHidden " role=presentation></SPAN><SPAN aria-expanded=false class="nodeLabelBox repTarget " role=treeitem>&lt;<SPAN class="nodeTag ">tr</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">style</SPAN>="<SPAN class="nodeValue editable ">background-color:#EEEEEE;</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onmouseout</SPAN>="<SPAN class="nodeValue editable ">this.style.backgroundColor='#DDDDDD'</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onmouseover</SPAN>="<SPAN class="nodeValue editable ">this.style.backgroundColor='#999999'</SPAN>"</SPAN><SPAN class="nodeAttr editGroup ">&nbsp;<SPAN class="nodeName editable ">onclick</SPAN>="<SPAN class="nodeValue editable ">
javascript:__doPostBack('ctl00$ctl00$loggedOnDropDown$importDropDown$FileGridView','Select$1')</SPAN>"</SPAN><SPAN class="nodeBracket editable insertBefore ">&gt;</SPAN></SPAN></DIV></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget ">&lt;/<SPAN class="nodeTag ">tbody</SPAN>&gt;</SPAN></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget ">&lt;/<SPAN class="nodeTag ">table</SPAN>&gt;</SPAN></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget ">&lt;/<SPAN class="nodeTag ">div</SPAN>&gt;</SPAN></DIV></DIV></DIV>
<DIV class="nodeCloseLabel " role=presentation><SPAN class="nodeCloseLabelBox repTarget "></SPAN></DIV>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>To test this, I click on the grid row to try and trigger the onclick event.</P>
<P>&nbsp;</P>
<P><FONT face=Tahoma>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;clickElement xpath="//span[contains(@id, '_importName') and contains(text(), 'test 2')]"/&gt; </FONT></P><FONT face=Tahoma></FONT></FONT></FONT></DIV>
<P><FONT face=Consolas><FONT face=Consolas><FONT face=Tahoma></FONT></FONT></FONT>&nbsp;</P>
<P><FONT face=Consolas><FONT face=Consolas><FONT face=Tahoma></FONT></FONT></FONT>&nbsp;</P>
<P><FONT face=Consolas><FONT face=Consolas><FONT face=Tahoma>I get no errors calling the clickelement, but the onclick event does not seem to be getting called.&nbsp; No re-direct is occurring to reload the Overview page.</FONT></FONT></FONT></P>
<P><FONT face=Consolas><FONT face=Consolas><FONT face=Tahoma></FONT></FONT></FONT>&nbsp;</P>
<P><FONT face=Consolas><FONT face=Consolas><FONT face=Tahoma>Does anyone have any ideas why this might be happening.</P>
<P><BR></P></FONT></FONT></FONT>
<P><FONT face=Consolas><FONT face=Consolas></FONT></FONT>&nbsp;</P></FONT></FONT>
<DIV><FONT face=Tahoma>Kind regards<BR>Sophie</FONT></DIV>
<DIV><FONT face=Tahoma><BR>&nbsp;</DIV></FONT>
<DIV><FONT face=Tahoma>Sophie De Malet Roquefort</FONT></DIV>
<DIV><FONT face=Tahoma>IT Department<BR>0131 555 1100</FONT></DIV>
<DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma>T: 0131 555 1100<BR>F: 0131 555 6300<BR>W: </FONT><A href="http://www.datadiscoveries.com"><FONT face=Tahoma>www.datadiscoveries.com</FONT></A></DIV>
<DIV><A href="http://www.datadiscoveries.com"><FONT face=Tahoma></FONT></A></DIV>
<DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><IMG alt="Data Discoveries Logo" src="http://www.datadiscoveries.com/assets/pages/DD_logo_small.gif"></FONT></DIV>
<DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV>
<P><FONT face=Tahoma>
<P>Want to know more about data management? <A href="http://www.datadiscoveries.com/forms/whitepaper/whitepaper_bank/">Download a whitepaper</A></P></FONT><BR><FONT face=Tahoma>
<P>Do you work in the non-profit sector? Come to our <A href="http://www.datadiscoveries.com/industries/charities/best_practice_marketing_forum/">free event.</A></P></FONT>
<P></P></DIV>
<DIV><FONT face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma>Please let me know if this e-mail address is not the best one to use. </FONT></DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma>This e-mail is intended for the named addressee only. Its contents are private and confidential and should not be read, copied or disclosed to or by any other person. If you have received this transmission in error, please notify the sender immediately by e-mail or telephone (0131 555 1100), delete the contents of this transmission and destroy any copies made. Copyright Data Discoveries Limited. All rights reserved. No part of this communication may be reproduced without the prior written permission of Data Discoveries Limited.</FONT></DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma>Opinions, conclusions and other information in this message that do not relate to the official business of Data Discoveries Limited shall be understood as neither given nor endorsed by it. Internet e-mails are not necessarily secure. Data Discoveries Limited does not accept responsibility for changes made to this message after it was sent or viruses transmitted through this e-mail or any attachment. You should carry out your own virus checking procedure before opening any attachment to this e-mail. The e-mail and IT systems of Data Discoveries Limited are subject to random monitoring and recording by or on behalf of Data Discoveries Limited. </FONT></DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma>Thank you.</FONT></DIV>
<DIV><FONT color=#808080 size=1 face=Tahoma></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT color=#808080 size=1>Data Discoveries Limited: Registered in Scotland with Registered Number SC157375. <BR>Registered Office: 16/1 Timber Bush Edinburgh EH6 6QH. VAT Registration Number: GB 663 8176 09.<BR>Member of the Direct Marketing Association.</FONT> </FONT></DIV>
<DIV><BR><FONT face=Tahoma>&nbsp;</FONT></DIV></FONT></BODY></HTML>