Why Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) didn't find my control inAccordion?
-
-
Hi all, I have a hyperlink in a Accordion ajax control,now i use this code for finding it: Dim hpl As HyperLink = CType(acc.FindControl("hpl"), HyperLink) this Error comes: object reference not set to an object now how i can find my hyperlink :( ?
Hoda
Many things are missing in your question: 1. Are you using tag for hyperlink or use HyperLink control from toolbox. 2. If you are using control from toolbox, What is the ID of HyperLink Control.
be a part of the solution, rather then problem
-
Many things are missing in your question: 1. Are you using tag for hyperlink or use HyperLink control from toolbox. 2. If you are using control from toolbox, What is the ID of HyperLink Control.
be a part of the solution, rather then problem
-
thank you, 1. Are you using tag for hyperlink or use HyperLink control from toolbox. --->i used HyperLink control from toolbox. 2. If you are using control from toolbox, What is the ID of HyperLink Control. --->I changed its ID to hpl.
Hoda
if you are using hyperlink control, why do you need to find that control. You can access it like: Me.hpl.NavigateURL = "http://Yahoo.com"
be a part of the solution, rather then problem