Tag Info

New answers tagged

0

If you are looking for upload using server side coode, here's TechNet article for SharePoint 2010, I've taken bits and bobs from it before and should give you a generic idea on how to accomplish your task: http://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx


0

When I run into an issue like this, I create a list of the categories that stands on its own and use it to populate the dropdown. I have a list that shows in the field of Title: Hazardous Waste NonHazardous Waste Universal Waste and others.... This limits user input to only those authorized categories.


0

I have used code like this successfully SPFolder fldr = web.Folders[strLibraryUrl]; SPFile file = fldr.Files[XMLFileUrl]; XmlDocument xmlDoc = new XmlDocument(); byte[] bites = file.OpenBinary(); Stream strm = new MemoryStream(bites); xmlDoc.Load(strm); // Now you can select nodes, loop, or whatever XmlNodeList nodes = xmlDoc.SelectNodes("Files/File"); ...


0

Try this snippet, from here: string site = "http://servername/sites/TestSite"; using(SPSite spsite = new SPSite(site)) { using(SPWeb spweb = spsite.OpenWeb()) { SPFile file = spweb.GetFile(strFileURL); StreamReader reader = new StreamReader(file.OpenBinaryStream()); XDocument xdoc = XDocument.Parse(reader.ReadToEnd()); ...


0

I figured it out by myself. I've added the code below to the OnClick event of my reject-button. protected void Button_Reject_Click(object sender, EventArgs e) { try { SPListItem spListItem = SPContext.Current.ListItem; Hashtable ht = new Hashtable(); ht[SPBuiltInFieldId.PercentComplete] = 1.0f; ...


1

On your success callback 'onGetUserNameSuccess', did you want to auto click the button? If so, replace $("#Button1").val("CLick"); with $("#Button1").click(); Since, your #lblUpdate is a paragraph, you may want to update it as: function lblupd() { $("#lblupdate").html(nm + " " + surname); } Also, use e.preventDefault(); inside your click event ...


0

A possible scenario, if you need to modify the data source programmatically, would be to create a custom Web Part that inherits from the Chart Web Part. Then you can set the values using the properties from the base class by overriding the binding methods. I would highly recommend first adding a Chart Web Part using the SP User Interface, configuring it and ...


0

Have you tried the out of the box chart web part? http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-the-chart-web-part-HA101889216.aspx


0

The page is not fully loaded at $(document).ready, as you expected. Try calling your function like this instead: _spBodyOnLoadFunctionNames.push("getUserName") See this related post for further details.


1

Your custom login logic does not seem to set the FedAuth cookie: SecurityToken token = SPSecurityContext.SecurityTokenForFormsAuthentication( new Uri(SPContext.Current.Web.Url), membershipProviderName, roleProviderName, this.loginForm.UserName, this.loginForm.Password); ...


0

Yes Ajax CollapsiblePanelExtender is fine to use! iv used it enough times! The people who complain are the ones who dont know how to use it! You can do it through either c# or aspx. But you need to have two Divs, one is the header that the user would click (title) and the other is the body that contains the checkboxes. add your label within the header ...


0

I had a problem like that and I solved with a couple of CSS class and lines of JQuery. For example: <ul class="archive_year"> <li class="years">2012 <ul class="archive_month"> <li class="months">September <ul class="archive_posts"> <li class="posts">Article 1</li> <li ...


1

Instead of using CollapsiblePanelExtender of AJAX, use jQuery as in case of AJAX we need to change web.config and other tweaks. You can use default CollapsablePanel control of Jquery or other plugins available.


0

In VS2010, you can use optional parameters with .NET 3.5. See this link for solution. Right Click on the project Go to properties Go to Build Tab Click on ‘Andvanced’ Set language version to ‘default’ Save the project



Top 50 recent answers are included