I have this strange error coming up in VS2008, where is says a variable in not declared in HTML view, when it clearly is declared in the codebehind:Can anyone help with why this might be happening? I've tried all sorts of things, even recreating the page from scratch, but this keeps coming up.
Javascript Initellisense keeps giving me errors in VS 2008 SP1. Whenever this happens, VS becomes unresponsive to the point where I can't get anything done. I would like to disable Javascript Intellisense temporarily to see if this is the issue. How do I do this?
I have a typed data set in the app_code folder. I created a new class (class1.cs) inside the app_code folder, and for some reason, when I type:
using SomeNameSpace1.someNameSpace1
it's as if the above namespace does not exist: "SomeNameSpace1" or "SomeNameSpace1.someNameSpace2" does not exist. If I create the class file outside of the app_code folder, then the namespace DOES exist. What am I missing?
By the way, the namespace i'm trying to use is the typed data set that was auto-generated.
I am using pdf4net to export PDF file. In C# I created complete logic to export data. A large part of it is legacy code so I know for sure that it works. But there is one little problem. Error in the end of code. Everything before that line is fine I check it several times. Bellow is the last line in code and bellow it is error that I receive after that line:
return pdfDoc.GetPDFAsByteArray(); at O2S.Components.PDF4NET.Graphics.PDFBrush..ctor(PDFBrush brush) at O2S.Components.PDF4NET.Graphics.Shapes.PDFHTMLTextBox.boolean(Stream[code]....
I have a JavaScript wrapper that I initialize on body load and set to a global variable.
Just after creating the object, I have full intellisense, but when referring to it later, from another function, the intellisense is lost. I presume this is because of dynamic typing:
var myWrapper; function onload() { myWrapper = new Wrapper(args); myWrapper. //intellisense here. } function whatever() { myWrapper. //intellisense lost. }
I get round this by pretending to create the object again before my code, and then deleting the line:
function whatever() { myWrapper = new Wrapper(); //pretend to create object again. myWrapper. //intellisense returns! }
Has the inference been improved in vs 2010, or is there any way to tell Javascript about the type of object I'm currently working on?
I've just downloaded SQL Server Management Studio 2008 after using SSMS 2005 for the past years, however the intellisense isn't working in the Query-Builder. I've checked, and Intellisense is enabled. Is there any other reason this could not be working?
When I edit in a asp file, the intellisense does not work for any ADODB objects with vs2008(sp1) in Windows 7.For example:Set conn = Server.CreateObject("ADODB.connection") .. And next line I keyin "conn". Then keyin ".", but it does not popup the intellisense menu for ADODB.connection.But, the native objects for asp, such as Request, Response, Session, Server.. etc., them popup the intellisense menu correctly.Or some other objects, such as "CDO.Message", them work fine !
Whenever I hove over any one of the menu items on my MasterPage, I get the following error: see attached image.I have no idea what is causing this and the filename on the tab appears to look as if it's a dynamically created page so I have NO idea how to debug it.
I am having a very odd issue for my website [URL]. I am seeing strange characters in the home page. visit the site [URL] to view the details The site works perfectly in local system The site is done asp 2.0 and sql server 2005. I have made the customer error mode to Off to view the issues. But the page is coming in odd characters.
I have a asp:button in template field of gridview, I set command name for this and in grid I mention on command event. On clicking the page it shows error message is :Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/>
I think my main problem is actually more to do with master pages that anything else.. Below is a description:
If you use master pages in your website and you have pages in different sub directories then the simplest way to add JQuery references is using <script src='<%# ResolveUrl ("jq.js")%> /> in the master page header??
This means that the .js files are correctly referenced in all pages that use the master. My main problem is that intellisense only seems to work for JQuery when the JQ Script is actually referenced in the header and not by using ResolveUrl('') <script src="/scripts/jq.js" />
I dont want to have to live without intellisense, Surely there is a way to get around this. What am I doing wrong.
I have an existing project with a silverlight3 app. First I created SALESservice.svc.This is working fine. Now I added another TARGETservice.svc to my project and rebuilded my entire project but when I am trying to add the service reference in to the silverlight app I get the following error:
There was an error downloading metadata from the address.verify that you have entered a valid address. I didn't write any code in ISALESservice.svc AND ITARGETservice.svc . I have written in SALESservice.svc.cs AND TARGETservice.svc.cs files.Is this causing error? But for SALESservice.svc it is working. I didn't add any code in web.config file.
I've got extremely strange behavior on one of my pages. I was able to get a work-around in place, but I'd like to get input on why this error is happening (and why my work-around actually works).
(Let me also say that this is in no way, shape, or form my code...so please don't bash me too hard)
When loading the page, we're getting
BC30456 'InitializeCulture' is not a member of...
I worked through the tips here and nothing worked:
BC30456 Fixes
I was able to get the page back up and working by changing
Recently I started a project and added a HTML file in it. I modified the HTML file and run it in Visual Studio to see the output. When I tried to validate the HTML file, I found some strange characters got appended. This is quite annoying, although I am not able to see those unexpected characters, I wonder what is the cause of the problem. I didn't adjust anything in control panel of the IIS server, I didn't modify the Web.config file. I tried to add another HTML file and put the same content into it, the same problem occured. Could someone tell me how should I troubleshoot the problem?
using vb.net/asp.net 2005 and sql server 2005. I'm querying the database and returning text which I am then adding to a string. I'm creating a crystal report with the text however this is not a crystal report question, its about the string data. what I"m noticing is that when I show the string on the pdf that there are some strange characters at the end of the string. I am both trimming the string and taking out null characters however the strange text shows up like this:
strangeText> SÙÇ TÙçy|Ü DÙÇ $ÛÇ </strangeText>
does anyone know what these characters are and how to get rid of them?
I am using silverlight / ASP .NET and C#. What if I want to do this from silverlight for instance,
// I have left out the quotes to show you literally what the characters // are that I want to use string password = vtakyoj#"5 string encodedPassword = HttpUtility.UrlEncode(encryptedPassword, Encoding.UTF8); // encoded password now = vtakyoj%23%225
URI uri = new URI("http://www.url.com/page.aspx@password=vtakyoj%23%225");
HttpPage.Window.Navigate(uri);
If I debug and look at the value of uri it shows up as this (we are still inside the silverlight app),
[URL]
So the %22 has become a quote for some reason.
If I then debug inside the page.aspx code (which of course is ASP .NET) the value of Request["password"] is actually this,
vtakyoj#"5
Which is the original value. How does that work? I would have thought that I would have to go,
I've inherited a web project from another company, and I'm having a weird issue with a phone number mask.
If the ClearMaskOnLostFocus is "true", I lose the mask in the edit field (this is a editing screen for an existing record). If set to false, the mask is present, but the leading digit is truncated, and will write back to the DB an incorrect number if submitted, with that leading "_".
True = 8885551212 False=(_88)-555-1212 The DB field a a varchar(20) -- don't ask me why. <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" learMaskOnLostFocus="true" MaskType="Number" Enabled="True" Mask="(999) 999-9999" TargetControlID="Phone_Number"> </asp:MaskedEditExtender>
I'm recently back at work after a long layoff period, and my ASP is a little rusty.
I am using the MaskedEditExtender and MaskedEditValidator, but have experienced some strange behaviour. (See code example below). When entering a date into the textbox this is what I see:
1. The mask
2. Entering the date and time e.g. "19-01-1980 10:11:12"
3. When removing focus from the textbox the result is: "19-01-1980 19:01:19"
The six first digits of the date is copied as the time? If entering a day of the month larger than 23 and any given month, year and time (eg. 25-10-1980 12:12:12) the validation fails as the six first digits are copied to the time resulting in a time 25:10:19 which obviously is not valid.
I have downloaded the AJAX toolkit sample code and experience the exact same behaviour. When running the AJAX Toolkit samples from[URL] works fine!
Additinal info: Culture is danish (DateTime format is dd-MM-yyyy hh:mm:ss). Tried changing my systems culture to en-US but same behaviour.
the javascript is working perfectly and changes the value of the textbox.the problem happens when i submit the form - what is extracteed by the model from the textbox is the string "on", and after the submit, it also changes the value of the textbox to "on".when i load the field with a value from the model, it goes ok, and does not change
So I have two pictures of the weirdness that is occuring.As you can see in the picture above, the scroll bar on the right hand side is being cut off a little bit by the screen, and even when you scroll to the right, you don't get the bar back, it remains cut off.
Here is the other scenario:
Here, you can see that when I scroll down in this grid, the scroll bar kind of fits into the bottom of the grid and doesn't even go all the way down. You need to manually click into the grid and hit the down arrow to get the rest of the way down.
Edit: Here is the code to generate the grid (Ext created through VB controls):
Dim VehicleOptionsGrid As New Akcelerant.Framework.WebControls.Grids.Grid With VehicleOptionsGrid .ID = "VehicleOptionsGrid"[code].....
I'm trying to show something like "contáctenos" in uppercase, but when I use the string.toUpper() method I have the strange result "CONTáCTENOS" instead of "CONTÁCTENOS". The page "culture" is set correctly to "es-ES" and the "uiculture" too.How can I obtain the correct result if it's possible, without using regex or replace.