ASP C# - Compiler Error Message: CS0030

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello ,
When I run my application in Visual Studion everthing works ok.
But when I publish to our web server i get the error

Compiler Error Message: CS0030

I am trying to open a popUP window with the following code

<a href="javascript:OpenCalendar('<%= txtBedpAdmissionDate.ClientID %>',
true)">
----------------------------------------------------------
function OpenCalendar(idname, postBack)
{

popUp = window.open('Calendar.aspx','Calendar',
'width=235,height=278,left=200,top=250');
}
 
Hello,

If you open the "calendar.aspx" directly in browser, will you also get the
error? And, if you use the same code to show another page, like:

popUp = window.open('SomePage.htm','Calendar',
'width=235,height=278,left=200,top=250');

What will be the result?

Besides error code "CS0030", is there any other error message like "cannot
convert type....."?

Thanks,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Luke,
Thanks for the reply.
I Think I Found the problem.
It was the name of the ASPX file "Calendar"
Changed the name to MyCalendar and it worked ok.
I think .net was trying to convert the page into the Calendar Control !!!
this caused the type mismatch error
 
Thank you for the sharing. This hint may help someone who encounter similar
issues.

Thanks,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top