NUnitAsp

WebFormTester.PostBack Method

Emulates ASP.NET's post-back script (often seen as a Javascript "__doPostBack" call). To simply submit the form, use Submit instead. If you don't have access to the JavaScript call, use PostBack instead. This method throws an exception if the postBackScript string isn't actually a post-back script (for example, if it's an empty string). Use OptionalPostBack if the string isn't expected to contain a post-back script all of the time.

Overload List

Emulates ASP.NET's post-back script (often seen as a Javascript "__doPostBack" call). To simply submit the form, use Submit instead. If you don't have access to the JavaScript call, use PostBack instead. This method throws an exception if the postBackScript string isn't actually a post-back script (for example, if it's an empty string). Use OptionalPostBack if the string isn't expected to contain a post-back script all of the time.

public void PostBack(string);

Emulates ASP.NET's post-back script. To simply submit the form, use Submit instead. If you have access to the JavaScript call string, use OptionalPostBack or the other form of PostBack.

public void PostBack(string,string);

See Also

WebFormTester Class | NUnit.Extensions.Asp Namespace