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


Post New Web Links

Register a control from a custom application page.

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

Hello,

I have an application page with a form on it to generate custom controls that need to be added to the page head. For example scripts or styles.
Is there a way to register them to the master page?

I know there is a control called "CustomJavaScriptFileUrl" that could be used to register a jScript file, but you could only register one file.

Thanks.


EStruyf


View Complete Post


More Related Resource Links

create custom application page with a ribbon and user control webpart

  

i am in stress how to start this what should be the first step

i want to create custom application page with a ribbon and some user
control web part to show document item properties.

Please help me regarding this

 

thanks in advance 

Regards 

WasiKhan


wasikhan junior software ENG

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

  
Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

How To Use a Specific Sites' Master Page for my custom asp.net application

  
I have a custom application that I migrated to sharepoint (compiling into single DLL and creating a fodler for it in the layouts folder in 12 hive) Currently, I am using ~/_layouts/application.master as my masterpage for the custom application. However, i would like to use a certain site's master page for my application versus the default one. For instance, I would like to use the master page from this sub site www.maindomain/sites/subsite/ Thanks for your help.

Is there a way in VB.Net to embed a custom user control to a web page based on Word or Excel

  
Hi Everyone.  I'm looking to create a web page that would be used on a local intranet that would use a custom control based on Word and Excel.  I've used code previously to embed it in a Windows application but wasn't sure if anyone knew of any examples out there on how to embed a custom control into a ASP.Net page.

Cannot Display Application Page as Custom Form for Content Type

  

Hi,

I've created a custom content type in VS. In "Elements.xml" file of my content type, I added my custom application page as new form and deployed as feature.

  <XmlDocuments>
   <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
    <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
     <New>_layouts/MyCustom/customForm.aspx</New>
    

How to set default Image to RichFieldImage control in custom Publishing Page layout in Site defini

  

hi,

 

How to set  default Image to RichFieldImage control  in custom Publishing Page layout in Site definition?

 


How can I add a SharePoint Rich text editor in my custom application page?

  

I want to have a richtext editor in my custom application page.

Can I use the richtext editor  bulit-in in SharePoint?

I tried add this code in my aspx but it doesn't render the control but throw a error

<SharePoint:RichTextField ID="DefaultValue" runat="server" ControlMode="New" FieldName="Title"></SharePoint:RichTextField>

Anyone helps?


Page Life Cycle and custom composite server control life cycle

  

Hi,

We are creating a composite server control. It will have few other controls. I am confused where exactly to write the code ie in which event. Is page life cycle and control life cycle follow the same event order?

Could any one please suggest or post articles on this.

Thank You


How to use a custom server control that is defined in inline code in the same page?

  

Hi,

 

I have to use inline code for an aspx page and I need to use a custom server control that is defined in the same aspx page but the control does not get processed as a server control. it gets  returned as is as static html tag.

 

does anyone know how to do that?

 

Thanks,

 

Alaeddin


How can I create a custom control that adds other controls visible to the page hosting my custom con

  

I want to create a custom control where I define several specifically named DIV sections.  The code-behind logic of the custom control will perform operations on these named DIV sections.  The page where the custom control is hosted needs to be able to add named controls to the DIV sections and perform operations on these named controls added to the DIV sections.

Let me explain a little further.  In the custom control, I want to have code behind logic that fires the following Page Event and uses a condition to make one or another specifically named DIV section visible or not:

    < _
    ToolboxData("<{0}:BaseDetails runat=""server""></{0}:BaseDetails>") _
    > _
    Public Class BaseDetails
        Inherits UserControl

        Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
            DetailsNameDiv1.Visible = False
            DetailsNameDiv2.Visible = False
&nbs

Creating Custom Page in Dynamic Data Application

  

To create a custom page I copied the List.Ascx file from the Page templates to DynamicData\CustomPage\"MytableName"

I keep getting the follwing errors mainly in list.aspx.designer

"The type 'L2SDynamicData.List' already contains a definition for GridView1"

"The type 'L2SDynamicData.List' already contains a definition for table1"

"The type 'L2SDynamicData.List' already contains a definition for HeadContent"

"The type 'L2SDynamicData.List' already contains a definition for DynamicDataManager1"

"The type 'L2SDynamicData.List' already contains a definition for UpdatePanel1"

 

There are about 32 of these error types

 

 


HTTPCONTEXT return null in a DLL in a sharepoint 2010 custom application page?

  

am having a application page abc.cs file in a class library and abc.aspx in the _forms folder of 14\template  in sharepoint 2010 env.

also i am having another DLL[ say xyz] which  has  2 classes  and some methods.

now i am accessing a  website page with a  querystring http://servername:4444/hoem.aspx?sid=5353535dsadsaddada

I want to get this query string in the abc's onload event and adding it to the http cookie. Now my reqmnt is i want to access the query string using httpcontext.current.request.querstring["sid"]in the second DLL [xyz].

when  tried to access the request.querystring() thr HTTPCONTEXT throws/returns  NULL .

i wonder, why this httpcontext returns null.

how can i access the querystring().

any help is appreciated

 

 


How to handle login control events when using a custom FBA login page?

  

Thanks to Kirk Evans' blog post that is liberally referenced all over the place, I have managed to get a custom login page working on my SP2010 site and it is pretty great.  The problem that I am having is that there doesn't seem to be anyway to respond to the events that are raised by asp.net login control that is in my page.

The page is inherited from Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage and as a result will error out when I attempt to reference a code-behind .cs file.  My question is, how do I respond to the events being raised by the login control that is in the page so that I can do things like logging successful user sign-ins?


Joseph Ackerman, MCSD, MCP.Net

Can I use a single DynamicFilter control in a custom page?

  

Is it possible to use a single DynamicFilter control in a custom page, similar to the way that I can use a single DynamicControl field in a custom page?  

For example I can do this (I have customized the Edit page to be a wizard with fields like this in different steps) ...

<asp:DynamicControl ID="DynamicObservationDate" runat="server" DataField="ObservationDate" />

But when I do this, nothing shows up on the page.

        Observation Date: <asp:DynamicFilter runat="server" ID="ObservationDateFilter" DataField="ObservationDate" />

Do I need to "initialize" the DynamicFilter somehow for this to work?  

Thank you!



How to use Navigation Hierarchy control with ListView Webpart on a custom web page?

  

Hi,

Here is what i am trying to do with managed metadata and lists.

List name: MyList, it will have 2 managed metadata columns 'Business process' and 'Management model'. I have enabled metadata navigation settings for this list on mentioned columns

I will have a data view webpart mapped with MyList on one of the custom pages. I want to add Navigation Hierachy Control Or equivalent on this custom page which will be based on managed metadata columns 'Business process' and 'Management model'. On the selection of a node from this hierarchy, i would like to filter the ListView on the page.

Is there a way to directly use Navigation Hierarchy that we get on AllItems.aspx page corresponding to List? or any other out of the box method to achieve this WITHOUT custom code?

Thanks and regards,

ranjit


Web page with custom control elements

  

Hello,

I would like to create web page/form with several subforms - means edit for records, e.g.: first page, no problem, data list in gridview with checkbox there I do select two records and press one Edit button, that should open Edit form with two subforms and one Save button - the thing is that I would like to have that subform fully as form designed previously (not just add elements).

In genaral I need to be sure how to make UI controls as class and use them in my actual pages.

 

Thank you.

Yuri


Creating Custom Page in Dynamic Data Application

  

To create a custom page I copied the List.Ascx file from the Page templates to DynamicData\CustomPage\"MytableName"

I keep getting the follwing errors mainly in list.aspx.designer

"The type 'L2SDynamicData.List' already contains a definition for GridView1"

"The type 'L2SDynamicData.List' already contains a definition for table1"

"The type 'L2SDynamicData.List' already contains a definition for HeadContent"

"The type 'L2SDynamicData.List' already contains a definition for DynamicDataManager1"

"The type 'L2SDynamicData.List' already contains a definition for UpdatePanel1"

 

There are about 32 of these error types

 

 


Categories: 
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