0
Answer

c# templating query asp.net

Ask a question
zeshu

zeshu

17y
1.7k
1
Hi guyz! I am sure this problem is going to be a real challange for some of you! :) My program has a series of templates for respective pages. Those templates simply have tables. field names are entered, the template parser will convert those field names to field values. thats is done and dealt with. I show those news string of html within a div.innerHTML property from the aspx page. Problem arises when i need to do an edit and update on one of the fields. I created an edit template which has html input control of type text. Limmitation: i cant use asp.net server controls on the template. Now wht ever i type in the textbox, i can get that value by using javascript through document.getelementbyID thingi, it works....wht i cant understand it is how do i get that VALUE from javascript into the c# code behind variable. Some ppl suggested using hidden variable but that doesnt work. The ONLY way out of this is if i use Javascript to throw the value in a cookie and use code behind to read the cookie. But unfortunatly that cant be done, not allowed to do that.... So any solution, anyidea, doesnt have to be the javascrip way as well, could be anything, i simply need to edit values from the template so there r no hardcoded elements in the aspx. All in the template. your reply will be greatly appreciated. Thanks for your time :) xeshu