Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3600100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:27:08+00:00 2026-05-18T20:27:08+00:00

I want to make a desktop application that enters a value in textbox and

  • 0

I want to make a desktop application that enters a value in textbox and performs button actions for example design an application that enters value in google search box at google.com and performs action as when any one presses search button i wrote a code but it threw exception The remote server returned an error: (405) Method Not Allowed.

WebClient wc = new WebClient();
string uri = "http://google.com";

NameValueCollection nvc = new NameValueCollection();

nvc.Add("search", "afnan");            

byte[] response = wc.UploadValues(uri, nvc);
textBox1.Text=Encoding.ASCII.GetString(response);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:27:08+00:00Added an answer on May 18, 2026 at 8:27 pm

    UploadValues is trying to do a POST (by default, at least; some other verbs are allowed, but they essentially still treat it as a body payload). It sounds like you just want a GET query like http://www.google.com/search?q=afnan – so just url-encode "afnan". Note, however, that you should always observe the target site’s Terms and Conditions – in particular section 5:

    You specifically agree not to access (or attempt to access) any of the Services through any automated means (including use of scripts or web crawlers)

    If you do this, expect to get black-listed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a desktop application that enters a value in textbox and
I need to make a desktop application that stores data, I want this data
I want to make a desktop application that can read the SMS from the
I want to make Dynamic UI for a desktop application. I am planning to
We wish to make a desktop application that searches a locally packaged text database
Possible Duplicate: License for C# desktop application I want to make my program lock
I'm developing a desktop OpenGL application, and I want to make sure it'll be
I really want to create a stunning-looking GUI desktop application that looks like, for
My desktop app connects to a web application that's hosted on Google App engine.
I want to make a application that runs with no form interaction with user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.