Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
QuestionHELP on .NET Remoting Pin
jekkup11-Mar-10 6:03
jekkup11-Mar-10 6:03 
AnswerRe: HELP on .NET Remoting Pin
Abhinav S1-Mar-10 6:23
Abhinav S1-Mar-10 6:23 
QuestionClick a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:36
Serenity11-Mar-10 5:36 
AnswerRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 5:41
Saksida Bojan1-Mar-10 5:41 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 5:55
Serenity11-Mar-10 5:55 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 6:04
Saksida Bojan1-Mar-10 6:04 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Serenity11-Mar-10 6:27
Serenity11-Mar-10 6:27 
GeneralRe: Click a button from a external/downloaded (unknown) html Pin
Saksida Bojan1-Mar-10 7:06
Saksida Bojan1-Mar-10 7:06 
There is no simple code to just to call click event, because it doesn't exsist. When HTML parse, uses HTML information to handle that button. Here is examaple:

This is snipset of HTML

<form method="get" action="/info/search.aspx" name="Search" style="margin:0;"> 
<b>Search  </b> 
<input class="small-text" name="artkw" style="width:200px;" /> 
<select class="small-text offblack" style="font-weight:bold;" name="sbo"> 
<option value="kw">Articles / Quick Answers</option> 
<option value="fm" selected="true">Messages</option> 
<option value="s">Jobs</option> 
<option value="ctlk">Product Catalog</option> 
 
</select> 
<input type="submit" class="button small-text" value=" Go! " />  
</form>


Important lines:
1st. Line: Form tag has 2 atributes you need to take into an accound. that is Method and Action.
3rd. Line: Input tag is textbox, that has a name as 'artkw'
4th. Line: Is a combo box with a name 'sbo'. All items inside are used with option tag and inportant atribute is a value.
10th. It is an Input with atribute type="submit", witch is a button with a text " GO! " as specified in value atribute.

With this info you can easly request new page. You do not need to type any info or even show the form.

this is how it is processed
<form method="get" action="/info/search.aspx" name="Search" style="margin:0;"> 
// The Url is: "www.codeproject.com/info/search.aspx"
<b>Search  </b> 
<input class="small-text" name="artkw" style="width:200px;" /> 
// The Url is: "www.codeproject.com/info/search.aspx?artkw=text+to+search"
<select class="small-text offblack" style="font-weight:bold;" name="sbo"> 
<option value="kw">Articles / Quick Answers</option> 
<option value="fm" selected="true">Messages</option> 
<option value="s">Jobs</option> 
<option value="ctlk">Product Catalog</option> 

</select> 
// The Url is: "www.codeproject.com/info/search.aspx?artkw=text+to+search&?sbo=kw"
<input type="submit" class="button small-text" value=" Go! " />  
// After this line you can easily request new html page.
</form>



The final url is "www.codeproject.com/info/search.aspx?artkw=text+to+search&?sbo=kw". And then it the server prepares next page based on variables sent.

ps: If you download page to your computer, next page is still depended on server, unless you are attempting to create a local server, where the requested page should be generated
QuestionPrevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:07
Rob Philpott1-Mar-10 5:07 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:19
sitebuilderLuc Pattyn1-Mar-10 5:19 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Rob Philpott1-Mar-10 5:35
Rob Philpott1-Mar-10 5:35 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Luc Pattyn1-Mar-10 5:39
sitebuilderLuc Pattyn1-Mar-10 5:39 
GeneralRe: Prevent Visual Studio opening the designer on custom controls Pin
Som Shekhar1-Mar-10 5:47
Som Shekhar1-Mar-10 5:47 
AnswerRe: Prevent Visual Studio opening the designer on custom controls Pin
PIEBALDconsult1-Mar-10 8:06
mvePIEBALDconsult1-Mar-10 8:06 
QuestionProblem getting propery values with ProperyInfo Pin
Mark F.1-Mar-10 4:12
Mark F.1-Mar-10 4:12 
AnswerRe: Problem getting propery values with ProperyInfo Pin
Keith Barrow1-Mar-10 4:43
professionalKeith Barrow1-Mar-10 4:43 
GeneralRe: Problem getting propery values with ProperyInfo [modified] Pin
Mark F.1-Mar-10 5:37
Mark F.1-Mar-10 5:37 
QuestionResource Manager with GUI for each application Pin
Autodidax861-Mar-10 4:07
Autodidax861-Mar-10 4:07 
QuestionNeed help getting started with a broadcasting tool Pin
Ted On The Net1-Mar-10 3:38
Ted On The Net1-Mar-10 3:38 
AnswerMessage Closed Pin
1-Mar-10 3:46
stancrm1-Mar-10 3:46 
GeneralRe: Need help getting started with a broadcasting tool Pin
Ted On The Net1-Mar-10 4:54
Ted On The Net1-Mar-10 4:54 
QuestionLegacy Windows App - Screen Scraping Pin
DwR1-Mar-10 3:15
DwR1-Mar-10 3:15 
AnswerMessage Closed Pin
1-Mar-10 3:29
stancrm1-Mar-10 3:29 
GeneralRe: Legacy Windows App - Screen Scraping Pin
DwR1-Mar-10 11:57
DwR1-Mar-10 11:57 
QuestionInstall build fail Pin
hairy_hats28-Feb-10 23:15
hairy_hats28-Feb-10 23:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.