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

Our company has project that it will be client side base application but our old project has so many server side control and ascx. Actually we want to convert our old application to new client side application. We decide to use jquery, jquery template and wcf service to feed UI. We created templates and we use them inside divs. It will be good and interactive. But we dont know how we convert all of ascx,server side control to js code or jquery etc. Could you please an advice for our issue? How would you do this conversion , if you were in this project?

Best Regards,

Unal
Posted

I am afraid, that what you want is not possible. Classic ASP.NET does not follow web concepts (ASP.NET MVC does). What You use in your new UI is really web. Ajax and control states are far-far away from eachother. Two different concepts. There is no automatic conversion possibility. You have to rewrite your presentation layer at least.
 
Share this answer
 
v2
Well, if i were you i will keep the ascx files and i will call them by Jquery using an ajax/default.aspx?{name of user control} " you can encrypt it and decrypt it

and i will use some code to render the user control on Page_init event
 
Share this answer
 
Hello again and thank your quick feedback,

we know that we will rewrite presentation layer as you said but we have so many server side control like textbox,label,button,grid and they have all own event like click,ondatabound. Actually my other question should be this. how may I do this event in javascript? =/ Could you please advice any way? Should we split some code and write it in service like button event controller,datagrid bound event controller etc?

Note : We use Client Side MVC Model in our project.

with kind regards,


Unal
 
Share this answer
 
Comments
Zoltán Zörgő 5-May-12 17:36pm    
Befor I go deeper, please answer one single question: why you are doing all this? What is your main goal, what do you except to be the gain of the rework?

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