For the life of me, I can't figure out what the problem is with this:
tempData= from a in dx.SomeTable select a; string searchField="ItemName"; string searchString="BoxPkg"; object[] parameters=new object[]{searchField,searchString}; tempData = tempData.Where("@0 like @1", parameters);
I get this error " {"Expression of type 'Boolean' expected"} "
I'm having issues when trying to run my web app. I'm getting an expression expected error at runtime on the portion of my code that is designed to retain the screen position of multiple drag panels.
Code: var target = $this).attr("id");
should return the id of the uniquely named panel so it can be used later in code to identify the _DragPanelExtender.BehaviorID
I haven't been able to verify if the dragPanel's id name is being used, it just errors out here. In the following code, I am attempting to preserve the position of multiple dragPanel's after postback? Code: function pageLoad() {
//get element id name of button clicked var target = $(this).attr("id"); // call the savePanelPosition when the panel is moved $find(target).add_move(savePanelPosition); var elem = $get("<%=HiddenField1.ClientID%>");
i am trying to retrieve data from sql database but I get this error: < An expression of non-boolean type specified in a context where a condition is expected, near ')'. > whats this error meaning?
As that title says my aspx page shows a compile error on the @Page directive that says "ASP.NET runtime error: Cannot load file or Assembly 'Microsoft.SqlServer.BatchParser' or one of it's dependencies". The project compiles with our error and it runs with no problem. The only real problem that this causes it that the intellisense for anything other than simple HTML is broken so I can't type asp:Controlname and have intellisense show me a the list of items or properties in a control. I get a green squiggly line under all the asp tags saying "Unrecognized tag prefix or device filter 'asp'". This project doesn't directly use SQL SMO but it does reference a project that does. However, I removed that reference and the problem still doesn't go away. I have installed on my development machine the full SQL client and for both SQL 2005 and 2008 (including the SDK) from the Developer editions of both versions. This was not a problem on VS2005 and the project compiles without error in VS2010 too.
The error i get seems to be centered around jquery finding what it's in (window,document, etc.). Right now i'm just trying to implement the jQuery datepicker. the project has a master page, where i placed my script references.
When I access the page us a url (in debug mode) http://localhost/logon.aspx?v=1 the page loads correctly and the jquery button command loads correctly. But then I access the page using the new url route, I get this error.
I am receiving a Parser Error with all my pages in a particular folder:
Parser Error Message:
The file '/railroad/freightcars/covered_hopper/MasterFiles/Freightcars.master' does not exist. Line 1: <%@ Page Title="Freight Car Photos - CP Covered hoppers - CoveredHopperPhotos.com" Language="C#" MasterPageFile="~/MasterFiles/Freightcars.master" AutoEventWireup="true" CodeFile="cprail.aspx.cs" Inherits="railroad_freightcars_covered_hoppers_cprail" %>
It seems like the ~ is not resolving; none of my .aspx pages in this folder work. All my pages in several other folders work fine.
I had this problem with another folder when i first published pages to a folder named covered_hoppers. Since i couldn't figure out the problem, i renamed the folder to covered_hopper and re-published.. all worked fine for a couple of months until yesterday. Now i am having the same problem. No problems on my local copy; never had this error with any other folder in my site.
If I use the webforms view engine with MVC3, using an import directive on a strongly typed view causes a compile time error.e.g, given the fully qualified model class ImportBug.Models.TestModel,
What am I missing here?I get the error Declaration Expected @ myPostData=
[Code]....
Dim encoding As New ASCIIEncoding() Dim RateXML As String = "123" 'Format the Data Dim myPostData As Byte() myPostData = encoding.GetBytes(RateXML) ^^^^^^^
I have created an application using visual studio 2008 & ajax toolkit 3.5.I got error when i uploaded it on server . First error is display when page is load " master page is not displayed" when i remove inherits="" from directive, then second error is display as given beloServer Error in '/' Application.Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
When I run this page and click on the image I get an "Object Expected" error.However, if I place the test function into my Default.js external file it will function perfectly.
Using c#.net/asp.net 2005.I am trying to use vbscript if statement in the .aspx page of my page when I'm using c# for the code-behind file. I'm new to csharp and wondering are you allowed to use vbscript (not vb.net) in the .aspx page?
I'm using the CustomValidation Function to call my javascript but for some reason I'm not getting the * to indicate the error to the user. I keep getting a Function expected Error, so what is wrong with my javascript that's causing this error and why aren't I receiving the * notification?
Javascript:
<script type="text/javascript" language="javascript"> function checkAGITotal() { var a = document.getElementById('<%= NumberInHouseholdTxtbox.clientid %>').value; var b = document.getElementById('<%= AGITotalTxtbox.clientid %>').value; if (a == "1" && b <= "27247" || a == "2" && b <= "35630" || a == "3" && b <= "44014" || a == "4" && b <= "52397" || a == "5" && b <= "60781" || + a == "6" && b <= "69164" || a == "7" && b <= "70736" || a == "8" && b <= "74020" || a == "9" && b <= "81500" || a == "10" && b <= "88980" || + a == "11" && b <= "96460" || a == "12" && b <= "103940") return true; else return false; } </script> vb.net code: Total: $<asp:TextBox ID="AGITotalTxtbox" runat="server" Width="116px"></asp:TextBox> <asp:CustomValidator ID="AGITotalValidator" runat="server" ControlToValidate="AGITotalTxtbox" ErrorMessage="Your household income exceeds the maximum allowed." ClientValidationFunction="checkAGITotal()" SetFocusOnError="True">*</asp:CustomValidator>
I'm studying up for a Microsoft Certification exam, and some of the wording for the 'content' in the examn confused me. In the MS exam website, under Developing Web Form Pages, it says in regard to the content on the exam...
This objective may include but is not limited to: page directives such as ViewState, request validation, event validation, MasterPageFile; ClientIDMode;
I was under the impression that a page directive referred to the @Page keyword, and the associated values defined in the @Page section were attributes/properties. But the wording of the exam content almost implies that the attributes/properties of the @Page keyword are directives.
I tried to use your code for ScrollBackposition in Chrome but gives an error in this statement. Identifier expected. Does scrollY needs to be defined as a HTML tag.
var scrollY = parseInt('<%=Request.Form["scrollY"] %>');
I am working on an MVC site using NHaml for the view engine.
I have a page that needs to submit HTML code as a form value and am getting the System.Web.HttpRequestValidationException thrown at me.
I want to specify the <%@ Page validateRequest="false" %> so that this page will allow this data to be submitted but am unsure on how to do this with NHaml generating the pages.
The editor I was using was TinyMCE and I found that it has an option for encoding the output, that way it doesn't trigger the anti-html validation.
which shows the list of the contacts including edit delete and create option.
What I need to declare another model class which is FileRepository.cs for uploading files on the same page. In this case the page directive should be like:
I am getting the same error (as this post: http://forums.asp.net/p/1346731/4020966.aspx) as expected class,delegate,enum,interface or struct and also type or namespace definition or end of file expected.Below is the code:
Why is @MasterType even needed? Couldn't the compiler automatically take the same actions based solely on @Page masterPageFile? When would you not want to use both?