problem creating a custom control

L

Lloyd Dupont

I'm creating an 'owner drawn ASP.NET control' where all the HTML tags are
written in the Render() method.
In this control there would be 2 links: Edit & Comment.
I would like to use a <A HREF='...'>
But in the HREF tag I would like to write the special URL which will call:
RaisePostBackEvent(string eventArgument)

with an 'eventArgument' of my choosing.
However I have no idea what that should be!

Looking at what's generated by LinkButtton I guess it's something like:
"javascript:__doPostBack('{UniqueId}','myArgument')"

But I wonder if there was a framework method to create this URL instead of
hard coding it directly myself...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top