Log out help in vb.net
Log out help in vb.net
Log out help in vb.net
Log out help in vb.net
Log out help in vb.net
Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net
Log out help in vb.net Log out help in vb.net
Log out help in vb.net
Go Back  Xtreme Visual Basic Talk > > > Log out help in vb.net


Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2013, 03:23 AM
Bagavati Bagavati is offline
Newcomer
 
Join Date: Sep 2013
Posts: 1
Default Log out help in vb.net


Hi all,

i am getting stuck in my application..i have included web browser component in my website for Facebook page..and i have passed the username and password through two text boxes and button to enter into it automatically..it enters but i dunno how to log out from it automatically..can anyone solve my problem...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles fb_button.Click
Dim fb_button As String = Nothing
For Each element As HtmlElement In WebBrowser1.Document.All
If InStr(element.Id, "u_0_b") Then
fb_button = element.Id
End If
Next
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById(fb_button).InvokeMember("click")

End Sub

here is a code which i have used to enter into the webpage through button...what my question is..if i have to include a session?if it is done whether it will automatically log out??please provide me a code for it..


http://www.c-sharpcorner.com/Forums/...ut-option.aspx
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Log out help in vb.net
Log out help in vb.net
Log out help in vb.net Log out help in vb.net
Log out help in vb.net
Log out help in vb.net
Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net Log out help in vb.net
Log out help in vb.net
Log out help in vb.net
 
Log out help in vb.net
Log out help in vb.net
 
-->