Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Collections in C# Pin
Christian Graus25-Jun-08 22:19
protectorChristian Graus25-Jun-08 22:19 
AnswerRe: Collections in C# Pin
Simon P Stevens25-Jun-08 22:36
Simon P Stevens25-Jun-08 22:36 
Questionwindows service Pin
arkiboys25-Jun-08 21:52
arkiboys25-Jun-08 21:52 
AnswerRe: windows service Pin
Simon P Stevens25-Jun-08 23:06
Simon P Stevens25-Jun-08 23:06 
GeneralRe: windows service Pin
arkiboys26-Jun-08 0:12
arkiboys26-Jun-08 0:12 
GeneralRe: windows service Pin
Simon P Stevens26-Jun-08 0:41
Simon P Stevens26-Jun-08 0:41 
GeneralRe: windows service Pin
arkiboys26-Jun-08 1:46
arkiboys26-Jun-08 1:46 
QuestionWebbrowser Control Pin
rotsey25-Jun-08 21:49
rotsey25-Jun-08 21:49 
Do you have any experience using the webbrowser control in .NET?

I am having problems trying to handle click events in .NET
on HTML elements added programmatincally.

I am creating the HTML doc at runtime from data in a database
and I need to creat links that I can handle events for in .NET
so I can do things on the click event.

But I can create a element using Document.CreateElement("a")
and assign click event handler like this

anchor = _WebBrowser.Document.CreateElement("a");
anchor.InnerText = "Add Comment";
anchor.Id = "lnkAddComment";
anchor.SetAttribute("href", "#");
anchor.Click += new HtmlElementEventHandler(lnkAddComment_Click);

But in the event handler when you interrogate the sender object it gives
a generic "HtmlElement" as the source control and not the actual name
of the link that the click was initiated by.

Any ideas how I can handle events for programmatically created links??

rotsey
Questionconvert from Timespan to int ?? Pin
Mr.Kode25-Jun-08 21:40
Mr.Kode25-Jun-08 21:40 
AnswerRe: convert from Timespan to int ?? Pin
DaveyM6925-Jun-08 21:46
professionalDaveyM6925-Jun-08 21:46 
AnswerRe: convert from Timespan to int ?? Pin
Harvey Saayman25-Jun-08 21:47
Harvey Saayman25-Jun-08 21:47 
AnswerRe: convert from Timespan to int ?? Pin
Mbah Dhaim25-Jun-08 23:03
Mbah Dhaim25-Jun-08 23:03 
QuestionUsing stream without using memory Pin
kensai25-Jun-08 21:38
kensai25-Jun-08 21:38 
AnswerRe: Using stream without using memory Pin
Simon P Stevens25-Jun-08 22:13
Simon P Stevens25-Jun-08 22:13 
AnswerRe: Using stream without using memory Pin
Guffa26-Jun-08 0:24
Guffa26-Jun-08 0:24 
QuestionProblem with Delegates Pin
Nine_25-Jun-08 21:25
Nine_25-Jun-08 21:25 
AnswerRe: Problem with Delegates Pin
DaveyM6925-Jun-08 22:00
professionalDaveyM6925-Jun-08 22:00 
AnswerRe: Problem with Delegates Pin
Kjetil Svendsen26-Jun-08 1:48
Kjetil Svendsen26-Jun-08 1:48 
Questionuser authentication using c#.net (for a web base system) Pin
sacr8325-Jun-08 21:24
sacr8325-Jun-08 21:24 
AnswerRe: user authentication using c#.net (for a web base system) Pin
leppie25-Jun-08 21:52
leppie25-Jun-08 21:52 
Questionuser authentication using c#.net (for a web base system) Pin
sacr8325-Jun-08 21:23
sacr8325-Jun-08 21:23 
AnswerRe: user authentication using c#.net (for a web base system) Pin
subai25-Jun-08 21:51
subai25-Jun-08 21:51 
QuestionExcel Issue Pin
C#Coudou25-Jun-08 21:08
C#Coudou25-Jun-08 21:08 
AnswerRe: Excel Issue Pin
Ashfield25-Jun-08 21:18
Ashfield25-Jun-08 21:18 
GeneralRe: Excel Issue Pin
C#Coudou25-Jun-08 21:34
C#Coudou25-Jun-08 21:34 

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.