When a Content DB is set to Offline via Central admin, its unavailable to any new Sites or just another Site Collection?
View Complete Post
What I am trying to do is create custom edit forms for different content types within the same document library.....so basically I have done the following:
When I create a document and edit the properties it works fine - totally as expected. However when I upload a document the default EditForm for the library is used and I can select the CT to associate the document to. When I choose the CT with
the custom form the new edit form is not found and I get a page not found error - http 400.
The full url for this library is is
So the URL I have used is /functions/ehs/CSI/Forms/EditForm2.aspx (EditForm2.aspx) is my form and this is fine. I have even used CSI/Forms/EditForm2.aspx and this works... BUT ne
Hi i need to add the value for MaximumSiteCount and WarningSiteCount for a content database. When I tried to run it with
SPSecurity.RunWithElevatedPrivileges(delegate().. it gives error "Operation is not valid due to the
current state of the object"...... and
when i run the code WITHOUT SPSecurity.RunWithElevatedPrivileges(delegate() am getting error ...Object
reference not set to an instance of an object. while updating the contentdatabase at contentDB.Update();
any help would be highly appriciated..... thank in advance....
code is here any help will be appriciated.....
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?
How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!
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?
Here is the content page: