Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have copied an article to customize calender in asp.net from Customizing the ASP.NET Calendar Control[^]
this was a web application so there was a designer.cs page in it but mine is website so how to add
designer.cs page in it
Posted
Comments
Vishal Pand3y 9-May-13 1:59am    
there is a difference in a website and web application.
the project in which i am working is a website so how to add designer.cs in it
vijay__p 9-May-13 2:00am    
Dont copy and paste whole page, instead just copy code from it and paste in your page.
Vishal Pand3y 9-May-13 2:00am    
while debugging its show error could not load type ContontrolsExersise.CalControl1
Vishal Pand3y 9-May-13 2:02am    
i have done the same but what about designer.cs page ?

You can make use of the JQueries availble at the below link

9 Useful jQuery Calendar And Date Picker Plugins
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-May-13 2:11am    
Hm. Nice one, a 5.
—SA
Thanks7872 9-May-13 2:12am    
Thanks Sergey.
Be little smart and check, The article source code is in a Web Application[^] and the thing which you are creating is Website[^].
Check : MSDN : Web Application Projects versus Web Site Projects in Visual Studio[^].

I would suggest you, "Not to copy". Just try to understand that how it works. After understanding it properly, implement it in your project.

Hope it's clear to you.
--Amit
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-May-13 2:14am    
Sage advice, my 5. I hope OP can appreciate it (but I doubt it :-( )
(This is not an answer because original post is not a question. Strictly speaking, we should not answer to such posts...)
—SA
_Amy 9-May-13 2:23am    
While answering to the question I was laughing at myself. I was not about to answer this question. But given. :-(. Thanks for your guidance SA!
Sergey Alexandrovich Kryukov 9-May-13 2:25am    
:-)
Vishal Pand3y 9-May-13 3:43am    
My question was very simple can I add designer.cs file in a website and how
because when em trying to do that i shows "To Add component to your class drag them to toolbox and use property window to set their property .... "
Vishal Pand3y 9-May-13 3:48am    
and without adding a designer.cs page its shows a error in javascript console
Uncaught TypeError: Cannot read property 'document' of null PopupCalendar.aspx:10
SetDate PopupCalendar.aspx:10
(anonymous function)
in code
<script type="text/javascript" language="javascript">
function SetDate(dateValue) {
ctl = window.location.search.substr(1).substring(4);
thisForm = window.opener.document.forms[0].elements[ctl].value = dateValue;
self.close();
}

</script>

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