.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

Categorize many to many field template

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

Hi there

I'm wondering if it's possible to categorise the many to many template to display the values somthing similar to this:

Category 1: Item1 Item2 Item3

Category 2: Item4 Item5

Category n: Item8 Item9 


Mant thanks

View Complete Post

More Related Resource Links

Categorize many to many field template


Hi there

I'm wondering if it's possible to categorise the many to many template to display the values somthing similar to this:

Category 1: Item1 Item2 Item3

Category 2: Item4 Item5

Category n: Item8 Item9 


Mant thanks

Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

how to read a custom dynamic data meta data attribute in a field template

All --Please help.I need to know how to read a custom dynamic data meta data attribute in a field template.I know how to do it in a page template because I have a handle to the meta table on the page.However, I do not know how to get a handle to the meta column at run time in a field template.Can you help?Please advise.Thank you.-- Mark Kamoski

ASP.Net Dynamic Data - DropDownList Field Template with AJAX Cascading DropDown Extension

Hi all,   Have spent hours trying to create a Dynamic Data Field Template holding a DropDownList which is extended by the AJAX Cascading DropDown extension. Final form holds multiple cascading dropdown boxes. User selects Country (Land) then Postcodes, Counties (Provincie) are populated. Once postcode is selected then towns (Plaats) are populated.  The problem I am now facing is that the viewstate for the dropdown lists is not being saved/restored after an insert action or custom validation error. So basically the dropdown lists are being reset to their default values. Some code (if missing parts, just ask and I will post them) - Don't mind the code structures etc... needs some refactoring :) Attribute I created:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Data { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] sealed public class CascadingDropDownParametersAttribute : Attribute { //public string TargetControlID; // The ID of the DropDownList to populate. public string Category; // The name of the category this DropDownList represents. public string PromptText; // Optional text to display before the user has selected a value from the DropDownList. public string

Gridview with a linbutton in the template field

hi,i have a gridview as follows,<asp:GridView  runat="server" ID="gvPO"  AutoGenerateColumns="False"   >    <Columns>                    <asp:TemplateField HeaderText="PO No."><ItemTemplate>       <asp:LinkButton ID="lnkPo" runat="server" Text='<%#Eval("Purchase_order_no") %>' ></asp:LinkButton>   </ItemTemplate></asp:TemplateField>              </Columns>   </asp:GridView>The linbutton shows  Purchase_order_no.  When i clicked on a paricular purchase_order_no., it will navigate to another page with a gridview that shows details of that particular Purchase_order_no..... Pls help

Duplicate field name error, creating new site from custom template

I've made a site that maps the site (with a table of contents) and i export it to another site collection. I'm able to install and activate the solution in the other site collection, however when i'm going to create a new site using the site i've installed as a template it pops an error saying "A duplicate field name Wiki_x0020_Page_x0020_CategoriesTaxHTField" was found." I have no clue what this means. Can anyone help me? Thanks in advance

InfoPath / ActiveX error when using person selector field in Word template off SharePoint document l

I have created an out-of-the-box document library on a SharePoint 2010 site.  I left Microsoft Word Document selected as the Document Template.  I then added a person or group column and a multiple lines of text column to the document library. I then went into Library Settings --> Advanced Settings and clicked on Edit Template, opening the template in Word.  I created my template and added the two new columns to the document.  I did this using the Quick Parts --> Document Property --> [column name] feature under the Insert tab in Word.  I then saved the template back to SharePoint. Upon opening the template or creating a new document from the template, I get the following dialog box: --------------------------- Microsoft Office InfoPath --------------------------- One or more ActiveX controls could not be displayed because either: 1) Your current security settings prohibit running ActiveX controls on this page, or 2) You have blocked a publisher of one of the controls. As a result, the page might not display correctly. --------------------------- OK   --------------------------- I've searched around (I believe fairly extensively) and have not run into anyone else with the same issue.  Some have mentioned a similar error when creating a custom document information panel in InfoPath, and suggested lowered ActiveX security setti

dynamic template field order


I have the following example with adds a dynamic template field to my gridview.  However its being added at index = 0.

I need it at the end of the gridview, which has columns determined by user entry, so they will not always be the same amount of columns.

How do I get this template field to be the last column in my gridview.  I have already tried    columns.Insert(index, mycolname) and I get an "out of range" error message


  Protected Sub rtrv_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rtrv.Click
        Dim bldvw As base, ds As DataTable, dc As DataColumn
 bldvw = New base

        ds = bldvw.bldDynGrd(srCtr.Text, srActiv.Text, srAcct.Text)

        If ds IsNot DBNull.Value Then
            For Each dc In ds.Columns
                Dim bField As New BoundField
                'Initalize the DataField value.

error calling javascript in grid view template field


I am using a asp link button in grid template field which calls a pop up,i need to find the link button's control in cs page.

my link button code

<asp:LinkButton runat="server" ID="hlQName" Text='<%# Eval("QuestionnaireName")%>' OnClientClick

Is there any Way to change the header text of an template field dynamically


<asp:TemplateField HeaderText="Award name" >

i want to Assign the header text from code behind

is their any method or way to do this ??????




Can SharePoint field control have update panel inside a rendering template?


I am creating a custom field control with the following rendering template



SharePoint:RenderingTemplate Id="TestFieldRendering" runat="server">


Dynamic Data Field template edits - Tooltip text, Dynamic Data Page template edits - field sort


I have an ASP.net website build in VB 2010 web dev pro using 4.0 framework.  Its a dynamic data site and I am having some trouble formating some of the field and page canned templates.

Q1: Field Templates - the tooltip code (TextBox1.ToolTip = Column.Description) is within the ascx.vp pages for each of the field templates.  Where can I update each columns description (as the code references) so the tooptip will be column/field specific.  If its not as straight forward as that, I was trying to write an if/else statement because the tooltip code is set at the field type level (decimal, date, etc) and I want it to be column specific.  example;

if column.value = Financial Impact

then  TextBox1.ToolTip = "enter financial impact in whole dollars"

else TextBox1.ToolTip = "next fields tooltip text"



Infopath 2010 form library - add new field to template

I have a new form library - made some changes used quickpublish and all is good.  I then added a new field (Group) using person/group picker - save form and create a new one - the new field does not show in the Form Library columns - how do I refresh the fields I want to show in my sharepoint form library.  Thank you

how to automaticly put user names in a template field



I am using the helpdesk template from microsoft, and when users are requesting a service request I would like to have their name automatically apear in customer field, is there a way to do this?

server windows 2003 r2

sharepoint services 3.0


Eric Hendrickson

How to access the data item(current row) in the field template control?



     How to access the data item(current row) in the field template control? 

How to archieve the field template that can update or insert multiple field value in database table,



How to archieve the field template that can update or insert multiple field value in database table,please? 

Using Quick Parts with document libary, template loses field association when moved

Using Quick Parts with document libary, losing association with columns
Hi, I hope someone can help.  Sorry for length
Office Sharepoint 2007 version with Office 2007

The Situation:
We have a workflow which is used to progress a set of Change Control procedures. This utalises a task list, where as each task is complete, the workflow writes the values gathered from the task forms into a word document.  We have a content type associated with a task list with a corresponding content type created on the document library list to hold the values that users enter.  We also use a word 2007 template which has quick parts added to it and its these quick parts that get populated with the user data as the workflow progresses.  So we can populate a customer change request form for users.  This is all deployed using a feature.

The problem:
In our test environment this works fine.  As the workflow progresses the document library columns get updated with the task list columns data, as expected, which in turn means the word document gets updated with the correct values.  All good!!
However, when we move the whole solution onto out live environment, (we do this using visual studio to package all code and depl
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