Click here to Skip to main content
15,887,404 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Program Structure and File Type Advice Pin
Jacob Barton17-Apr-13 17:03
Jacob Barton17-Apr-13 17:03 
GeneralRe: C# Program Structure and File Type Advice Pin
Orjan Westin17-Apr-13 23:43
professionalOrjan Westin17-Apr-13 23:43 
GeneralRe: C# Program Structure and File Type Advice Pin
Jasmine250118-Apr-13 6:31
Jasmine250118-Apr-13 6:31 
GeneralRe: C# Program Structure and File Type Advice Pin
Gerry Schmitz18-Apr-13 11:15
mveGerry Schmitz18-Apr-13 11:15 
AnswerRe: C# Program Structure and File Type Advice Pin
GuyThiebaut18-Apr-13 0:27
professionalGuyThiebaut18-Apr-13 0:27 
AnswerRe: C# Program Structure and File Type Advice Pin
Clifford Nelson18-Apr-13 5:18
Clifford Nelson18-Apr-13 5:18 
AnswerRe: C# Program Structure and File Type Advice Pin
Jacob Barton19-Apr-13 2:57
Jacob Barton19-Apr-13 2:57 
QuestionThe SetAttribute does not set attribute Pin
Meysam Toluie16-Apr-13 20:22
Meysam Toluie16-Apr-13 20:22 
Hello Experts
Here it is my scenario:
My Windows Application loads a web page using WebBrowser; Then Searches for online users and sends them a same message.

My Problem begins when I want to pass string to the specified element in the webBrowser.
My C# Code is:
C#
//for each user the below code will execute
WebBrowser.Navigate(string.Format("facenama.com/{0}", "user_name");

// "message" parameter is the id of the testarea in the webpage that will keep the message body
HtmlElement element = WebBrowser.Document.GetElementById("message");

element.SetAttribute("value", this.Message.Text);

WebBrowser.Document.InvokeScript("postform_submit");

The Html code of the element that sends the message:
HTML
<a href="javascript:;" id="postbtn" onclick="postform_submit();">
    send
</a>

The above code does not send message to specified user.
What I am missing?

modified 17-Apr-13 4:32am.

AnswerRe: The SetAttribute does not set attribute Pin
Jasmine250117-Apr-13 5:45
Jasmine250117-Apr-13 5:45 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie18-Apr-13 1:30
Meysam Toluie18-Apr-13 1:30 
GeneralRe: The SetAttribute does not set attribute Pin
Jasmine250118-Apr-13 6:04
Jasmine250118-Apr-13 6:04 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie20-Apr-13 3:02
Meysam Toluie20-Apr-13 3:02 
GeneralRe: The SetAttribute does not set attribute Pin
Jasmine250122-Apr-13 5:24
Jasmine250122-Apr-13 5:24 
AnswerRe: The SetAttribute does not set attribute Pin
OriginalGriff17-Apr-13 8:41
mveOriginalGriff17-Apr-13 8:41 
GeneralRe: The SetAttribute does not set attribute Pin
Meysam Toluie17-Apr-13 19:35
Meysam Toluie17-Apr-13 19:35 
GeneralRe: The SetAttribute does not set attribute Pin
dusty_dex17-Apr-13 23:46
dusty_dex17-Apr-13 23:46 
QuestionWhich Constructor is Better? Pin
Jasmine250116-Apr-13 12:15
Jasmine250116-Apr-13 12:15 
AnswerRe: Which Constructor is Better? Pin
Matt T Heffron16-Apr-13 12:47
professionalMatt T Heffron16-Apr-13 12:47 
GeneralRe: Which Constructor is Better? Pin
Jasmine250116-Apr-13 14:34
Jasmine250116-Apr-13 14:34 
GeneralRe: Which Constructor is Better? Pin
PIEBALDconsult16-Apr-13 15:01
mvePIEBALDconsult16-Apr-13 15:01 
GeneralRe: Which Constructor is Better? Pin
Jasmine250117-Apr-13 5:36
Jasmine250117-Apr-13 5:36 
GeneralRe: Which Constructor is Better? Pin
Matt T Heffron17-Apr-13 9:53
professionalMatt T Heffron17-Apr-13 9:53 
GeneralRe: Which Constructor is Better? Pin
Jasmine250117-Apr-13 9:57
Jasmine250117-Apr-13 9:57 
GeneralRe: Which Constructor is Better? Pin
Matt T Heffron17-Apr-13 10:02
professionalMatt T Heffron17-Apr-13 10:02 
GeneralRe: Which Constructor is Better? Pin
Jasmine250117-Apr-13 10:04
Jasmine250117-Apr-13 10:04 

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.