C# - Adding Blogengine.net JavaScript File References?
Jan 22, 2010
I have a new blogengine site up and want to set up syntax highlighting. The problem is that I have a few files (javascript and css) that I need to add the the head of the page, but there is no one page or masterpage. where to write out these references so they will show up on all pages?
View 4 Replies
Similar Messages:
May 11, 2010
I'm trying to include script and style references that will not break on deployment, however I can not even get the references to work locally. I have tried using Url.Content() and MVCContrib's <%=Html.ScriptInclude("")%>.
My scripts are in a Scripts folder on the root of the site; my styles are in the usual Content/css/ folder.
The scripts render like this:
<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js" ></script>
This will not work in a view page in the Views folder. What am I doing wrong and what is the best way to handle this?
I would have thought Url.Content() would at least work for styles but used in my master page, the link rendered
<link href="/Content/css/Site.css rel="stylesheet" type="text/css" />
This does not work, because the Master Page is in a Shared folder, so what is really the way forward with this?
View 2 Replies
Jul 28, 2010
I am having problems adding a reference to a custom assembly in my Bin folder within a controller class I am writing. I can see the dlls in the Bin folder of my Solution file and when adding a new 'using' block to the top of code page, its not picking up any of my assemblies as I try to spell them out.I tried just typing them in and building the solution, but I get errors, it just wont pick these up!
View 3 Replies
Oct 31, 2010
I am using MVC 2. I have a master page and a view that uses this master page. I have to use a javascript file for this view only, and not for the other views. What is the best way to add a javascript file to this view? What I currently did was to add the javascript file at the top in my content tag. Is this the best way to do it? I did it as follows:
<asp:Content ID="cntMain" ContentPlaceHolderID="cphMain" runat="server">
<script src="../../Scripts/myjs.js" type="text/javascript"></script>
</asp:Content>
The content place holder for this content tag in my master page is in a div, so it is complaining that a script tag can not be in a div, and underlines it in green. So I am assuming that there is another decent way of doing this?
View 2 Replies
Jan 25, 2011
I'm trying to add Div Objects to an array and trying to access them later when I call my loadViews function. All of my alerts fire, in the proper order, but the array m_Divs is always of length 0.
I'm re-registering the script each time on Page_Load, due to it throwing an "Error: Object expected" after each page_load when trying to call the javascript if I don't.
.JS file.
[Code]....
View 3 Replies
Feb 16, 2010
I am using Reporting Services to render a report directly to PDF. It requires that I use two web references: ReportExecution2005.asmx and ReportService2005.asmx. The performance on web references seems really poor. Since my web server (IIS7) and my SQL Server (2008) are on the same box, is there a way I can reference them directly? If not is there any way I can explicitly cache them or something. First load is really really slow, second load is perfectly acceptable.
View 2 Replies
Mar 16, 2011
I'm using Lightbox but i only want the references to the stylesheet and javascript files to be in the masterpage header on one page on the site (the page that uses lightbox). how do I programmatically add references to the stylesheet and javascript files in the page load?
the stylesheet is the 'css' folder and the three javascript files are a 'js' folder
View 4 Replies
Mar 11, 2010
On my page in the Page_Load event I add a collection of strings to the Context object. I have an HttpModule that will fire EndRequest and retrieve the collection of strings. What I then do is write out a script reference tag (based on the collection of strings) to the response. The problem is that the page reads the script reference but doesn't retrieve the contents of the file (I imagine because this is occurring in the EndRequest event). I can't fire the BeginRequest event because I won't have access to the Context Items collection.
I tried to also registering an HttpHandler which Processes the request of the script reference but I can't access the collection of strings in the Context.Items from there.
[code]....
View 2 Replies
Sep 9, 2010
I have an ASP.NET application using a master page. I am adding a reference to the JQuery library in the master page however there are some content pages and user controls that reference the JQuery library directly. Will I need to remove each reference from those pages or can I leave them in place even though I am adding a reference into the master page of the application?
View 3 Replies
Jan 26, 2011
I am creating a custom control and had a thought before I began. My control relies on the jQuery library to work. What if the user already has a version of the library already on their page. Will this effect anything? If my version is newer / older and my control will only work with that version of the libaray, what should I do?
View 1 Replies
Feb 12, 2010
When I re/build my ASP.NET website I do not receive any errors. However when I PUBLISH the site, it gives me a 'Circular file references are not allowed.' error.
I read a little on the web about this, and it provided a batch='false' option, which I tried and does nothing.
The page, has a master page, which may call on the same control twice; however, this control does not refer back to anything
View 1 Replies
Jul 26, 2010
A lot of people use syntaxhighlighter for pasting their code in asp.net website also in blogengine.net, I visit the website
[URL] but still confuse, how I can use.
View 8 Replies
Jul 27, 2010
I want to add blog into my existing ASP.Net MVS 2 application. dotnetblogeengine.net is an option to a blog into Web Forms application. Can it be added into MVC 2 applocation.
View 3 Replies
Apr 2, 2010
I have a Windows 2008 server and MVC 2.0 site is hosted under IIS 7.0 root directory. The site works fine. I want to use the BlogEngine.NET with my site. For example if my mite name is [URL] (which is the root of IIS) and the blog should be [URL]
Is this possible? Can I create a sub virtual directory within my root (where the MVC 2 app is hosted) and run the ASP.NET BlogEngine.Net in it?
View 1 Replies
Apr 3, 2011
I implement many themes in Blogengine.net 2.0 for many users and have lots of problems with it then i need to thing first that are it is really stable.
when i use Be.net 2.0 pagination in the stable version wrongly coded they never update them even someone reported them many time. means no one care about bad thing populated in Be.net 2.0 when i learn them their is too much blog but not as much as wordpress no problem but if you have a question their is no one answer you or answer you got from community going too late. this is not like a wordpress community then you question and get response quickly.
the first and 2nd is small issue no problem i have from that but a big problem is that functionality in blogengine.net not working well as in wordpress and in some other cms have every functionality well designed. i found many issue i reported from other when i implement theme from them like.
3.1 if someone write a post who are in future date , in draft , or published then sometime they show addpost page instead of editpost page. this make sometime user feel dirty because you know what they thing when they write a big post and found that all their craft goes left
3.2 Be.net have less functionality then any average other CMS no problem if it's less the issue that sometime you not found what's going wrong whenever their is a issue in the code you write or refactor existing pattern in blogengine.net
SO i want to know are Blogengine.net 2.0 really have stable version or they make them only for showing that they have really same thing as other.
View 2 Replies
Jun 24, 2010
how i can add new admin tab in BlogEngine?and refer to sample page
View 2 Replies
Dec 21, 2010
I uploded the blogengine on th web server.On every first load it give me error oops page not found (404).
after i refresh it it works fine.
View 2 Replies
May 28, 2010
I am getting blank page after deploying the blog engine on Main Production server.
Same application is running smooth on my local system
View 4 Replies
Jul 25, 2010
I have an asp.net application. I want to add a global.asax and global.asax.cs file to my project. In the IDE when I select to create a new global.asax file, the option to create a CS code behind file is greyed out. When the global.asax file is created, no code behind is created, instead code is placed in the global.asax file and the global.asax.cs file is never created? Why is the option for a C# code behind file greyed out?
View 4 Replies
Jun 16, 2010
I have a label and I want to add to it a link.I want to use javascript like :
MyLabel.Attributes.Add("`onclick`", "javascript:`SOME_CODE`")
What must I add in (SOME_CODE) to redirect the user to another link.
View 4 Replies
Jan 19, 2011
I'm developing an blog using ASP.NET, and I want that the user can be able to add comments.
So I want to implement the of facebook on adding comments.
The comment will be stored in the database, so I will be able to load it with the page if the user goes to another web page.
how can I do this thing ( Ajax, Javascript, jQuery, Ajax Toolkit ) ?
EDIT:
I found this :
<body>
<form id="form1" runat="server">
<p>
<textarea id="textArea">
View 2 Replies
Oct 20, 2010
I want to add years to Datetime object, But I m not getting Expected Output.
SOURCE CODE -
Code:
[code]....
View 3 Replies
Jun 10, 2010
have been struggling for a while now to get this to work. I need to add javascript to a web user control when clicked on the sign in button of the login control.I can add controls etc. But whenever I add javascript from code behind it just leave out the <script>. If I add the script on the page_load it works fine but not on the login_error event.Here is the code I'm Using
protected void Login1_LoginError(object sender, EventArgs e)
{
this.Page.ClientScript.RegisterClientScriptBlock(divPopup.GetType(), "MyDatePickerScript", "<script language='javascript' type='text/javascript'>alert('');</script>");
jm_Lib.errorControl eC = new jm_Lib.errorControl();
divPopup.InnerHtml = eC.errorMessageLiteralControlModalPopup("Your login attempt was not successful. Please try again.", "Login Error");
}
View 2 Replies
Mar 23, 2010
I have a Combobox
[Code]....
the combobox doesn't have a get_items() method.
How can I populate the ajaxcontroltoolkit through javascript?
View 5 Replies
Mar 1, 2010
I am having trouble with something, my client wants to be able to hit <enter> as well as click the button on this page:-
[URL]
If you look at the Blue "Postcode search" and try searching for a nursery byb clicking the button you will see how it works. However then try doing the same but hitting <enter> and see what happens..
The front end html is as follows:-
PHP Code:
[code]....
I tried adding javascript so it would recognize the button and allow users to hit enter but this did not work.
View 7 Replies