Click here to Skip to main content
15,886,728 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to retrive data from dataset Pin
Abhijit Jana19-Dec-07 3:59
professionalAbhijit Jana19-Dec-07 3:59 
GeneralConvert Visual Basic 6.0 Forms into ASP.net Web Page. Pin
Binod K19-Dec-07 1:03
Binod K19-Dec-07 1:03 
GeneralRe: Convert Visual Basic 6.0 Forms into ASP.net Web Page. Pin
Paddy Boyd19-Dec-07 1:22
Paddy Boyd19-Dec-07 1:22 
GeneralRe: Convert Visual Basic 6.0 Forms into ASP.net Web Page. Pin
Binod K19-Dec-07 1:29
Binod K19-Dec-07 1:29 
GeneralRe: Convert Visual Basic 6.0 Forms into ASP.net Web Page. Pin
Paddy Boyd19-Dec-07 1:41
Paddy Boyd19-Dec-07 1:41 
GeneralProblem with CascadingDropDown Pin
varshavmane19-Dec-07 0:58
varshavmane19-Dec-07 0:58 
GeneralDeatils view deleteItem Pin
MaruBindiya19-Dec-07 0:58
MaruBindiya19-Dec-07 0:58 
QuestionHow to use an array of HtmlGenericControl Pin
AumSingh19-Dec-07 0:54
professionalAumSingh19-Dec-07 0:54 
How do i use an array of HtmlGenericControl. This is how i have tried to use.



HtmlGenericControl objUl = new HtmlGenericControl("ul");
HtmlGenericControl objLi = new HtmlGenericControl[5]("li");

objUl.ID = "nav";
objLi[0].InnerHtml = "First element";
objLi[1].InnerHtml = "Second Element";
objUl.Controls.Add(objLi[0]);
objUl.Controls.Add(objLi[1]);
mainDiv.Controls.Add(objUl);

where mainDiv is a server
control. It is giving following error

Cannot apply indexing with [] to an expression of type 'System.Web.UI.HtmlControls.HtmlGenericControl'

Is it correct approach to build html body with an array of HtmlGenericControl? if yes then how do i use it . If no then whjat should be the approach....?please help

AnswerRe: How to use an array of HtmlGenericControl [modified] Pin
N a v a n e e t h19-Dec-07 1:03
N a v a n e e t h19-Dec-07 1:03 
GeneralRe: How to use an array of HtmlGenericControl Pin
J4amieC19-Dec-07 1:25
J4amieC19-Dec-07 1:25 
GeneralRe: How to use an array of HtmlGenericControl Pin
N a v a n e e t h19-Dec-07 1:30
N a v a n e e t h19-Dec-07 1:30 
Generalsimple javascript code [modified] Pin
PeriyasamyRamachandran19-Dec-07 0:53
PeriyasamyRamachandran19-Dec-07 0:53 
GeneralRe: simple javascript code Pin
N a v a n e e t h19-Dec-07 1:32
N a v a n e e t h19-Dec-07 1:32 
GeneralRe: simple javascript code Pin
PeriyasamyRamachandran19-Dec-07 1:41
PeriyasamyRamachandran19-Dec-07 1:41 
GeneralRe: simple javascript code Pin
N a v a n e e t h19-Dec-07 1:54
N a v a n e e t h19-Dec-07 1:54 
GeneralRe: simple javascript code Pin
Paddy Boyd19-Dec-07 1:46
Paddy Boyd19-Dec-07 1:46 
GeneralRe: simple javascript code Pin
PeriyasamyRamachandran19-Dec-07 1:53
PeriyasamyRamachandran19-Dec-07 1:53 
Generalxmlnodes in treeview Pin
VanithaVasu19-Dec-07 0:28
VanithaVasu19-Dec-07 0:28 
GeneralFind a Control in DataList Control Pin
kirthikirthi19-Dec-07 0:20
kirthikirthi19-Dec-07 0:20 
QuestionRegular Expression Pin
senthilsstil18-Dec-07 23:49
senthilsstil18-Dec-07 23:49 
GeneralRe: Regular Expression Pin
Usharva19-Dec-07 0:41
Usharva19-Dec-07 0:41 
GeneralFile Download Control... Pin
Sasmi18-Dec-07 23:13
Sasmi18-Dec-07 23:13 
GeneralRe: File Download Control... Pin
Christian Graus18-Dec-07 23:19
protectorChristian Graus18-Dec-07 23:19 
GeneralRe: File Download Control... Pin
soni uma18-Dec-07 23:21
soni uma18-Dec-07 23:21 
GeneralRe: File Download Control... Pin
N a v a n e e t h18-Dec-07 23:23
N a v a n e e t h18-Dec-07 23:23 

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.