Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6358361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:21:35+00:00 2026-05-24T23:21:35+00:00

I have a custom web part that I am working on that has an

  • 0

I have a custom web part that I am working on that has an XSL link property that connects it to a XSLT file that runs the web part. I am wanting to create another Boolean field that when checked, the web part will link to another XSLT file. I cannot use the get/set method because this is not a standard web part. I do not have a C# page that is driving this web part. I do have the .webpart file that has all of the values for the properties, and I think that this is where I need to put the code. I am just unsure of how to do this. Any help would be much appreciated. Here is a piece of the .webpart file:

<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
  <type name="Microsoft.SharePoint.WebPartPages.DataFormWebPart, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
  <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
  <properties>
    <property name="PageSize" type="int">-1</property>
    <property name="HelpMode" type="helpmode">Modeless</property>
    <property name="Height" type="string" />
    <property name="SampleData" type="string" null="true" />
    <property name="AllowConnect" type="bool">True</property>
    <property name="CatalogIconImageUrl" type="string" />
    <property name="XslLink" type="string">/home/appbar.xslt</property>
    <property name="AllowClose" type="bool">True</property>
    <property name="Hidden" type="bool">False</property>
    <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
    <property name="TitleIconImageUrl" type="string" />
    <property name="ChromeState" type="chromestate">Normal</property>
    <property name="FireInitialRow" type="bool">True</property>
    <property name="Description" type="string" />
    <property name="AllowMinimize" type="bool">True</property>
    <property name="Xsl" type="string" null="true" />

<property name="ExportMode" type="exportmode">All</property>
    <property name="AllowZoneChange" type="bool">True</property>
    <property name="Default" type="string" />
    <property name="UseSQLDataSourcePaging" type="bool">True</property>
    <property name="ParameterBindings" type="string">
                    &lt;ParameterBinding Name="ListName" Location="None" DefaultValue="MDocLinks"/&gt;
                    &lt;ParameterBinding Name="dvt_apos" Location="Postback;Connection"/&gt;
                    &lt;ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/&gt;
                    &lt;ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/&gt;
                </property>
    <property name="DisplayName" type="string" />
    <property name="NoDefaultStyle" type="string">TRUE</property>
    <property name="Title" type="string">MDock</property>
    <property name="AllowHide" type="bool">True</property>
    <property name="ViewFlag" type="string">0</property>
  </properties>
</data>
</webPart>
</webParts>

This is the bulk of it. I did not want to fill up too much of the page. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:21:35+00:00Added an answer on May 24, 2026 at 11:21 pm

    the .webpart is simply a definition for the web part.The backend code already exists you are simply defining what assembly/class is responsible for processing.

    To accomplish what you are referring to you will need to create a new web part in visual studio that inherits from the DataFormWebPart.

    From this you can then add the additional property and conditional lookup logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a SharePoint web part which has custom properties that the user
I have a custom sharepoint web part that is throwing the following exception: System.Security.SecurityException:
I have a custom memebership provider that has served us well for asp.net web
I'm working on a web application that will have a custom UI for the
Folks, I have a custom WebPart (the ASP.Net variety) that has a property whose
I have a web part that for new and edit functionality for custom list.
In a Publishing site I have web part that has to show news items
I have a custom web part I've built, that I'm attempting to place three
I am developing a custom web part for a project that I am working
I have a simple custom web part with three drop downs that reads from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.