Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 24th, 2006, 12:22 AM
sanjanah_verma sanjanah_verma is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 190 sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level)sanjanah_verma User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 7 h 18 m 53 sec
Reputation Power: 7
Error while using:WebBrowser1.Document.Forms(0).submit

Hi,

I am using a Webbrowser to open a Internet Site. And login to it by sending the values from the VB code. I submit the form for the same using,
WebBrowser1.Document.Forms(0).submit

There are multiple pages that have to be navigated and various forms to be submitted.

When I use the above in one url, the form gets submitted and the next page is redirected. And from the new redirected page if I am trying to submit the form I get the Error:" Object Variable or with block variable not set".

Can anybody let me know where I am going wrong.....

Regards,
Sanjanah

Reply With Quote
  #2  
Old January 22nd, 2007, 12:03 AM
chemsaravanan chemsaravanan is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 chemsaravanan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 40 sec
Reputation Power: 0
Thumbs up Alternative method to Webbrowser1.document.form(0).submit

it is very easy to activate the submit button on the form in html document through visual basic form.
to avoid error from 'webbrowser1.document.form(0).submit', first you know the name of button and form of the html through the source code. after do the following:
for example, the html form name is 'form1' and the submit button name is 'submit' and the webbrowser control (VB) name is 'webbrowser' then,

webbrowser.document.form1.submit.click
with regards,
S.Saravanan
M.Sc. Student in Chemistry
Muthayammal College of Arts & Science
Rasipuram, Namakkal - 637 408, India

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Error while using:WebBrowser1.Document.Forms(0).submit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT