Ask a Question related to ASP.NET General, Design and Development.
-
Hugo Flores #1
LinkButton
Hi,
I create a LinkButton in runtime, and I want to be able to
access a function when a user clicks on the generated link
in the page.
My problem is that I don't know how to asociate the
function to the link in runtime.
Any one knows this?
Hugo Flores Guest
-
LinkButton question
Hi, I have a LinkButton that I am programming in my code-behind file to go in the first column of my datagrid. The way I have it now, the button... -
Linkbutton does not look like a linkbutton
OK, I almost got my problem solved. Zen is almost there! Just that a LinkButton control inside a column in my datagrid doesn't show like a link... -
Adding CSS to LinkButton
Hi, Does anyone know how I can add a css to the following link button. I want to add it so that Update, Cancel and Edit have the css in the form... -
Problem with LinkButton and AddAttributesToRender
Hi, I'm trying to design a custom LinkButton. It inherits LinkButton as I need the implementation of the Click event (and I don't know how to... -
Format of LinkButton..?
How can I make my linkbuttons color always blue even if they are visited or not, and make them underline in hover mode free from browser settings.. -
Jos Branders #2
Re: LinkButton
Hugo Flores wrote:
AddHandler myLinkButton.Click, AddressOf myLinkButton_Click> Hi,
> I create a LinkButton in runtime, and I want to be able to
> access a function when a user clicks on the generated link
> in the page.
> My problem is that I don't know how to asociate the
> function to the link in runtime.
>
> Any one knows this?
--
Jos Branders
Jos Branders Guest
-
Jurjen de Groot #3
Re: LinkButton
After you create the object at runtime, use the AddHandler command.
AddHandler Button1.Click, AddressOf Button1_Click
Hope this helps,
Jurjen de Groot
G.I.T.S. Netherlands
"Hugo Flores" <hugo.flores@ge.com> wrote in message
news:011f01c3424c$b3b86620$a301280a@phx.gbl...> Hi,
> I create a LinkButton in runtime, and I want to be able to
> access a function when a user clicks on the generated link
> in the page.
> My problem is that I don't know how to asociate the
> function to the link in runtime.
>
> Any one knows this?
Jurjen de Groot Guest
-
Hugo Flores #4
LinkButton
Thenk you both for your answer
to>-----Original Message-----
>Hi,
>I create a LinkButton in runtime, and I want to be ablelink>access a function when a user clicks on the generated>in the page.
>My problem is that I don't know how to asociate the
>function to the link in runtime.
>
>Any one knows this?
>.
>Hugo Flores Guest
-
David Waz... #5
Re: LinkButton
As Jurjen pointed out, ADD HANDLER works,
OR - Create a page-level WITHEVENTS variable
in either case, be sure the dynamic control is created on all post-back
operations. If you don't, the event won't be trapped.
If you are referring to client-side (java script):
MyControl.Attributes.item("OnClick") = "return MyFunction();"
G.L.
"Hugo Flores" <hugo.flores@ge.com> wrote in message
news:011f01c3424c$b3b86620$a301280a@phx.gbl...> Hi,
> I create a LinkButton in runtime, and I want to be able to
> access a function when a user clicks on the generated link
> in the page.
> My problem is that I don't know how to asociate the
> function to the link in runtime.
>
> Any one knows this?
>
David Waz... Guest



Reply With Quote

