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

I am developing a comment system in jquery and asp.net. I creat divs at runtime now i want to get those dynamically created divs in asp.net so that i process them and save them in database.

plz help me.
Posted
Updated 2-Feb-12 6:13am
v2
Comments
ZurdoDev 2-Feb-12 12:10pm    
You'll likely want to use the jQuery.Ajax() call to save the values to the database instead of trying to get the postback page to recognize them.
Rajesh Anuhya 2-Feb-12 12:13pm    
Edited: "Treat my content as plain text, not as HTML" disabled
--RA

Hi,

I think you will get into problem trying to get HTML elements created dynamically on client, because they are not in view state and you will lose them when post-back is done...
I'll suggest that you save your data from client using ajax or to use and update panel and with partial post-back to control all on server-side.
 
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