6 Months Free & No Setup Fees ASP.NET Hosting!
Skip Navigation Links
Home
Forum Home
Latest 50
Unanswered
Win Prizes
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName
   Home » C# Language » HOW CAN I DO THAT
       
Author Reply
Csharp Ninja
posted 52 posts
since Jan 16, 2012 
from

HOW CAN I DO THAT

  Posted on: 03 Feb 2012       
WHY I CAN NOT FIND GOOD INFORMATIONS ABOUT C# ON THE INTERNET. DAMN!!!

I want to :

1.
if webBrowser1 url = google.com then go to facebook.com

2.
if textBox1 = "google.com" then go to facebook.com

3.
if webBrowser page contains "blablabla" then go to google.com

how can I do these things?? what code should I write to do these.. help me please.

I want to tear up my pc and I want to curse Now. Shit..

And please suggest me a GREAT SOURCE/E-BOOK ETC. TO LEARN C# perfect.

Cheers
"Ninja"
Csharp Ninja
posted  52 posts
since  Jan 16, 2012 
from 

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 03 Feb 2012        4  
nobody wants to help me in this world
Dorababu M
posted  690 posts
since  May 19, 2009 
from 

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 04 Feb 2012        0  
What you are trying to achieve was not clear .. If your post was clear then anybody will help you  

Good information on C# you can search several in this community only or MSDN . 

First let us know what you are trying to do
Dorababu.

Mark as Answer if you feel my post is helpful to you
Vulpes
posted  5113 posts
since  Feb 28, 2011 
from 

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 04 Feb 2012        1  
Judging by the questions you've asked previously, here are my guesses for these three:

(1)

if (webBrowser1.Url.Host == "www.google.com")
{
  webBrowser1.Navigate("http://www.facebook.com");
}

(2) 

HtmlElement element = webBrowser1.Document.GetElementById("textBox1");
if (element != null && element.InnerText == "google.com")
{
  webBrowser1.Navigate("http://www.facebook.com");
}

(3)

foreach(HtmlElement element in webBrowser1.Document.All)
{
    if (element != null && element.InnerHtml.Contains("blablabla"))
    {
        webBrowser1.Navigate("http://www.google.com");
        break;
    }
Maha
posted  809 posts
since  Aug 13, 2006 
from 

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 04 Feb 2012        0  
There are 17872 guests in this forum according today (Feb4, 2012 at 10.13am) statistic. "Nobody wants to help me in this world" is a unbelievable statement.

-When coming up with a problem make life easy to others as far possible. Because your are making you problem as others problem.

Csharp Ninja
posted  52 posts
since  Jan 16, 2012 
from 

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 04 Feb 2012        0  
Thank you vulpes.. as usual, your answer is the best answer..
Sam Hobbs
posted  6447 posts
since  Sep 07, 2009 
from  Los Angeles, California, USA

 Re: HOW CAN I DO THAT!!!!!!!
  Posted on: 05 Feb 2012        0  
I am still not sure what you need to do.

I am not sure why I did not look at this before now. I hope you can understand that I often ignore threads with subject such as "help me", "C# question" or "HOW CAN I DO THAT!!!!!!!". If the subject indicates the question is about the WebBrowser control then I would definitely look at it. I know that it is impossible to write a perfect subject, but please try; just trying can make a big difference. It will absolutely make a difference in other forums where there are many more questions every day.

Also, the quality of the question influences the quality of th answer. If you take the time to describe the problem then you are more likely to get an answer. You want to make it clear to others that you have really tried to solve the problem; not by complaining about not getting answers, but by the information you provide about the problem. Invest some time in a description of the problem, instead of giving the impression that anoither perspn's investment will not be wasted.

I certainly understand the feeling that no one wants to help. If I were to tell you about my problems in life, you would not help; no one does. Fortunately at least I am breathing; Tuesday morning I fedlt liekl I was going to die, and I am not exagerating. It is a horrible feeling. But that is not the problem. The problem, as you know, is feelings. I can understand the feeling that no one cares.

I will help if I can. Please don't expect a big investment of time. It is my pleasure to guide people in the direction they need to go and then they are able to follow the path from there.
Thinking is a feeling; pleasant for some and unpleasant for others.
       
Top Articles
View all »
6 Months Free & No Setup Fees ASP.NET Hosting!
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!

 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 5.2011.3.12
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved