Web Forms :: Tilde For Master Page In Page Directive Not Working?

Mar 13, 2010

I am receiving a Parser Error with all my pages in a particular folder:

Parser Error Message:

The file '/railroad/freightcars/covered_hopper/MasterFiles/Freightcars.master' does not exist.
Line 1: <%@ Page Title="Freight Car Photos - CP Covered hoppers - CoveredHopperPhotos.com" Language="C#"
MasterPageFile="~/MasterFiles/Freightcars.master" AutoEventWireup="true" CodeFile="cprail.aspx.cs" Inherits="railroad_freightcars_covered_hoppers_cprail" %>

It seems like the ~ is not resolving; none of my .aspx pages in this folder work. All my pages in several other folders work fine.

I had this problem with another folder when i first published pages to a folder named covered_hoppers. Since i couldn't figure out the problem, i renamed the folder to covered_hopper and re-published.. all worked fine for a couple of months until yesterday. Now i am having the same problem. No problems on my local copy; never had this error with any other folder in my site.

View 5 Replies


Similar Messages:

Links In Master Page With Tilde URLs Give 404 Depending On The Page?

Nov 22, 2010

Here's an odd one.

I have a master page with links to other pages in the site. Those links use tilde paths (like "~/dir1/page2.aspx"). On most of the pages in the site that use this master page, there is no problem. The problem only seems to be on a few pages that use the master page, the links are VERY wrong, it tries to use the ~ as part of the link (so they are[URL]. It's as if it is treating the tilde as a literal under certain

View 1 Replies

Web Forms :: CSS Not Working In Page Derived From Child Master Page When Viewed In Browser But Works In Design...

Jun 13, 2010

I have a page with features supplied from both a master page and a child master page.In the content placeholder for the head in both master pages I have supplied the link to the stylesheet for the site.In Design View in VS 2008 the CSS code seems to be functioning correctly.When viewing in a browser the CSS does not appear to be applied at all.

Here is the CSS code for the div elements within the main content placeholder:

[Code]....

View 8 Replies

Web Forms :: Connecting To Payment Gateway Using HTML Button (not Working In Master Page Inherited Aspx Page)

Jul 29, 2010

Im developing a website in asp.net where i want to connect the Payment gateway(rbs worldpay) as instructed im connecting to the payment gateway...the problem is, there im using some html button to connect the gate way as per the instructions the input button should be in form tag .in masterpage inherited aspx page we dont have any form tag the button is working properly when i placed that html code in content placeholder 1 but the button is displayed above the page......if i place that code in content place holder 2 the button is not working...........

im placing the code

[code]....

View 1 Replies

AJAX :: Autocompleteextender Not Working With Master Page Using Page Method?

Jan 20, 2010

i have tried autocompleteextender using page method and without master page and its working. but now im try to put them into master and its not working. this is my code***********pagename.ascx

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="C_TestAutoComplete2.ascx.vb" Inherits="C_TestAutoComplete2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

[code]...

View 1 Replies

Specificying A Page Directive Attribute On A NHaml Page?

Apr 11, 2010

I am working on an MVC site using NHaml for the view engine.

I have a page that needs to submit HTML code as a form value and am getting the System.Web.HttpRequestValidationException thrown at me.

I want to specify the <%@ Page validateRequest="false" %> so that this page will allow this data to be submitted but am unsure on how to do this with NHaml generating the pages.

The editor I was using was TinyMCE and I found that it has an option for encoding the output, that way it doesn't trigger the anti-html validation.

[URL]

View 1 Replies

VS 2010 - Working With Master Page From Content Page

Aug 31, 2012

I have the following in my master page:

Code:
<span id="Quote" class="hide">..........

In my code behind on the content page of page load I want to change the class="hide" to class="show" How can I do that?

View 5 Replies

Web Forms :: Master Page Not Working In FireFox?

May 20, 2010

I have a master page with accordion. Accordion binds link buttons inside datalist in its content template. Everything works fine but when i open this page in firefox my link buttons alongwith SignOut Link button stops working?

View 4 Replies

Web Forms :: GetRouteUrl() Not Working On Master Page

Sep 1, 2010

I'm facing odd problem with Page.GetRouteUrl() method. It is working only on regular content pages and doesn't want to work on my master pages. I'm using simple snipet: <%#&nbsp;Page.GetRouteUrl("Default", null).ToString() %>, when I put it on some page, it generates "/Default", when I put it on master - I get "". I've tried calling Master.GetRouteUrl() instead but still no luck, it always returns empty
string. Funny thing is that it works in code behind (bothPage.GetRouteUrl() and MAster.GetRouteUrl() works) of the master page, only markup seems to be affected. I bet it is somehow related to the configuration since I have recently moved from ASP .NET 3.5 to 4.0 on IIS7 with integrated pipeline.

View 5 Replies

Web Forms :: Master Page Not Working On Deployment?

Jun 28, 2010

i have build with simple master page with a child page,it is working fine, i deployed it on iis,it is working fine,when I hosted it on server, and hit the url , only child page is coming and master page content is not displaying,what may be the reason?the master page code--->

[Code]....

the child page code--->

[Code]....

View 4 Replies

Web Forms :: Expression Expected Error In Page Directive?

Feb 19, 2010

I get a error on this line

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="FormA.aspx.vb" Inherits="_Default" %>

It says expression expected

another error is :name bind is not declared

Both the errors point to column 1 line 1

View 2 Replies

Web Forms :: Favicon In Master Page Markup Not Working

Mar 22, 2011

I have added a favicon to my site but it will not appear. I have the following two lines in the master page markup:

[Code]....

When the first page that uses the master page is rendered in the browser, these links are:

[Code]....

This is as I would expect yet the favicon does not appear. It appears fine on any basic html pages but simply won't on any pages that are based on the master page.

View 2 Replies

Web Forms :: Master Page Properties Not Working Correctly?

Feb 3, 2010

In my default.aspx I have;

<%@ Page Title="" Language="VB" MasterPageFile="~/masterpage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" AspCompat="true" %>
<% @ MasterType VirtualPath ="~/masterpage.master" %>

I have setup properties, for example;

Private _theskin As String
Public Property theskin() As String
Get
Return _theskin
End Get
Set(ByVal value As String)
_theskin = String.Empty
End Set
End Property

I was then expecting to be able to access these properties from the default.aspx.vb page in this way;

If Master.theskin = foo Then
do things
End if

In the default.aspx.vb the code is highlighted with blue underline and says;

theskin is not a member of system.Web.Ui.Masterpage

Am I making an error somewhere along the line? Do I need to do more to be able to expose the properties to default.aspx.vb?

View 2 Replies

Web Forms :: Why Master Control Page Code Behind Not Working

Mar 12, 2010

My hosting service is all messed up and my application keeps recycling. I am not able to figure out why my application is recycling. I am told that my application is using more than 100MB allocated memory but I just do not see what is wrong or how much is the optimized memory is required for my application. So in my master page I am trying to capture if one of the session variables is null and redirect to login page in the master page.in my master page I have the following code:

if ((Request.Cookies["UserID"] != null)&&(Session["UserID"]!=null))
{
do something;

[code]...

Object reference not set to an instance of an object. referring to the session["UserID"] being null in the page where I thought the master page will handle the null value for the session before the page!

View 2 Replies

Web Forms :: Linkbutton Not Working In Master Page In Single Click?

Jan 10, 2010

my Master page placed textbox & link button. Linkbutton event raise only if clicked twice, is there anyway solution for raise the event in single click

[Code]....

View 3 Replies

Web Forms :: Move Code Into Master Page It Stops Working?

Oct 21, 2010

Some time ago I converted an old windows application to a web application. This web application works fine as a stand alone app. I was recently informed that my client had a new standard layout and they are using a master page. They sent me the master page.

The web application is quite basic in that it makes a number of calls to a web service to retreive a list of customer, retrieve list of products and allows customer to create an order containing products.

I did the following to get make use of master page:

Copied it to my solution Update the page directive to include the MasterPageFile attribute and set it to point to master pageAdded the relevant content areas to my page Copied my code (control declarations etc) into the relevant content areas.The application compiles correctly and renders as expected. However, it does not behave as expected.

For example, I display a list of customers in a GridView. The user can select a customer by clicking the select button that is present for each row in GridView. I do this once and select a customer the page is posted back and relevant row is selected. I select a different customer and the page it posted back but this time the selected row does not change. It is still shown as the first row i selected.

This functionality works as expected if i remove the master page attribute and content areas.

View 4 Replies

Web Forms :: Define Reusable Master Page Type To Reuse Parts Of The Master Page?

Jan 5, 2011

My Project is a normal web site, not a Web Project, and I am using VS 2005.

I am trying to define common Master Page Type in app_code which has an area to display error messages and the like. Very simple.

I added the following in app_code:

[Code]....

Also, I added the following in Master Page Source Declaration:

[Code]....

Also, I added the controls tblrowErrMsg and lblErrMsg as server controls to the Master Page.

Why I am doing this ?

This will allow me to display error messages from nearly any where inside the code in code-behined, app_code, and other core Class Projects (DLL).

View 4 Replies

What Is A Page Directive

Oct 10, 2010

I'm studying up for a Microsoft Certification exam, and some of the wording for the 'content' in the examn confused me. In the MS exam website, under Developing Web Form Pages, it says in regard to the content on the exam...

This objective may include but is not limited to: page directives such as ViewState, request validation, event validation, MasterPageFile; ClientIDMode;

I was under the impression that a page directive referred to the @Page keyword, and the associated values defined in the @Page section were attributes/properties. But the wording of the exam content almost implies that the attributes/properties of the @Page keyword are directives.

View 2 Replies

Web Forms :: LinkButton's Click Event Is Not Working Inside Master Page?

Feb 1, 2010

I have created a master page for website layout in my project. I have used a linkbutton control to trigger between Login/Logout functionality but when I click on this control the underlying click event handler is not being executed anyway.When I click on this control, the page pointed by its PostBackUrl property is open which should probably occure after its click event hander have been executed.

[Code]....

and the LinkButton Control is

[Code]....

View 3 Replies

Forms Data Controls :: GridView / ListView Not Working Inside A Master Page?

Jul 18, 2010

I've been working with ListView for a long time, but I haven't been using it's built-in events so far. Now I was trying and was stuck. Until I moved both LinqDataSource and ListView to another page, without a master page.

Then it worked. Same happened with GridView as well.

I do not use Update Panel. Just master page. And if I use manual methods for edit, insert, delete then it doesn't fire OnItemCommand.

Is there a known uncompatibility with databound controls and master pages? Because I couldn't find anything about it on Google.

View 2 Replies

Web Forms :: Master Pages - How To Access Content Page From Master Page

Sep 5, 2010

I have a master page setup that is used throughout my site that is basically a header with a menu. I recently added a textbox and a button to this master page which is to be a quick search box that is available anywhere in the site. When a user enters text into the search box and hits the button, I need to load the actual content page which is used to search and show search results (which also uses this same master page), and have the text entered available so the search can be triggered automatically. Again, this search text box and button is now in my master page so it could be triggered from anywhere in the app... it serves as a convenient way to do a basic search from anywhere in my app, without having to first navigate to the actual 'search page' that already exists. You can also navigate to the actual search page, which uses the same master page, where there is many more search options.I'm thrown off by the master page arrangement, which I have not used until this project. What do I do?

View 4 Replies

MVC :: How To Inherit Two Classes Using Page Directive

Aug 10, 2010

I have been trying to find a way to declare two classes using page directive, but it seems like mvc framework doesnt support it.

I have got :

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ContactManager.Models.contact>>" %>

which shows the list of the contacts including edit delete and create option.

What I need to declare another model class which is FileRepository.cs for uploading files on the same page. In this case the page directive should be like:

2. <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ContactManager.Models.FileDescription>>" %>

Is there any way I can incorporate both into one as the first is coming from the database.

View 6 Replies

Forms Data Controls :: Frozen Grid View Not Working In Master / Content Page?

Jun 25, 2010

I am trying to use Matt Dotson FrozenGrid View [http://blogs.msdn.com/b/mattdotson/archive/2006/03/02/542613.aspx] in Master/Content page but the header of the gridview doesn't get fixed. I tried putting gridview inside the panel and but no luck.

View 3 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

Web Forms :: Accessing Master Page's Body Tag From Aspx Page That Is Not A Content Page

Jan 8, 2011

I am using Master page and Content page combination.But how can i access <body> tag and it's event (onload, onunload) of Master page in .aspx page that is not a content page.

View 12 Replies







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