PC Review


Reply
Thread Tools Rate Thread

ASP C# - Compiler Error Message: CS0030

 
 
=?Utf-8?B?V2F5RG93blVuZGVy?=
Guest
Posts: n/a
 
      13th Jun 2006
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');
}
------------------------------------

The page load of 'Calendar.aspx has been emptyed , there is no code in there.

Any help would be great


--
Life in the sun
 
Reply With Quote
 
 
 
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      13th Jun 2006
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.)

 
Reply With Quote
 
=?Utf-8?B?V2F5RG93blVuZGVy?=
Guest
Posts: n/a
 
      13th Jun 2006
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
--
Life in the sun


"Luke Zhang [MSFT]" wrote:

> 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.)
>
>

 
Reply With Quote
 
Luke Zhang [MSFT]
Guest
Posts: n/a
 
      14th Jun 2006
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.)

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with Compiler Error: CS0030 keithb Microsoft ASP .NET 1 27th Jun 2006 10:05 PM
Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to 'System.Web.UI.WebControls.Login' keithb Microsoft ASP .NET 2 31st May 2006 08:21 PM
Compiler Error Message: The compiler failed with error code -1073741819 Ram Microsoft ASP .NET 0 13th Sep 2005 10:52 AM
fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148) PufferFish Microsoft VC .NET 10 6th Aug 2004 10:33 PM
Compiler Error Message: The compiler failed with error code 128. Yan Microsoft ASP .NET 0 21st Jul 2003 11:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.