Tag Info

New answers tagged

0

The aspx markup contains references to content placeholders which should be part of master page. Try this example


1

I think the issue is the value your retriving is not getting it at the correct moment first time round. Thats why on the second postback it would get the correct item value and its loaded within the context properly. have you tried calling the method out of the page load event? so at bottom code just do showStatusAlert(); instead. or use this method ...


1

If your form is hosted inn SharePoint, You can use server object model for this But as per your query you can trying to host the page in your asp.net web forms application, so for this you can use client object model: Use following method to upload document: public void UploadDocument(string siteURL, string documentListName, string documentListURL, string ...


0

I am using for this kind of problem on my custom list form a solution similar to the one shown here: http://sptechytalks.wordpress.com/2013/01/04/part-1-introduction-multiple-attachment-custom-control-uploads-them-in-sharepoint-document-libraries/ The differences are: 1) I am using an IFRAME to host the control for refreshing attached files 2) ...


1

SharePoint 2013/SharePoint Online In .NET Framework 4 was introduced ClientIDMode property that specifies how ASP.NET generates the ClientID for a control that can be accessed in client script. To summarize, since SharePoint 2013 targets .NET Framework 4, ClientIDMode could be utilized that simplifies the access of control in the client side as ...


0

Option 1 is the correct way to do but just change the variable name to something different as it is JavaScript keyword <script type="text/javascript"> var _value= document.getElementById(<%= txtUserName.ClientID %>).value; alert(value); </script> But I prefer to use jQuery which make life much easier. For that add jQuery file in ...


0

In my case , I am using SharePoint 2013 discussion board. Add a content editor webpart/ script editor on the page. Inside the use the javascript/jquery to get the associated class name and change the inner HTML of it to that which you want. Please ensure you have jquery loaded or else add it as below: <script ...


1

Your problem can be solved via JsLink as well as overriding methods from the sp.ui.discussions.js file under the layouts hive. And about maintenability, this file is easy to maintain because you only change the text of the variable "NewDiscussionTitle" var newDiscussionTitle = "Your Custom New Text "; SP.UI.Discussions.HeaderBehavior.prototype.render = ...


1

I did that before, but it was for Sharepoint 2010 (see my blog post). The code I used is the one below. It must be inserted into your masterpage, just before the </head> tag : <script type="text/javascript"> function DefaultUploadOverwriteOff() { if (document.title.indexOf("Upload Document") > -1) { var ...


0

I think uncheking the chekbox will solve all your problem. As if this checkbox is unchecked then user uploading duplicate file will get error about same name of file. And for unchecking the chechbox, see below comments. Writing a javascript directly on upload.aspx file present in layouts/15 folder, but this is not recommended. So in that case you can ...



Top 50 recent answers are included