10 pts.
 How to create links dynamically and add into placeholder control
HyperLink[] h=new HyperLink[size]; for(int k = 0;k < size;k += 4) { h[k] = new HyperLink(); h[k].Text= a[k + 1].ToString(); h[k].NavigateUrl=a[k+2].ToString(); control.Controls.Add(h[k]); } i want to create hyperlinks dynamically in ASP.Net but i recieved null object exception when i try to add hyperlink object into placeholder "controls"

Software/Hardware used:
ASKED: June 27, 2008  5:03 AM
UPDATED: June 27, 2008  11:58 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _