 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
|
 |
how to create workflows in sharepoint 2007?example pjts also.
|
|
|
|
 |
|
 |
Here[^]
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file.
Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?
modified 14 May '12.
|
|
|
|
 |
|
 |
You need to add a SafeControl entry for the assembly. The webpart should be deployed via a solution package that would make the necessary entries automatically.
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
i have a requement that when ever i click on the edit in the list row it must not redirect to edit form, it must be in the same page
we must use only sharepoint 2010 and the sharepoint designer
need no code solution
|
|
|
|
 |
|
 |
You will not be able to accomplish this with no code. It will require modification of the ecb menu and a customized listview control to allow for in place editing.
There may be some third party controls that have this bulit in but I'm not aware of any.
In 2010 though the edit page is displayed as a modal dialog so you are not navigating away from the current page. Why is this not acceptable?
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
This is possible to do a "no code" solution, but it would probably be a lot of work. You could use SharePoints web services and JavaScript/JQuery to accomplish this. I would suggest using the content query web part to get the list to show on the page. Then after that you JQuery to allow the user to select rows they wish to modify and autopopulate a form (built in HTML or JQuery) with a submit button. When the user presses the submit button call the web service to update or add an item. You could also use JQuery to insert a delete button next to the items in the content query web part so when the user presses a delete button it will call a web service to remove the item from the list. If you do use the content query web part another approach would be to manipulate the item.xsl to automatically render a delete button for you. You could also manipulate other xsl files to create the form and submit buttons. You do have some options to choose from but I do think it is possible. Check this link out.
Chris
|
|
|
|
 |
|
|
 |
|
 |
Hello;
Can you please tell me how can I enhance my client side code of a sharepoint 2010 webpart project?
I'm using the code optimizer and beautifier 'Resharper', it does not suggest any refactoring or change on my code.
My application contains a single html page. Note that there is no head or body subdivision on purpose because the container (of the webpart) sharepoint page already contains that. I did not externalize the javascript into an external folder because there is so few javascript lines that I decided it is not worth it to create a special folder just to put 1 little script in it.
Thanks, Teycir.
Here's the code:
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="AD_RW.VisualWebPart1.VisualWebPart1UserControl" %>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<applet archive="IDactisPCSC.jar"
code="IDactisPCSC.class"
name="IDactisPCSC"
width=0 height=0>
</applet>
<script type="text/javascript">
function GetMyfare() {
var readerName = GetReader();
var set = document.IDactisPCSC.setActiveReader(readerName);
RefreshCardSerial();
}
function GetReader() {
var reader;
var nb = document.IDactisPCSC.getReaderCount();
var i;
for (i = 0; i < nb; i++) {
if (document.IDactisPCSC.getReaderName(i).search( /contactless/i ) != -1) {
reader = document.IDactisPCSC.getReaderName(i);
}
}
return reader;
}
function RefreshCardSerial() {
document.getElementById('PCSCCardSerial').innerHTML = document.IDactisPCSC.getCardSerial();
}
// In order to fire from onload event within sharepoint webpart
_spBodyOnLoadFunctionNames.push("GetMyfare");
</script>
<%--Css externalisée sur le dossier UI--%>
<Link rel=StyleSheet href="UI/WebpartDesign.css" type="text/css">
<div id="Panel" class="Panel" >
<div id="Bande" style="background-image: removed(UI/block_title_large.png);" class="Bande">
<table width="900px" >
<tr >
<td><asp:Label ID="LabelAjoutGarde" runat="server"
Text="Ajout d'une garde"
CssClass="Label"
style="color: #FFFFCC" ></asp:Label></td>
</tr>
</table>
</div>
<table width="900px" >
<tr>
<td>
<asp:Label ID="LabelNom" runat="server" Text="Nom: "
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBoxNom" runat="server" bold="true"
police="arial"
Width="250px" Height="20px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelUF" runat="server"
Text="Unité fonctionnelle: " CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="DropDownListUF" runat="server" Width="450px"
Height="22px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelSecteur" runat="server" Text="Secteur: " bold="true"
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="DropDownListSecteur" runat="server" Width="450px"
Height="22px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelGrade" runat="server" Text="Grade: "
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="DropDownListGrade" runat="server" Width="450px"
Height="22px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelMetier" runat="server" Text="Métier: "
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:DropDownList ID="DropDownListMetier" runat="server" Height="22px"
Width="450px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelMatricule" runat="server"
Text="Matricule: "
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBoxMatricule" bold="true"
police="arial" runat="server"
Width="250px" Height="21px" style="text-align: left"
EnableTheming="True" ></asp:TextBox>
<asp:CheckBox ID="CheckBoxMatricule" runat="server"
oncheckedchanged="CheckBoxMatricule_CheckedChanged" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="LabelCodeMyfare" runat="server" Text="Code mifare: "
CssClass="Label"></asp:Label>
</td>
<td style="text-align: left">
<asp:TextBox ID="TextBoxCodeMyfare" bold="true"
police="arial" runat="server"
Width="250px" Height="21px" style="text-align: left"></asp:TextBox>
<asp:CheckBox ID="CheckBoxCodeMyfare" runat="server"
oncheckedchanged="CheckBoxCodeMyfare_CheckedChanged" />
</td>
</tr>
</table>
<br/>
<table width="900px" >
<tr>
<td>
<asp:Button ID="ButtonSearch" runat="server" Text="Rechercher"
CssClass="Bouton"
onclick="ButtonSearch_Click" />
</td>
</tr>
</table>
</div>
<br/>
<div id="Panel1" class="Panel">
<div id="Bande1" style="background-image: removed(UI/block_title_large.png);" class="Bande">
<table width="100%" >
<tr >
<td>
<asp:Label ID="LabelResultat" runat="server"
Text="Résultat"
CssClass="Label"
style="color: #FFFFCC; " ></asp:Label>
</td>
</tr>
</table>
</div>
<asp:GridView ID="GridViewSearch" runat="server" OnSelectedIndexChanged="GridViewSearch_SelectedIndexChanged"
AutoGenerateColumns="False" DataKeyNames="SameAccountName" EnableModelValidation="True" CellSpacing="5"
onrowdatabound="GridViewSearch_RowDataBound" Style="position: static" Width="100%">
<Columns >
<asp:ButtonField CommandName="Select" Visible="false" />
<asp:BoundField DataField="Username" HeaderText="Nom"
SortExpression="Username" />
<asp:BoundField DataField="Firstname" HeaderText="Prénom"
SortExpression="Firstname" />
<asp:BoundField DataField="Uf" HeaderText="Unité fonctionnelle"
SortExpression="Uf" />
<asp:BoundField DataField="Secteur" HeaderText="Secteur"
SortExpression="Secteur" />
<asp:BoundField DataField="Grade" HeaderText="Grade"
SortExpression="Grade" />
<asp:BoundField DataField="Metier" HeaderText="Métier"
SortExpression="Metier" />
<asp:BoundField DataField="SameAccountName" HeaderText="SameAccountName"
SortExpression="SameAccountName" Visible="False" />
</Columns>
<HeaderStyle CssClass="Grid-header" />
<RowStyle CssClass="Grid-row" />
<SelectedRowStyle BackColor="#99CCFF" />
</asp:GridView>
</div>
<br/>
<div id="Panel2" class="Panel">
<div id="Bande2" style="background-image: removed(UI/block_title_large.png);" class="Bande">
<table width="900px" >
<tr >
<td><asp:Label ID="LabelGarde" runat="server"
Text="Garde"
CssClass="Label"
style="color: #FFFFCC;" ></asp:Label></td>
</tr>
</table>
</div>
<br/>
<table width="900px" align="center">
<tr>
<td> <asp:Label ID="LabelCarteAssociee" runat="server" Text="Carte associée: " CssClass="Label"></asp:Label></td>
<td>
<asp:TextBox ID="TextBoxCarteAssociee" runat="server" Width="250px"
Height="20px" ReadOnly="false"></asp:TextBox>
</td>
<td>
<asp:Label ID="LabelPersonneSelectionnee" runat="server" Text="Personne selectionnée: " CssClass="Label"></asp:Label>
</td>
<td>
<asp:Label ID="LabelContenuUtilisateur" runat="server" CssClass="Label"></asp:Label>
</td>
</tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
</table>
<table width="900px" align="center">
<tr>
<td>
<asp:Button ID="ButtonEnregistrer" runat="server" Text="Enregistrer"
CssClass="Bouton"
onclick="ButtonEnregistrer_Click" />
</td>
<td>
<asp:Button ID="ButtonSupprimer" runat="server" Text="Supprimer"
CssClass="Bouton"
onclick="ButtonSupprimer_Click" />
</td>
<td>
<asp:Button ID="ButtonActiver" runat="server" Text="Activer"
CssClass="Bouton"
onclick="ButtonActiver_Click" />
</td>
<td>
<asp:Button ID="ButtonDesactiver" runat="server" Text="Désactiver"
CssClass="Bouton"
onclick="ButtonDesactiver_Click" />
</td>
<td>
<asp:Button ID="ButtonAnnuler" runat="server" Text="Annuler"
CssClass="Bouton"
onclick="ButtonAnnuler_Click" />
</td>
<td>
<asp:Label ID="LabelDesactivationDate" runat="server" Text="Date de désactivation: " Font-Bold="True"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBoxDesactivationDate" runat="server" Width="175px"
Height="20px" ReadOnly="false" style="margin-left: 17px"></asp:TextBox>
</td>
</tr>
</table>
<br/>
<table width="900px">
<tr>
<th align="left"><a href="javascript:GetMyfare()" title="Rafraichir la carte"><img src="UI/refresh.png" border="0" alt="Refresh" height="12" width="12" />Carte mifare</a></th>
<td>
<div id="PCSCCardSerial" style="font-weight: bolder" > </div>
</td>
</tr>
<tr><td> </td></tr>
<tr>
<asp:Label ID="LabelIdactisResult" runat="server" ForeColor="blue" Font-Bold="True"></asp:Label>
</tr>
</table>
</div>
modified 12 May '12.
|
|
|
|
 |
|
 |
Hi,
Is it possible to create the following thins using sharepoint features:
1) Create sub site
2) Create Web part pages
3) Deploy the web parts
4) Add web part pages in the corresponding pages
5) Create list.
I am thinking to create one solution for above items for deployment purpose.
Can someone please guide me that how I can proceed?
regards,
Vishal
|
|
|
|
 |
|
 |
Of course it is. How do you think team sites, or other templates, are provisioned?
What part of the five items do you need help with? You have to narrow your question before we can help.
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
Hello Vishal,
You can almost do anything you want in the FeatureActivated event, same as you would using PowerShell or Central Admin. First you have to determine your feature's scope. This will determine your Feature's parent in the event handle whether it would be of type SPWeb[^] or SPSite[^]. Then you'll use the methods in these classes to do whatever you want to.
Now for your list:
1) Create sub site => Here is a nice article[^]
2) Create Web part pages => Perhaps you mean this?[^]
3) Deploy the web parts => You can add this directly to your feature, which by the way can be visual and non-visual
4) Add web part pages in the corresponding pages => Here is a sample article[^]
5) Create list. => You can add this directly to your feature
|
|
|
|
 |
|
 |
If it is a one time deal I would suggest using powershell. Most of time I actually build out the steps within a feature because you have intellisense and it is just easier. Then when I am sure that the feature is working, I convert it into a Powershell script.
Chris
|
|
|
|
 |
|
 |
First off, please bear with me. My question concerns more specifically with custom lists, custom code inside Sharepoint 2007. My experience is more with applications that work outside but access data (Client Object Model) in Sharepoint 2010.
At work I was recently tasked with the following request:
- Create a custom announcement board where everyone can create an announcement but only admins and creators can edit it.
- The main list page was going to provide a summary of the details, title and an icon that depicts the type of announcement (gif of a baby if birth announcement).
- Upon clicking on an announcement, a detailed page containing more detail of the announcement and up to 4 pictures will be displayed.
- When entering data the pictures can only be a maximum size.
Here is how I was going to attack this. I was going to create a Custom List that allowed for the addition of Picture columns and all the other columns I required. I would then modify the NewForm, EditForm and DispForm pages to meet our requirements. Picture size would be controlled through Javascript of Jquery on the page. My question to you experts out there is does this sound feasible? Is there a better way?
Thank you for any help
|
|
|
|
 |
|
 |
Create a custom contenttype, derived from Announcement, with the added site columns you need and associate it to an Announcements list.
This should help with the forms: Custom SharePoint List Forms[^]. Although it is for 2010 it can be applied to 2007 also.
Of course this should all be deployed via a WSP.
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
I'm new to Sharepoint so I may not use the correct terminology - please bare with me.
I have a SharePoint 2010 hosted site that I need to stream a video from. The video will be duplicated in several locations and depending on the view's I.P, it should be streamed from a specific location. This is for an intranet Site at Head Office but we don't want all the units to be streaming from H.O so I want to create a conditional stream and have the videos streamed locally.
I would appreciate any help or guidance.
Thanks
|
|
|
|
 |
|
 |
SharePoint is a great application framework but it isn't right for everything. My initial impression is what you are asking to do may be better suited for a different tool, such as ASP.NET, or consider re-evaluating the requirements.
However, you may want to read this http://technet.microsoft.com/en-us/library/ee748607.aspx[^]
Failure is not an option; it's the default selection.
|
|
|
|
 |
|
 |
First of all, your best bet is Silverlight video streaming -even though you can host Flash videos in SharePoint-. If you have SharePoint Server -not foundation- then there should be a web part for hosting Silverlight objects, which you can use to play the videos.
Moreover the video itself shouldn't necessarily be hosted in a SharePoint list- though it can-. If you have access to the underlying IIS you can use the new IIS smooth streaming feature[^], or even host your video anywhere and on any service -including YouTube-. If you have a large number of videos or concerned about performance issues you can even host your file on another server and play it through your SharePoint site. Check this article[^] out.
|
|
|
|
 |
|
 |
Can anyone help me? What I need to do is in a wcf web method I need to iterate a sharepoint list and pass the content out to an asp application in the form of xml. What is the best way to do this. Any code samples would be great!
Thanks,
Steve Holdorf
|
|
|
|
 |
|
|
 |
|
 |
hi,
i want to construct employee portal using sharepoint 2007 ,i need to capture the user ID of the windows user loged into the Portal and use that to enable the employee to request about his own data.
How can this be done with the webarts delivered with the employee portal ?
|
|
|
|
 |
|
 |
I am using console application to retrieve search results in data table. previously this code was working fine with SharePoint search service application. by the time SSA has been replaced with FAST search using a connector.(Connector is having Content source defined in it.)
My issue is my already working code stopped working, i am using Keyword query.
some where on net I found that I need to set
keywordquery.EnableFQL = true
This I did in my code but it didn't work at all.
Looking forward for solution.
Thanks
With Thanks & Regards
Amit Sk Sharma
modified 27 Apr '12.
|
|
|
|
 |
|
 |
hi,
I want to get ip addresss in my ldap provider code its working for moss 2007 but in sharepoint 2010 its giving null value even spcontext object value is also null .
so is anybody have any idea that how to get the ip address in sharepoint 2010 custom provider
|
|
|
|
 |