ken_rgr
asked on
Assigning an Array to Repeater Control
In my project I am using a Repeater control.
The Repeater Control has a maximum of only 4 Rows.
And these values are hardcoded not coming from any database.
How to add these values to Repeater Control Dynamically.
I tried assigning array to Repeater.
Its neither giving any error nor returning any rows in the Repeater.
Any help will be highly appreciated.
The Repeater Control has a maximum of only 4 Rows.
And these values are hardcoded not coming from any database.
How to add these values to Repeater Control Dynamically.
I tried assigning array to Repeater.
Its neither giving any error nor returning any rows in the Repeater.
Any help will be highly appreciated.
string[] strArray = new string[] { "Index1", "Index2", "Index3" };
this.rptChartList.DataSource = strArray;
this.rptChartList.DataBind();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Amar 31282
the line 5 , 9 giving me an error
dr("index") = "index1";
For the above line I am getting the following error.
"dr is a Variable but used like a Method".
Could you tell me where exactly we are doing mistake.
Thanks
the line 5 , 9 giving me an error
dr("index") = "index1";
For the above line I am getting the following error.
"dr is a Variable but used like a Method".
Could you tell me where exactly we are doing mistake.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry it was my mistake
Please Correct the letter case problems
Open in new window