JQuery Not Working From Subdirectory?

Mar 13, 2011

I write ASP.NET application and I want to use jQuery DataTables.

In Master Page (which is not in root) I include scripts in code behind:

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
ScriptManagerSM.Scripts.Add(new ScriptReference(Page.ResolveUrl("~/js/jquery.min.js")));
ScriptManagerSM.Scripts.Add(new ScriptReference(Page.ResolveUrl("~/js/jquery-ui.min.js")));
ScriptManagerSM.Scripts.Add(new ScriptReference(Page.ResolveUrl("~/js/DataTables/jquery.dataTables.js")));
ScriptManagerSM.Scripts.Add(new ScriptReference(Page.ResolveUrl("~/js/setup.js")));
Page.Header.DataBind();
}

In page I have just pure html:

<table class="table display">
<thead>
<tr>
<th>Header</th>
<th>Header 2</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Cell 1</td>
<td>Cell 2</td>
</tr>.......

View 1 Replies


Similar Messages:

JQuery :: Save As Window Is Working In IE But In Mozilla Its Not Working ?

Jun 14, 2010

In my Application i write one javascript function as

Page.ClientScript.RegisterStartupScript(typeof(Page), "myscript", "<script >document.execCommand('SaveAs');</script>");

to save that file.

its working fine in IE but in firefox mozila that save as window is not comming.

which function will work for both IE and FireFox mozila.

View 1 Replies

Can Put Webservice In Subdirectory

Jul 5, 2010

I try to call my webservice but I cant! when I put it in root directory it possible but when I put it in sub directory it's impossible to call it! and one more problem that I face with it,my javascript file stay in 3 sub directory like ../../../myjsfile.js when I put my webservice address like this ../../../webservice.asmx it dont work but when I change it to a full address it work.anybody know what is my problem?

View 1 Replies

Configuration :: URL Rewrite Subdirectory ?

Oct 13, 2010

Rewrite has been working like a charm when testing and using it locally. However when I uploaded my application, then it gave me some problems.Problem Overview

My site - http://www.site.com/

Site is stored in a subdirectory on my root hosting in a folder call "sub".

So when I go to the URL http://www.site.com/part1/file.aspx then in my Rewrite Rule the {URL} is given as "/sub/part1/file.aspx" instead of "/part1/file.aspx"

Problem/Question,Is there a way I can handle all the {URL} in my Rewrite Rules without including the "sub" in the {URL} and without having to change every single ones Pattern?

View 1 Replies

Web Forms :: FTP Get All Files In Subdirectory?

Sep 8, 2010

I'm working on a page which is supposed to check for missing files on an FTP server. There are a TON of files on the server in the folder (and in subfolders) that I'm supposed to look through. These files are in several different subfolders (labeled by date) and are created when our company's clients uploads them via FTP. As far as I can tell, FTPWebRequest provides the user with no way to get all files in a folder, including that folder's subfolders. I have to go through a parent folder, read all of the directories in that folder, and then create a new FTPWebRequest object for each one of those subdirectories in order to read the files. This slows down the performance of the page immensely. Is there a faster way to do what I'm doing? Maybe there is an FTP library out there i don't know about?

View 1 Replies

Configuration :: Specifying DefaultDocument In Subdirectory?

Apr 20, 2010

I created a site with a "Members" folder and would like anyone browsing to ~/Members/ to be redirected to ~/Members/Dashboard.aspx. I added a Web.config file to the folder with the following lines shown below, but it doesn't seem to be working - every time I browse to ~/Members/ is simply produces a listing of the files in the directory.

<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="Dashboard.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

View 7 Replies

Error In Subdirectory Web.config File

Oct 7, 2010

I'm having two web.config files, one in my root directory(where all web pages of a project are found) and other in admin directory(that is located in root directory). But whenever I try to write <authentication>...</authentication> tag in web.cofig file that is in admin directory, I face the following error on building my project. It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

View 1 Replies

Configuration :: IIS 7 Configs For A Website In A Subdirectory?

Dec 20, 2010

Newbie I am; made a databased VWD 2010 Express site (SQL Server and Access data sources)(easy enough and fun) ; wanted to test it from other machines on my LAN. Made a subdirectory under wwwroot (called test) and used the "copy" tool to copy the site there
(the account,app_data, scripts and Styles directories and the aspx pages, etc.)

Needless to say it does not run.From what I can find on the web I may have to play with "Convert to application
" and "Add virtual directory" under IIS 7 .I cant find a succinct and complete explanation of what needs to be done to make the site "OK" for IIS7 . This, surely, must exist out there somewhere.

View 3 Replies

MVC :: Running Musicstore Sample From Subdirectory?

Nov 28, 2010

I tried [URL] mvc musicstore sample in .NET 3.5

View 11 Replies

Configuration :: Error In Authentication For A Subdirectory?

Oct 14, 2010

I'm having two web.config files, one in my root directory(where all web pages of a project are found) and other in admin directory(that is located in root directory). But whenever I try to write [Code].... tag in web.cofig file that is in admin directory, I face the following error on building my project

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

View 3 Replies

Web Config - Disabling Themes In A Subdirectory?

Sep 29, 2010

This should be a simple one. I am using a program that has themes defined in its Web.config file. I want to turn these off for a subdirectory.I copied Web.config into a subdirectory and tried removing the theme attribute from the pages element on Web.config but that didn't get me anywhere. I got a bunch of errors about elements that are apparently not allowed in non-root Web.config files so I removed all of those elements, but I am still getting the same error.I tried adding EnableTheming="False" in the ASPX Page header, the thing that defines Language=C#, etc., but it didn't work either.So if someone can tell me a tested, confirmed way to make this work, I would appreciate that. I am using .NET Framework 2.0 on Server 2003.

View 1 Replies

Security :: Permissions On Subdirectory 401 Error?

Dec 27, 2010

We use a build tool, TeamCity to do our builds. I have a directory locally with javascript files that works fine, but when its built and pushed to our test server and I try to get to any files in the directory I get: 401 - Unauthorized: Access is denied due to invalid credentials.

I've changed permissions several time on the server (2008/IIS 7) and still the problem persists. I have other directories that have javascripts and when I put the path into the browser for them I get the source.

View 2 Replies

VS 2010 - Parser Error In Subdirectory

Jul 7, 2011

I need to add a small training page to an existing website structure. I created a new project and published it to a subdirectory of the website, but when I run it, the .aspx pages throw a parser error because it's looking for the codebehind files in root/bin instead of root/subdirectory/bin. How can I make it look in the right folder?

View 1 Replies

State Management :: Access Bin Folder Of Subdirectory?

Sep 2, 2010

I have one my WebApplication called "WEB1" in which I have App_Code folder and Bin Folder and I have one more webApplication called "WEB2" in which also Bin and App_Code Folder is exist.

Now my requirement is to Merge WEB2 Project into WEB1 with creating one subDirectory called "SUBWEB2" , While rebuilding my solution I am getting error:

The type or namespace name 'MyDummyBinDLL' could not be found (are you missing a using directive or an assembly reference?

MyDummyBinDLL is presented under "SUBWEB2" sub directory now I have two Bin Folder one is WEB1 Root directory and second Bin is under SUBWEB2, I can not move my SUBWEB2 Bin folder DLL into root Bin folder,

So now my problem is how can I access my SubDirectory Bin Folder do I need to rename my Bin Folder, if I will renamed it do I need any configuration in Web.Config.

View 3 Replies

Configuration :: Comiling A Subdirectory Aspx Page Into Dll.?

Mar 22, 2011

I have a web application. In my application,I have a normal sub directory named "sub" . In sub, I have a a webform 'mywebform' and its .cs and designer file.Now , when I deploy by web application by copying all aspx file and bin folder through ftp, all my aspx pages work fine, but mywebform.aspx creates a problem . It throws an error:

View 8 Replies

Configuration :: Error Running Mvcmusicstore Sample From Subdirectory?

Feb 12, 2011

I created subdirectory Store in IIS 7 root page and converted it to application and added .NET 3.5 mvc musicstore sample to it. App pool is classic and isapi dll handler is added for request path *

Typing localhost/Store returns error below. How to run mvcmusicstore sample from subdirectory or from root directory using same code base?

Server Error in '/Store' Application.

Parser Error

Description:

An error occurred during the parsing of a resource required to service this request. review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'System.Web.Mvc.ViewPage<IEnumerable<Business.Toode>>'.

Source Error:

[Code]....

Source File: /Store/Views/Home/Index.aspx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209

View 4 Replies

JQuery :: Working With Checkbox Using JQuery?

Feb 8, 2011

I am new to jQuery, i am tring that In my pages contain four checkboxes then if any checkbox is checked then one div is dispaly , in that div some controls is placed. My intension is if checkbox is checked then validation for that particular div contained controls,

View 4 Replies

Configuration :: Looking For Real Brower URL For Redirects - Domain Assigned To SubDirectory On Website

Jun 12, 2010

Dim realurl As String = #####

Dim pattern As String = "/foldername"
[code]....

Request.URL and Request.RawURL Do not work because they always return foldername/documentname ex "/foldername/mypage.asxp" regardless of the URL in the browser. Using those create an endless loop.I need whaever string is in the users browser not what document it is requesting

View 4 Replies

Active Directory/LDAP :: How To Create And Copy Files Into A Subdirectory At Runtime

Nov 22, 2010

I have a folder on my server say:

MasterArt

in that folder there is 4 folders

pics

videos

music

other

in the pics folder is jpg's that are the buttons for a web page, the web page is in the MasterArt folder and is named default.aspx upon a user creating an account, i have my program create a folder under a subfolder named ARTIST

I got that part but now what I need to learn how to do is to have at run time, when a new user creates an account, that my program creates a subdirectory under the ARTIST subdirectory and then I copy the default.aspx from the MasterArt folder into their folder, then copy the folders and contents of the 4 subfolders (pics, videos, music, other) so that they now have the direcotries and its contents.

Example: I create a user account and my artist name is Kevin

a subdirectory is created called Kevin, the folder Kevin should now have the default.aspx page, and 4 sub folders, pics, videos, music, and other.

View 1 Replies

AJAX :: Make ToolkitScriptManager On Site.Master To Work With Other Webforms In Subdirectory?

Jan 2, 2011

I got a a problem when using ToolkitScriptManager on masterPage with other webForm in SUbDirectory. Everytime I run other webform in the SubDirectory there was an Error "The ScriptManager must appear before any controls that need it". Then I added ToolkitScriptManager to that page I got another Error "Only one instance of a ScriptManager can be added to the page". hmmmm then I removed the ToolkitScriptManager from the MasterPage, It's worked for that page.

on that SubDirectory I had a webConfig file.

<?xml version="1.0"?>
<configuration>
<location path="MyPage.aspx">
<system.web>

[Code]....

View 2 Replies

JQuery :: JQuery DatePicker Not Working In Master Page Content Page?

Mar 10, 2011

I have implemented a lot fo JQuery features into my ASP.Net web application. I am using JQuery, JQueryUI, JQuery Validation and a couple of other plugins. They are all coexisting and working fine. This one page in my app has the JQueryUI tabs, Modal progress pop-up working just fine. This page also has a couple of JQuery AJAX calls to my server side events. That all works fine!

I just added a Jquery date picker to one of the text boxes on the first tab on my data entry form and nothing happens or is displayed when you click on the date textbox. I am going to post the HTML markup for the page and my JQuery code. Please let me know if you see anything glaring? HTML

[Code]....

Script

[Code]....

View 7 Replies

Next 'div' In JQuery Not Working?

Mar 2, 2011

I have the following jQuery that does find the ASP.NET server control (tested by placing an alert() inside block), but it does not set the height on the next DIV in the DOM using .next(). However if I use straight JS to do the same thing, calling the DIV by ID directly it works fine. What I am trying to do is not use the hardcoded ID of the DIV in case it changes, and rather walk the DOM to dynamically get to the element and set the height. So 1st: the HTML source of what I am trying to manipulate:

<div id="WebViewer" style="height:100%;width:100%;margin-right: 0px">
<input name="WebViewerReportReceipt" type="hidden"/>
<input name="WebViewerViewerType" type="hidden"/>
<DIV id="WebViewer_controlDiv">
<iframe src="295769102_1619997395_16141400_2120403583/CacheItem" style="width:100%;height:100%;"></iframe>
</DIV>
</div>

Next the non-working jQuery that I think should work:

//Using the 'DIV' that is created by the viewer (at runtime), resize it dynamically to fit the window
var myHeight = $(window).height();
if ($('#<%=WebViewer.ClientID %>') != null) {
$('#<%=WebViewer.ClientID %>').next('div').height(myHeight - 10);
}

And lastly the JS that does work, but I would prefer not to access that DIV by a hardcoded ID and use jQuery instead:

var myHeight = $(window).height();
//Using the 'DIV' that is created by the viewer (at runtime), resize it dynamically to fit the window
if (document.getElementById('WebViewer_controlDiv') != null) {
document.getElementById('WebViewer_controlDiv').style.height = myHeight - 10;
}

why walking the DOM in jQuery to get the 'next' div and set its height is not working?

View 3 Replies

MVC :: JQuery Validation Not Working With IIS?

Nov 19, 2010

Im using MVC 2 and .NET 4 on my local machine. I can debug my project using the Visual Studio Development Server locally. Everything works great, including the validation using

[Code]....

[Code]....

View 2 Replies

Jquery - .net With RegularExpression Is Not Working?

May 12, 2010

I'm try to do validation on a textbox input to validate a phone number.I have an asp.net textbox and checkbox. The default is to validate a US phone number and when I check the checkbox I should change the RegularExpression and error message to validate an international phone using my own RegularExpression.

[code]...

View 1 Replies

JQuery Code Not Working In IE 8?

Feb 1, 2011

This code is working in firefox but on IE 8 it returns nothing

<script type="text/javascript">
$(document).ready(function(){
var pageUrl = '<%=ResolveUrl("~/test/test.aspx")%>';
// Test
$('#<%=ddlTest.ClientID%>').change(function(){
var trgId = $(this+'input:checked').val();
$.ajax({
type: "POST",........

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved