Skip to main content
Participant
April 5, 2007
Question

I am using C#, but my file keeps being saved as VB

  • April 5, 2007
  • 1 reply
  • 204 views
I am using C# and Dreamweaver to work on my project. But one file keeps getting be saved as VB file. If I manually change to C#, I get compilation error right away. If I change back to VB, it is working. But I cannot used VB as all other files in the project are careated with C#. Please help!!!!! Thank you so much.
compilation error --
CS1525: Invalid expression term '>'
<Parameters>
<Parameter Name="@ContentID" Value='<%# IIf((Request.QueryString("ContentID") <> Nothing), Request.QueryString("ContentID"), "") %>' Type="Integer" />
</Parameters>

The dataset and the parameters are created with Dreamweaver. How could those be invalid?
Thanks a lot for your help.


This topic has been closed for replies.

1 reply

Inspiring
April 5, 2007
Did you start by creating a new ASP VBScript file? Make sure you start by creating a new ASP.NET C# file. Then when you save the file it should be correct.