I am using vb.net master pages and .net is putting ctl00$CPHContent$ and ctl00_CPHContent_ before the control ID and control name.
I am trying to use the findControl to look for my control but it is not finding the controls.
any ideas or suggestions..... I can't use javascript to find a solution
...
I built a deployable master page into a dll and referenced it in multiple ASP.NET Web Applications using a virtual path provider. The problem I'm having is that this really confuses the source view of my aspx pages.
Here is the code inside each of my aspx.cs pages which actually attatches the MasterPage to each content page, but as I sa...
Is it possible to convert / migrate Sharepoint Masterpages to ASP.NET Masterpages ?
...
I've read through quite a bit of posts/articles on how to do this and I still am not getting the page title set from the content page. My pages render OK except I can't get the title set from the content page (all the page's have Title set as per the master page). Here's the codebehind for my master page:
Partial Class zSEO
Inherits Sys...
I have an application which use some javascript functions,
As all javascripts include in Masterpage, most of them which comes withpage are not necessary, and some of those are repeated ( cause used in some different JS file. )
So I want to check if there is a way to determine duplicate functions and remove them ?
...
I have a webpage inheriting a masterpage, The webpage has a DropDownList (DDL) in it, with an OnIndexChanged Event attached to it.
The problem simply is that the event is not firing, even though a callback occurs (and page_load() events are called)..
I did some searching and read that having the page's viewstate set to false, would cau...
I have a website on with MVC, which has a dropdown in the masterpage.
The data in the database is linked to a Year. so every year we get a new clean DB to start with (or so it seems from the website, because the Year changed)
The dropdown box lets you select the year you want to edit/see/go into.
in the global.asax i have a method:
...
I'm working on a .Net/C# web application and had been using a javascript based calendar to allow users to select dates. This has been working fine.
Today I changed the code to include a master page and the datepicker which is called from a childpage has stopped working, the problem being that the Textbox which the date is returned to i...
How can I stop a master page from auto-correcting or adjusting my urls? I am using a site map and when the master page is in another directory, it messes it up the urls.
Edit I don't want to do this globally, I want to do this on an individual master page.
Edit 2 I do not have access to the urls. They are generated by a sitemap.
Edit ...
Hi,
In the master page I have a container on top of the page, which should hold buttons specific to the content page. In a content page, I have buttons like "Create", "Modify", etc...
The container in the master page should always be on top, but the buttons will eventually change with different content. Any idea on how I can bind conten...
Site.Master
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<body>
<asp:ContentPlaceHolder ID="Menu" runat="server">
<!-- Menu goes here -->
</asp:ContentPlaceHolder>
</body>
Sub.Master
<%@ Master Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %>
<asp...
The masterpage of my site is using a control that reads data from a network share. To make this work on all pages I'm having to enable impersonation for the whole site. But what I want to do is only enable it for the pages that actually read/write to the share. Eg:
<location path="SystemAdmin">
<system.web>
<identity impersona...
I'm designing an MVC site, and I've already got quite a few things in the Site.css that only apply to one controller or even one page. I'd like to break this out into multiple css files and include them only when necessary, but how can I do this when all header information is in the Site.Master.
Note: I still want to use master pages, ...
I could add the ckeditor to a normal .aspx page and it is working properly.But when i create web form with the master page property set, the editor is not visible in the web page when it is executed. Is there a special way to add an instance of a ckeditor when it comes a master page.
...
I'm creating a app that uses a Master Page.
But when i go to Design View of the page (for creating the events automatically or for drag/drop any new control from toolbox, I don't want to type everything) the design view only shows the master page! the page controls are complete ignored!
the image: http://img4.imageshack.us/img4/7980/ma...
I have the following code in my ASPX side:
<%@ Page Language="C#" MasterPageFile="~/masterpages/standard.Master" .... %>
<%@ MasterType VirtualPath="~/masterpages/standard.Master" %>
I use the VirtualPath to access properties in my MasterPage.
So far, so good.
However, now I have to change masterpages programatically.
I know that to ...
In ASP.Net you'd create a MasterPage and have whatever pages use that.
I need my pages to use the same basic layout. Where do I create it?
...
I am using Master Pages and I am truing to dynamically add hidden text boxes on the form with the NAMEs that Google Checkout expects.
<input name="item_name_1" type="hidden" value="Widget #1"/>
Using VB.NET, I execute the following code
'Name
Dim hidName As New HtmlInputHidden
hidName.ID = "item_name_" & count.ToString
hidName.Valu...
I followed the How do you get the footer to stay at the bottom of a Web page? post on stackoverflow...
But i couldn't make it too work in an asp.net web application.... I am using a master page for all pages...
How can i make footer stick to the bottom of the page?
For ref:
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
...
Hi all,
I have created a simple HTML page with a centred DIV for content. I have a repeater image on the DIV to give a border effect.
When viewing the HTML page in IE & FF, it loads correctly. No scrollbars and all divs fill the whole page to 100%.
When I move this over to a ASP.Net MasterPage, it all goes pear shaped. The centre DIV...