Q:

Wait for ajax element to complete (.Net Web browser control)

How can i wait for page inner element to complete ?
Tried:

while (webBrowser.IsBusy)
while (webBrowser.ReadyState != WebBrowserReadyState.Complete)
creating delegate for webBrowser_DocumentCompleted
but they all for the full page / url and not inner content.

how can i wait for inner elements of the page to complete? 
(that elements did't have names / id's)

A:

In server-side code, you cannot make sure when the inner content will be ready or loaded. You have to use client-side scripts to decide on that. If you only want to wait for document fully loaded, you can use Jquery document ready function like;
$(document).ready(function() {
    // do something
});

