Is it possible to have a single master page used in two web app?
Or would it be possible to get the virtual path pointing to different app though I don't think so?
View Complete Post
I have an aspx page for a user to fire off a mail merge. I'd like them to choose a .html file from a document library in Sharepoint, then choose a contact list, and then have it fire off the mail merge.
The mail merge part is done and works from a console application with the .html file location hardcoded, and the contact list hard coded.
What I need is a way to add a documents browser onto the .aspx page. I can't see any obvious control I can drop on to achieve this though.
Ideally I would drop on a <Sharepoint:DocumentsBrowser> control, point it at a given ListId in sharepoint, and at runtime Sharepoint would display a nice shared documents type documents browser. Is this possible?
I have a Collaboration sitecollection and made changes to refer to my custom master page in the Master page settings page.Also used the same custom page for Site Master page section.
But if I go to Documents library and click on upload documents then I am getting the UI of application master page.
How can I get rid of those menus.
Thanks in advance.
Hello Group,ÃÂ I am trying to write a custom httpModule to replace application.master page with my custom master page. I followed the following steps suggested in one of the blog:
***ÃÂ ÃÂ ÃÂ Created a class library project
***ÃÂ ÃÂ ÃÂ Wrote following piece of code:
using System;using System.Web;using System.Web.UI;using System.IO;
My team is developing an ajax
based "one page application" using several 3rd party controls. C# at
the server side.
What is the recommanded tool (visual source safe? tortoise svn? tortoise hg?
What is the methodology for team work with the tool (team leader responsible
for check in's/ commit's and merges? developers are responsible for their user
controls check in's? etc).
I'll greatly appreciate answer by someone with experience in such
I would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx). The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page.
However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML, Divs and databound gridview content. The HTML content will be stored in the database.
Can someone point me in the right direction for best practices on how to accomplish this?
I usually work with windows forms, and am just starting to work with ASP.Net, so appologies if this is a dumb question!
I have a master page which has a search button on it. The results of this are built up using a Linq statement and if there are any results, I want to display the results in a contents page.
On the masterpage, I have the following code:
Public Overridable ReadOnly Property SearchRes()
Private Sub DoSearch()
'some code to get a linq result
If res.Any Then
_res = res
LabelNoRes.Visible = True
On the SearchResults.aspx page I have this code.
Dim m As pxSite = CType(Page.Master, MasterPage)
If m.SearchRes IsNot Nothing Then
Label1.Text = "Results found = " & m.SearchRes.Count
m.searchRes is always nothing.
What am I doing wrong here?
I have an HTML <div> container that I float to the right of a gridview. When the browser window is maximized, it looks fine. When minimized, the gridview positions below the floating container and most of the data is pushed off the bottom of the browser - you have to scroll down to see it.
If I position the floating container above the gridview it looks fine in a minimized window, but looks real bad when maximized.
I can capture the onresize event and display the window dimensions but haven't figured-out how to do it with a Content page that still uses the Master page. I think I'm having a very "thick" week...
I have created two composite controls in the same assembly and registered that assembly in a master page using <%@ Register tag.
When I try to use these controls using the registered tag prefix I am getting only one control along with the tagprefix .
How to get all the composite controls present in the registered assembly?
I have a classic asp web application. I am trying to add an aspx(C#) page to the existing asp application.
The existing asp pages have include pages for header and footer. How to add the classic asp include files in aspx page.
Also, How to deploy the aspx page in the existing classic asp web application.
This month we begin a look at the Single Page Interface (SPI) model and some design patterns for designing AJAX applications.
MSDN Magazine May 2008
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 essence, I am creating Dynamic Checkboxlist controls and adding them to a Panel. It works well when I do not have a Master Page configure to this webpage. Once I have a masterpage congifured.. I get a "Object Reference not set to instance of object" error on the Panel_Control.Controls.Add(Checkboxlistnew) line:
protected void Page_PreInit(object sender, EventArgs e)
XML OXML = new XML();
alistChkBoxLabels = OXML.XMLTransform("C:\\Documents and Settings\..\\Config_new.xml", "config_options/check_box/applications/app/@name");
int count = 1;
alistCheckisFacility = new ArrayList();
alIDTracker = new ArrayList();
while (count <= alistChkBoxLabels.Count)
Checkboxlistnew = new CheckBoxList();
Checkboxlistnew.ID = count.ToString();
Checkboxlistnew.Items.Add(new ListItem(alistChkBoxLabels[count - 1].ToString(), alistChkBoxLabels[count - 1].ToString()));
String sAppName = alistChkBoxLabels[count - 1].ToString().Trim();
alistCheckisFacility = OXML.XMLTransform("C:\\Documents and Settings\\Administrator\\My Documents\\Visual Studio 2005\\WebSites\\User_Trial\\Config_new
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?