Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have defined a dataview in my asp programm (customer_info.aspx.cs), and by clicking the asp button I connected to database and get some records and I can show the fields of the first record in my asp textBoxes.

I want to have an html button which, when I click it, shows the second record which is still stored in my dataview.
To do this I'm forced to use clientside event, because if I use asp button to do this when I click it My data view becomes empty.
I want to pass may dataview to the javascript function and get the fields of the other records from the dataview and put them in my asp textBoxes and if I click it again it shows me the fields of the third record.

I don't know how to write this javascript function and how to pass my dataview to this function.
Posted
Updated 7-Aug-11 21:20pm
v2
Comments
Dalek Dave 8-Aug-11 3:20am    
Edited for Grammar, Syntax, Spelling and Readability.

Following is an example for gridview cell values on client side. You can get your concept from the example.
How to access gridview cell values on client side

If i misunderstood, feel free to correct me and let me know your feedback.
 
Share this answer
 
thanks a lot but I can't open the page you linked.
Is there any way to work directly with data view and not using grid view ? because I did not use grid view in my program
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900