Hi All,

I am new to the VSTS 2010. I'm trying correlation from webtest by using the Regular expressions.Following is the code:

void request1_PostRequest(object sender, PostRequestEventArgs e)
x1 = e.Response.BodyString;
x1 = Regex.Split(x1, "<input type=\"hidden\" name=\"__VIEWSTATE\" id=\"__VIEWSTATE\" value=\"")[1];
x1 = Regex.Split(x1, "\" />")[0];
reportID = x1;
This gives the index out of range exception. Please give me suggestion to this.