I have few questions regarding datalist control.
1) How do I retrieve the values that are present in
the datalist control. My aspx page actually reloads to
itself, and the datalist control has multiple records
that are retrieved from the database. These records are
mostly radio button controls and I am concatenating the
values in the form of a string and displaying them in the
datalist control.My web form is paginated and I need to
carry the datalist control items across pages.
2) When I am using onserverclick on HtmlAnchor
control,I cannot submit the page and there is a javascript
error raised (Object expected). I am using onclick
event to handle validation in javascript.
3)On the form tag, if I use 'runat=server' , the
javascript code does not work properly. I am
validating the user to choose atleast one radiobutton
or checkbox for each question in my web page.
4) I am working on a questionaire project. My task
here is to grab the question number, answer choosen
for each question and carry to the next page. In the
next page, again I need to do the same thing and carry
those values along with the previous ones .
How do I best accomplish this. I have just one web
form(the aspx page that is attached) and I need to
accomplish this in the same web form or in the
codebehind file.
4) Whenever I open my aspx page, I get a design error
saying
'The file could not be loaded into the Web Forms
designer. Please correct the following error and then
try loading it again:
The @ Page or @ Control directive contains a src =
attribute, which is not supported in Visual Studio.
Make sure all of the classes in the page are built or
referenced in the project.'
Why do I get this error. My web page works fine
though..
Thanks.