I was using VWD 2008 Express, then uninstalled it and reinstalled it. Now I am using VWD 2010 Express. Pretty much everything seems to work, except one single AJAX control. Did this change between 2008 and 2010? I'm not even sure if I have AJAX installed, actually. I'm thinking that I need to download and install AJAX, perhaps. The control is in my project (from 2008). I'm trying to copy the control, which didn't change, to my site, and having a heck of a time with it.
Does anyone know what could be preventing this AJAX control from being copied to my site? I already have a control in the site just updating all files since I upgraded to VWD 2010.
I have several web sites, all of which use the same JavaScript library. How can I "reference" this library from each of my web sites? If I just import the library into my web site in Visual Studio, I get in trouble as soon as the library changes, because I then have to update it in all web sites manually. It would be much easier to place the library in an external folder and just reference it from my web sites. How can I do this with Visual Studio?
the new VS 2010 features mentions "the new <%: %> encoding syntax". What does it do? Searching for these tags with Google doesn't seem to be possible...
I have built a simple custom ASP.NET control that expects it's body content to be javascript. Is there a way to tell Visual Studio that the content should be javascript, and therefore provide syntax highlighting / intellisense goodness?In case it helps, here's the framework of the control I'm working with.
namespace MyNamespace { public class MyControl : Control
We've currently migrated our Classic ASP web to ASP.NET. Our greatest hope lies in using the Visual Studio for debugging. But this hope was destroyed devastatingly.There are lot of issues we encountered:No syntax highlightingNo breakpoints (message: "This is not a valid location for a breakpoint.")No Intellisense We cannot find the reasons. But we think VS can't resolve our include links correctly. (In our case we remove all inludes and the page was highlighted again.)That's why we have a lot of questions:Can VS2008 handle includes (<!-- #include file="myinclude.inc" -->) at all?Are there any constraints we need to know? Maximal lines to include? Including<% .. %> or <script language="vb" runat="server"> .. </script>? What settings have to be made?
Can any one let me know "How to load the dynamcially added HTML Controls(Controls added using javascript) during the postbacks without loosing their values?
I have a custom attribute that I use in various elements in my ASP.NET HTML markup. Obviously it violates the DTD, and I get a validation error from Visual Studio. I hate ignoring errors in the error output window. Is there a way to suppress this error message? For example:
<label id="MyId" cid="MyCID" runat="server" />
cid is a custom attribute I use for various purposes, and it produces a validation error:
Validation (XHTML 1.0 Transitional): Attribute 'cid' is not a valid attribute of element label
I get an HttpException (details below) after installing Visual Studio 2010 Pro RTM in an application developed using Visual Studio 2010 RC. The platform used was ASP.NET MVC2 RTW (already under VS10 RC).
I first uninstalled all RC software and even ASP.NET MVC 2, and then did a "clean" install of VS10 RTM. The ASP.NET MVC 2 version now installed on my dev machine is 2.0.50217.0.
Exception Message: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.
InnerException Message: <FilePath>ViewsLanguageRenderLanguageNavigation.ascx(6): error BC30451: 'Model' is not declared. It may be inaccessible due to its protection level.
The error occurs on this "Html.RenderAction":
[Code]....
The "LanguageController" just calls into another service function as below:
[Code]....
Does anybody have an idea what is causing the problem?
Edit:
By the way, I might also share the actual view (partial view) that would show the languages to select from:
I have a website which created first by Visual Studio 2005, then I convert in to Visual Studio 2008 and currently using Visual Studio 2008. After Visual Studio 2010 Service Pack 1, HTML 5 and CSS 3 seem to be available. I want to convert my website to a VS 2010 website which uses HTML5.
How can this be done?
Is it possible to convert it to an ASP.NET Web Application while I'm porting it from VS2008 to Visual Studio 2010 ?
I know how to convert a website to web application in Visual Studio 2008 but I haven't used Visual Studio 2010 and have no idea about the differences.
are their any good way to use MVC project in expression web 4. are their any shortcut key avilable or way to make that i can reformat the html by pressing shortcut key.are their any way to reformat only selected text and how i can reformat the text of current page using shortcut key
An example: I have a fairly simple "contact us" kind of HTML form. No controls, just straight HTML, total size of aspx file is 570 lines. There is a Country drop-down list, with roughly 240 lines of "<option value="..">..</option>, one for each country.
Say I need to change the indent of those option lines. I select all ~240 of them, hit TAB and.... wait.
and wait...
and wait...
Finally, VS recovers from whatever trauma I've inflicted upon it, having successfully indented the lines. We actually have other coders getting up with an audible sigh, and going to make coffee in frustration while this sort of thing happens. Just from changing the indent of a bunch of HTML. It also happens when doing a find & replace on that same selection of 240 option lines... huge pause!
Would something be wrong with our setup? Some options (HTML intellisense-related perhaps) which we can adjust so VS doesn't go catatonic when we simply want to change indent? I've resorted to pasting stuff into TextPad, doing the indenting/replacing/whatever, then pasting it back into VS. That can't be an industry standard practice, I can only assume something is off with our installs.
VS's reaction reminds me of Kylie from Fantastic Mr Fox. Select some HTML, hit TAB and...
I am using Visual Studio 2010 for an MVC website project. I have an big problem and dont know hot to solve it. When i am looking to the output of html in firebug indents in my aspx and ascx files are outputed as space in same places. I think its about line ending of files but i am not sure how to fix them. I am adding some pictures about problem.
When i am adding a breakpoint it also add red background to spaces (this is problem) I try to delete spaces after hit ctrl+k d same problem happen. If i delete all indents make page 1 line without spaces output is fine but it not a solution.
I highlight an image in a HTML document and try to set its properties in the design by right clicking and looking up properties, I see only HTML or Document (no image). In the source view there is no link to image files folder. I guess this will be improved in the final version.
I'm using VWD 2010 Express and have found that when I change a property like AutoPostBack from within the property window the corresponding tag (<asp:TextBox...>) was not updated with the property change to the tag.
Is there a setting that I can change in the VWD properties that will enable changes through the property window for a control to automatically update the HTML tag for that control?
I'm using VS 2008 and can't seem to get intellisense to reconise Public variables declared in my codebehind.I start a new ASP.NET Web Application project, named something other than "WebApplication1". In my default.aspx.vb codebehind, I declare, say, "Public MyValue As Integer = 10", at the class level of course.Then, in my default.aspx page, within the body tag, I type "<%= myvalue %>"No mater what I try, it refuses to recognise "myvalue" as a valid variable name, however the code DOES compile and runs perfectly. Everything else seems to work fine.