I am trying to replicate NullReferenceException
in textbox after clicking Add button.
Is there a way or a tool to use so that once I am in the page, I will change the textbox ID so it will throw a NullReferenceException
?
I have tried to use developertools to change the textbox id while I am on the page before clicking add button but it still recognizes the original textbox id so it doesn't throw the error.
I want to replicate the issue using the front-end only, without changing the code, in the functional tester's perspective. Appreciate your help thanks
<div id="divSalesContent" runat="server" style="overflow: scroll;
width: 1017px; height: 680px; padding: 2px">
<table border="0" cellpadding="0" cellspacing="0" width="500">
<td colspan="5" style="border-left: .5px; border-left-style: solid; border-right: 2px; border-right-style: solid; border-color:
<telerik:RadTextBox ID="OrderName"
runat="server"
Width="50px"
Skin="Simple"
Font-Bold="true"
Font-Names="Verdana"
Font-Size="11px"
ForeColor="#22222"
BackColor="#CFFDFF"
MaxLength="30">
</telerik:RadTextBox>
<asp:DropDownList ID="ddlTypes"
runat="server"
BackColor="#CCCDFF"
Font-Names="Verdana"
Font-Bold="true"
Font-Size="10px">
</asp:DropDownList>
</td> </table> </div>
<div id="divSubmitting" runat="server" style="padding-left: 3px; padding-top: 6px; width: 800px; text-align: justify">
<br /><br />
<asp:Button ID="btnAddNewOrder"
runat="server"
Text="Submit"
OnClick="btnAddNewOrder_click" />
<span style="padding-left: 189px">
</span>
</div>
Yes at any line of your use, do this
this would throw the exception.
http://msdn.microsoft.com/en-us/library/1ah5wsex.aspx