.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Calendar newform.aspx multiple content types and default values.

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :SharePoint

SharePoint 2010 provides some new features on Calander views (of the OOTB calendar list). You can select a portion of the day and click "new event" directly in the calendar. This will take the selected startdate/time and enddate/time and prefill this in the newform. When you enable Group Planning on the calendar it will also take the user (of the selected calendar) and prefill it in the newform as well. Very nice.

I have created multiple content types on the OOTB calendar and would like the give the user a intinuitive UI of selecting the correct content type. The idea is as follows. The user selects a portion of the day, and click "new event" directly from the calendar. The user is taken to a custom page where he can select the desired content type and is then taken to the new form of the selected content type.

Now I'd like to take the values selected by the user (eventdate, enddate and user) and use them to create links to the newforms of the different content types. In Moss 2007 the selected values (startdate and starttime) were passed with the Querystring, which prefilled the newform. But in SharePoint 2010 these values are passed in some other way (javascript?)

How can i get these values (eventdate, enddate and user) and create multiple links with these values, which will pass them to a newform of the

View Complete Post

More Related Resource Links

content types as choice field on newForm.aspx



I use sharepoint 2010 server Enterprise.

I need to display content types in a choice field on a newForm.aspx . After user choose content type, newform must show corresponding fields.

Is there any way to do this? I heared that there is a default column named Content Type but i cant find it.

Content Editor Web Part in default.aspx not copied over.


I have a CEWP with some content in the default.aspx page on one site, and I downloaded and uploaded the default.aspx page to another site collection. But when I display the default.aspx page in the browser the CEWP is not there anymore.

Is the CEWP detached from the default.aspx page and must also be copied over to the new site collection? If so, then where is the CEWP stored?

Thanks for any help. 

Add new content types to multiple libraries


We use MOSS for document management and content types for document types (i.e. specification, quote, PO etc.)).  We would like to add additional content types to our libraries.  I was hoping to find a tool that would help me to propagate these new content types ad I am not a programmer.



ASP.NET 5.0: Multiple logins and login types in default ASP.NET membership provider

What do you think about an ability of having multiple logins and login types to be attached to the same user? Let me explain this by showing how database schema can be re-factored to support this model:Remove [Password], [PasswordSalt] columns from [Users] database tableAdd [Logins] table with one-to-many relationship between [Users] and [Logins] tablesThis will allow one user to have multiple credentials attached to his or her account of different types such as Username&Password, Windows Live ID, Open ID from different providersYou will be able to restrict allowed login types and OpenID providers in web.config So.. do you think it is a good idea to add support of this model into ASP.NET 4.5/5.0 membership service?http://aspnet.codeplex.com/workitem/7149

Content Type Title on Newform.aspx

I have a Calendar created with 8 Different Content types in it which are derived from Calendar Event and List item. In the Newform.aspx based on content type ID respective fields are present.
My Question is there a way to display Content type Name on Newform.aspx so that user's will come to If there are filling right now or not.

Multiple Content Types in a single list - how to edit fields outside a content type

I have a single list and created two content types on the list in order to reduce the amount of visible fields a user sees when entering a form.  Once the form is filled out by one group with the limited data, an alert is sent to another team that adds to the list item using the larger set of fields defined by the second content type.  Unfortunately it seems that the edit burron remembers ihe initial content type that the entry was created with.  Is there another url to access the edit button for the same entry using the alternate content typr?

How to set the order of custom fields in custom list definition of Multiple Content Types


Hi all,

First of all I am sorry for my poor english.

I have a custom list definition and I have mentioned two content types in the "Schema.xml" file of this list. I need to change the order of fields in NewForm.aspx and EditForm.aspx.

For e.g. I have two content types ContentType1 and ContentType2. ContentType2 is inheriting ContentType1.

Fields of ContentType1 are

1. Field1

2. Field2


and Fields of ContentType2 are

1. Field3

2 Field4


When these fields display on new form the order of fields is

1. Field1

2. Field2

3. Field3

4. Field4


But I need to change the order of field by

1. Field1

2. Field3

3. Field2

4. Field4


Can anyone help me to change the display order of fields in new and edit form?


Thanks & Regards,



Want to create a content type with its own Newform.aspx,editform.aspx,allitems.aspx by means of wiza



The wizard then creates a solution on visual studio. The code behind will write generic code for updating/adding into sharepoint.i is there a wizard which will create content type with individual aspx ? If there is a wizard utility which prompts you for fields and field types and then it will create code behind for the aspx.
With this done I can go at the code behind and ammend to put more logic. 


SharePoint Tutorial - Content Types

SharePoint content types provide users with a way to manage and organize content in a more meaningful way. It's a reusable of settings you want to apply to a particular type of document in a library or item in a list.

Content Types in MOSS 2007

In this article I will try to describe the one of the best feature in Microsoft office Share Point 2007 called Content Types.

Content types are simply collection of contents.Each content in a Content type can have different settings.Basically it is a reusable collection of settings which you want to apply to a particular category of contents.

jquery autocomplete multiple values


i got some samples and i did autocomplete using jquery , its working well for single input values

but i need to pass multiples values after one by one in the textbox. Is it possible to pass multiple

values in the textbox for autocomplete in jquery in asp.net?


Composite Control which contains arbitrary content defined in .aspx of parent and thier ViewState


I want to write own control which can contain other. And I want to define content of the control in the .aspx file where the control is defined. I have written such control. But now I have issue with ViewState of inner controls of my control. The following samle illustrates the issue: I defined two asp:DropDownList ID="ddl1" and ID="ddl2" One of them is inside of my control and other is outside. When posback is occurred asp:DropDownList ID="ddl1 loses state and becomes empty. How to say ASP.net to store state of inner controls defined by this way?


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyControl.ascx.cs" Inherits="DynamicControls.Controls.MyControl" %>

<div class="box">
    <div class="Header-Left">
        <div class="Header-Right">
            My Control
    <div class="Content">
        <asp:PlaceHolder ID="contentPlace" runat="Server" />

Office Apps: Integrate VSTO with SharePoint Content Types


See how to build a document-level Visual Studio Tools for Office customization and integrate it with a content type in SharePoint.

Steve Fox

MSDN Magazine May 2008

How to store and retrieve multiple values in a single session variable .


I want to store employee name,designation and department in session variable and
retrieve in another page how to do this.

Default values in SQL syntax / MVC


Hi guys, I have a little problem for which I need a little advice about.

I have a repository function called getList which retrieves certain information that gets posted to it from a form. My form has 6 fields, and a user can enter searvh criteria in any or all the fields. According to what he has entered, I must execute a SQL string to retrieve matching information.

I have the following:

public List<Client> getList(string clientSurname, string clientInitials, string clientName, string clientNumber, string clientReference, int divisionID, int clientStatus, int usrID)


var clientlist = from c in DB.Clients
                             where c.Surname.Contains(clientSurname)
                             && c.FullName.Contains(clientName)
                             && c.Initials.Contains(clientInitials)
                             && c.OldClientNo.Contains(clientNumber)
                             && c.Reference.Contains(clientReference)
                             && c.DivisionID == divisionID
                             && c.Status == clientStatus
                             && division.Contains(c.DivisionID)
                             orderby c.Surname,c.Initials

"Access is denied. Check that the Default Content Access Account has access to this content"


Our search is not working. The crawl log indicates following error: "Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (The item was deleted because it was either not found or the crawler was denied access to it.)".


If I check the event viewer, it indicates following error: "Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. [CLIENT: <local machine>]"


My default content access account is another one than this NT AUTHORITY\NETWORK SERVICE account. The content access account password is correct. Apparently this content access account is translated to the NETWORK SERVICE account upon a crawl. And this network service account doesn't has the appropriate rights on database level. How can I fix this?


Configure BDC column to have multiple values selected


How do I Configure BDC column to have multiple values selected and make multiple entities data available in the same column.  Currently it supports only single value for an item.  This requirement is crucial need some solution immediately.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend