i have an application that uses a master page. i have an asp textbox named "TextBox1" on one of the subpages.
i have the following script code in my java script function:
var ti = document.getElementById("TextBox1");
View Complete Post
Here is the layout of my problem: I have a Master Page that is referenced by pages in the root of my site, as well as some pages in an 'Admin' folder. All of that works just fine. I added some jQuery to add some features to an auto-search textbox, and placed the code referencing the jQuery file and the script in the head section of the Master Page. The script looks a little like this:
SelectText(this); // Function to call on click event.
I just used the actual id generated by ASP.NET to grab the textbox to avoid the "what's the actual id?" issues. When the home page loads, all is well. When I try to navigate to one of the pages in the 'Admin' folder, I get an 'Object expected' error. At first I thought it was due to a possible renaming of my textbox, but I checked the source of the page and this was not the case. In fact, I removed all of the script code except the:
Master pages in ASP.NET 2.0 solve a problem many Web developers have been solving on their own with a variety of techniques for years - providing a single master template for an entire site. This article covers the details of master pages, discussing their usage and implementation and how they are a natural evolution of custom techniques developers are using today.
MSDN Magazine June 2004
In my masterpage I have a menu with buttons. I want the buttons to do something after click. It works but I have to click twice on the button, why? What do I have to do to just to click once?
i have 5 tabs in my master page application. how can i make 2nd tab as default?
I have a site that uses master pages. Some of my pages use ajax, so they have the scriptmanager on them. I now have to add some ajax to one of the master pages. When I try to display a page that already has a script manager on it, I get an error that I can only have one script manager. Is there a way to deal with this other then searching for every page that uses the master page and ajax and removing the scriptmanager tag?
I'm hoping to start using Ajax more and more, so I'm really more concerned with best practices then I am about having to find and remove tags. What is the right way to use Ajax on master pages and some, but not all content pages?
I am working on a SP site (MOSS not WSS) which is heavily customised away from the OOTB layout. I need to create a Wiki site, which was going well - I've created a master page which displays the miniconsole (this was not visible with our customised
layout), and made it the default master page for the site. This has been applied to the two standard pages that come with the Wiki site, however when a new page is created, it seems to inherit the default.master, rather than my custom master page - thus not
showing the miniconsole.
When I have created a new page, I am able to use SharePoint Designer to attach my custom master page to it, which works perfectly, however this will not be a viable option going forward as end-users create their new wiki pages.
How can I get the new pages to inherit my master page when they are created?
How does one inherit from multiple master pages?
I.e. I have a base master page that contains several ContentPlaceHolders.
I want to have separate master page files (one for each ContentPlaceHolder) so that I have 4 separate files: 3 ContentPlaceHolders (each adding specific content) and 1 base master page.
The ASPX files will then inherit from the base master page.
I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings
Maybe this should be two questions: