Visual Studio - Syntax Highlighting For Custom Control?
Oct 26, 2010
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
[code]...
View 1 Replies
Similar Messages:
Jan 15, 2011
I have to manually edit a bunch of HTML and ASP.NET pages that contain primarily content in <p> tags. In VS2010, when I open such a page in the designer it insists on highilighting all the paragraphs; surrounding them with dotted blue rectangles and shading all other paragraphs.
I find this annoying, can I turn these behaviours off?
EDIT
I managed to change the colours by going to Tools, Options, HTML Designer, View and editing the colours for "Layout UI activated border" and "Style application overlay".
View 1 Replies
Jan 24, 2010
I am using the Visual Studio Web Developer 2008 for programming in VB.NET and i have some problems:
1. Sometimes it stops highlighting the text.
2. Is there an option to refresh the Intellisense of the page?
3. When i am including files to my page, its say variable undefined.
Global information:
* I am not using the *.cs files.
* I am not using any .net button (example: asp:input...)
* I am using the include file. (example: include virtual=...)
View 3 Replies
Aug 3, 2010
I am using VWD 2010 Express, usually with several site pages open in tabs. For some reason, when I move from one tab to another, the newly active page is not highlighted in the Solution Explorer pane. Is there some setting that is causing this? I often have two similar pages open, referring to the code on one as I work on the other, and not having the Solution Explorere correctly highlighting the active page make it really easy to be working on the wrong page.
View 2 Replies
Apr 25, 2010
I have a simple HttpHandler that generates a dynamic image based on query string parameters and a custom web control that renders an image tag pointing to the handler as its 'src' attribute. All works fine when run in the web server, but at design timethe control displays as the "missing image" icon (red x in a box). The handler is registered in the web.config with a ".ashx" extension. The RenderContents method in the control looks like this:
output.AddAttribute("src", ResolveUrl(string.Format("~/Sparklines.SparkHandler.ashx?stype=pm&w={0}&h={1}&sv={2}&ev={3}&cv={4}&sc={5}&ec={6}&mc={7}&gs={8}",
Width.IsEmpty ? 100 : Width.Value,
Height.IsEmpty ? 15 : Height.Value,
caleStart, ScaleEnd, CurrentValue,
ColorUtils.ColorString(StartColor, true),
[code]...
View 5 Replies
Mar 5, 2010
Why custom Gridview control not render html properlies under <Columns> properly in Visual Studio 2005?
For example:
[code]....
View 1 Replies
Jan 22, 2011
i'm not found web custom control in visual studio 2010 how add web custom control in visual studio 2o1o?
View 3 Replies
Apr 27, 2010
I have an external *.js file that contains Javascript. How do I get teh same intellisense and color highlighting as I do in an ASPX page?
Here's my options for the js extension (set to 'Script Editor')
And here's what it looks like in an ASPX page (How I would like it to look.)
BTW, I did a full reset my Settings, setting them to VB and no luck.
Update to original post:
Cuban suggested I add a reference to the file "jquery-1.3.2.min.js." When I searched my PC for that file using the fastest bestest Search app ever written, it found it it .003 nano seconds in the following locations:
Basically, the file magically appeared in a couple of my throw away VS2010 test web apps and in a VS2008 Common folder. I don't know why it was added or how I got it and why it doesn't appear under the 2010 web app that I am currently working on.
How would I modify the following statement from Cuban? Do I need to set a reference something first? And what's with the triple slash? I haven't seen this convention before.
View 3 Replies
Jul 14, 2013
which are the existing plugins for add code blocks in TinyMCE?
View 1 Replies
Jul 20, 2010
I have project A, which is a class library project. I compile it and it creates a dll. In my project B which is a web application project, I add a reference to the A.dll, and I click on toolbox and select choose item, navigate to dll, and click on it. The control does not show up on my toolbox. When I right click my toolbox and select "show all", the control is there, but it's grayed out. I have been searching for an answer to this for a couple of days now, nothing changes.
View 3 Replies
Nov 28, 2010
I am working on a custom menu control, partially as a learning exercise, and I am having trouble with Visual Studio's IntelliSense support for it in markup view.The conventional ASP.NET menu allows you to place an arbitrary depth of <asp:MenuItem/> elements under the <Items>...</Items> element. I'm after the same behaviour for my menu.Mine unfortunately does not. VS insists on an empty tag:
<hn:AwesomeMenu runat="server" ID="menu">
<Items />
</hn:AwesomeMenu>
[code]...
View 1 Replies
Apr 16, 2010
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...
View 5 Replies
Sep 1, 2010
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?
View 3 Replies
Sep 23, 2010
If I was to copy and paste the syntax below
<div
id="FabricSearchFabricSupplierText"><div>
it would come out as
<div
id="Div1"><div>
How do I stop it being changed to Div1?
I have looked under Tools | Options
I obvioulsly reuse my divs style definitions.
View 2 Replies
Mar 2, 2010
I have developed a User Control in inline code model and convert this into dll and try to add it into Visual Studio ToolBox. It shows error "There is no component found in the object.". It is showing actually because i have not added ToolBoxData attribute just before the class declaration, because there is no class declaration in the inline code model. I don't know where i have to add ToolBoxData attribute.
View 1 Replies
Apr 27, 2016
Recently my visual studio updated and added few folders like bin and packages. Since then I am getting syntax error 1002.
View 1 Replies
Jan 28, 2010
where to find/download visual source safe plug in or visual source safe client for visual studio 2005 IDE?
I do not want to install visual source safe 2005 server.
View 1 Replies
Aug 14, 2010
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
View 2 Replies
Mar 24, 2010
In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project. I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.
In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.
But this gives the warning:
WARNING: Two or more objects have the same target location ('[targetdir]web.config') And the actual config file included is web.config and not web_dist.config. What would be the best option to include the web_dist.config (and named as web.config in the setup)?
View 2 Replies
Jun 5, 2010
how to use custom web server in asp.net application properties.
we can see in a web application properties, there are three options under servers
1. use visual studio development server
2. use local iis web server and
3. use custom web server
View 1 Replies
May 21, 2010
Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?
View 1 Replies
Aug 26, 2010
I have one main project for the cms we are using for our website. I have also created usercontrols to include in the site, but I think I would like to keep these in a separate project and just reference them in the main project. Is this a best practice and how would I do this?
View 1 Replies
Dec 4, 2010
I create a customtoolbox mainly one that contains the AJAX toolbox control kit as soon as I choose items and select OK the tab just disappears.
View 1 Replies
Apr 15, 2010
i have problem in using ajax control , till morning it everything was file , now when i add any new ajax control it shows the error Control canot be created because visual studio cannot find the control's type in the control assembly then if i press OK it says The operation could not be completed . invalid FORMATETC structure
View 5 Replies
Mar 18, 2010
I've been working on this for a while now and nothing has been a bigger pain in asp.net. I'm trying to implement custom profile fields in my visual studio 2008 web application project. I've read a lot of tutorials but they all seem to be either out dated or don't apply to web application projects. Last night I got a little closer to solving the problem when I found the "Web Profile Builder" for web applications. I've successfully set this up and can handle static profile data.I've got my web.config file setup and I can access my custom profile fields by Profile.CustomField. Now I want to figure out how I integrate this with the database and data connection. I know there are two standard ways to handle this, I would like to create new columns in the aspnet_Profile database (rather than the delimited key/value option).I'm pretty new to asp.net and this is my first project with c#, .net, and asp.
View 3 Replies