Web Automation - running Java Script

Hi
I am automating some daily tasks that I perform on the web.  All is well except that I need to run this one line of java code.

(javascript:__doPostBack('_ctl0$contentPlaceHolder$dgDocumentsByTransaction$_ctl19$nextButton',"')

I paste the code above in the address bar in IE, and the Java code runs perfectly. How do I execute this java code in vb.net 2008.

I was thinking something like:
Me.WebBrowser1.Navigate("javascript:__doPostBack('_ctl0$contentPlaceHolder$dgDocumentsByTransaction$_ctl19$nextButton',""')")

but WebBrowser1.Navigate is not the right method to fire this event.

Thanks!
pandkyonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pandkyonAuthor Commented:
update:  I did try this -

WebBrowser1.Document.InvokeScript("javascript:__doPostBack('_ctl0$contentPlaceHolder$dgDocumentsByTransaction$_ctl19$nextButton','')")

But it didn't do anything - no errors, nor did the the webpage update with new info.      

Again, this is odd, but when I paste this code in the IE address bar, the java code executes:
(javascript:__doPostBack('_ctl0$contentPlaceHolder$dgDocumentsByTransaction$_ctl19$nextButton',"')
0
pandkyonAuthor Commented:
got it to work:
WebBrowser1.Navigate("javascript:__doPostBack('_ctl0$contentPlaceHolder$dgDocumentsByTransaction$_ctl19$nextButton','')")

it turned out to be a single quote ' double quote issue.  ','')")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gordon_vt02Commented:
Just an FYI in case you have more questions later.  Java and Javascript are two different languages.  You'll have better luck getting answers if you put Javascript questions into the Javascript zone.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.