.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

Send To function needs checking out of all copies?

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
I have set up two document libaries: for both check out is required for editing documents. I made a custom destination for the send to command from document library A to document library B. I created a document in library A and have sent it to document library B: so far so good. Now I am editing the original source document in document library A. After my edition, I checked it back in document library A. I try to send it back to document library B, but this fails: "Copying to the destination did not complete successfully". After investigating the log files (cause the error message is very unclear: it doesn't work to copy, but why is a mystery), I found out that the document in document library B needs to be checked out. So I checked out the copy in document library B, tried again the send to from document libary A to B and now it succeeds. My question: is this behaviour as expected? Because if you need to check out the copies first before being able to do the send to function, it will become very annoying if a certain source documents has been copied to various destinations. Moreover, the error message is very unclear, so it won't be very clear for end-users why this copy fails.

View Complete Post

More Related Resource Links

How to send parameters to the AJAX callback function


I need to send som parameters to the callback function of my AJAX call, how can i do that:



function DoSomething(id, textbox1)
  AjaxHandler.FindSomethingInDB(id, Callback);

function Callback(result, eventArgs)
  // Here i need to know the value of textbox1 from the function "DoSomething"


How to delete a link of "send to -> existing copies" in sharepoint



I'm trying to delete an unused link from the selection list that appears in the update copies page . How do I do that?



Using the "Send To" function to copy SSRS reports (.rdl) from one document library to another

We are trying to use the "Send To" function to let users get copies of SSRS reports, but still retain the ability to roll out changes by updating the original.  This would help us have "one version of the truth" but still have the ability to copy reports from one SharePoint site to another.  One reason to have the report on multiple sites is to give users the ability to set default values for the parameters.  IT creates one copy and the users configure it to meet their own needs.

Copying the file using "Send To" works.  However, it loses the data source link which effectively kills the copied report.  We have tried this in various forms of permissions and sequences, but experience the same issue consistently.  Obviously, one could re-enter the data source link, but that is not optimal.

We saw the same behavior when we copied the report out of Windows Explorer from library to another.

Is this is a known issue?  Can it be fixed?  If so, how?

How to send C# double array to VC++ ActiveX COM Dll function.



I am using VC++ ActiveX dll in C# windows Application. ActiveX COM dll code is build using Visual C++ 6.0 and I have source code to update.

I want to create one method in ActiveX dll  accepting double array as an argument and invoking it from C# application.

I tried creating ActiveX method [GetData(double FAR* dStartPt, long nSize) ]. The corresponding AXInterop Dll in C# application shows

[GetData(ref double  dStartPt, int nSize) ] signature.

By this I am able to send a first element as ref, and tried to access other elements of array by  [dStartPt] incrementing (I think this is not right.) but it get only first element right and other zero.

could you please tell me where I am wrong. OR  information about sending array from C# to ActiveX.

[I search for SAFEARRAY but could not  add reference to C# project, and Activex Dll is developed long time ago.]



Send Email from SQL Server Express Using a CLR Stored Procedure

One of the nice things about SQL Server is the ability to send email using T-SQL. The downside is that this functionality does not exist in SQL Server Express. In this tip I will show you how to build a basic CLR stored procedure to send email messages from SQL Server Express, although this same technique could be used for any version of SQL Server.

If you have not yet built a CLR stored procedure, please refer to this tip for what needs to be done for the initial setup.

Content page control passes as argument to javascript function


Here is the content page:


<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="JavaDynamicCopyValue.aspx.cs" Inherits="JavaDynamicCopyValue" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript" >
 function copyValue(input, output )
   ouput.value = input.value;
   return true;
 <asp:TextBox ID="txt1" runat="server" onchange="copyValue(this,document.getElementById('<%=txt2.ClientID%>'))"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="txt2" runat="server"></asp:TextBox>


I got a javascript run time error says output is undefined. if I view source of the page, the txt1 markup became:

<input name="ctl00$ContentPlaceHol

How to turn off optimistic concurrency checking?


I have run into a problem with optimistic concurrency in my dynamic data application (where all relevant settings are at their default values); when I try to update or delete one of my tables, I see the following error:

 Exception type: ChangeConflictException
 Exception message: Row not found or changed.

I am the only user of my database at the moment, so I can guarantee that the data both exists and has not been changed outside the application!

Various forums have suggested that the way to deal with this is to set the column attributes so that the concurrency checking is disabled; i.e.

[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropSurname", DbType="NVarChar(255)", UpdateCheck=UpdateCheck.Never)]

However, to do this manually through the Visual Studio designer will take me hours (I have a lot of tables) and if I then change the schema of one of the tables in the DB, won't I then have to do it all again?  I've tried editing the .designer.cs file directly but my changes are subsequently overwritten (as expected).

All suggestions gratefully received!

Ed Graham

Send object from one page to another



I want to create object in 1.aspx, and then send it to 2.aspx. This methods are bad, because:

1)Send object with url, like this:


This is not confidential.


Session["field1"] = "12345"; // set
Object foo = Session["field1"]; // get

This is bad too, because in 2.aspx this fields send to textboxes, and if user go to 2.aspx without 1.aspx, he'll see old data. 

connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly.


I dont have the SQL EXPRESS installed instead I have SQL Standard Edition.

 I have two SQL Server instances installed.

 1- UserLT (this is sql 2000)
2- UserLT\SQL2005 (this is SQL 2005 named instance)

But when i try to add a database to my VS website project I get the following error:

Connection to SQL Server files (*.mdf) require SQL server express 2005 to function properly. please verify the installation of the component or download from the URL: go.microsoft.com/fwlink/?linkId=4925

I went in Tools>Opetions>DataBase tools>Data Connection>Sql Server Instance Name (blank for default)

and changed the "SQLEXPRESS" to "USERLT\SQL2005".

But I still get the same error message. Any ideas how i can resolve this issue?

Public Shared function doubt????

I am using VB.net/ASP.NET and SQL Server 2000 for a web application.

For populating the dropdowns, I wrote a Public Shared function LoadDDL(), in which I pass the dataset and dropdown name to set.

I have my doubts that this function will produce unexpected results for concurrent users. And will mix the results among sessions because it is a Shared function.

I am confused here. Is it the right way to go?

Please advice. Thanks in advance.


How to send an email with information in query string


First I will say I googled (Binged to make Bill happy) for this but could not find anything, perhaps I am not stating what I need correctly;

I have a website that a customer creates orders (for a printing company) and after the order, I would like to email the customer a link to view the status of their order;

I need to send the CustomerID in the link so on the returning page if a CustomerID is detected in the querystring, I "auto login" the client and open the "Dashboard" for the order page for that customer.

Can anyone point me in the right direction as to how to send the link and how to parse the querystring to get the values from the link;

Thank you if you can point me in the right direction.

Security negotiation failed because the remote party did not send back a reply in a timely manner. T



Dear All i have created one simple service

like this

namespace WcfService2
        public class Service1 : IService1
        public string ShowEmpName(string strFirstName, string strLastName)
            return strFirstName + strLastName;

after executing in .net command promt i got 2 files

service.cs & output.config

after that i create one class file like this

namespace WcfService2
    public class clientcs

        static void Main(string[] args)
            Service1Client client = new Service1Client();
            string strResult = client.ShowEmpName("Pradeep", "Deokar");

Send SMS

Hi All,
I want to send SMS from my application i have tried alot but i don't fine any solution.Please help me out i really need this.I don't want to use any third party webservice or any third party tool like simplewire,i want to create my own web service,I don't expect any code from anybody but i will be very thankful if anybody share the logic behind this.I am working as vb.net developer but i haven't use mobile toolkit.Kindly give me the direction where i could start.
Please reply,i really need this.
Thanx in advance,

How to send bulk sms from asp.net


Hi experts,

I want to send and receive sms in my asp.net website.I am currently targetting users in India.I may need to send the same sms to thousands of users at the same time.How can I achieve this?

Thanks in advance

Trim function in C Sharp

How do i use "trim" function in C Sharp? I have a string and i want to strip off spaces from the end of the string. Any idea how do i do it??


Toolbox: Create Graphs, Send E-Mail, Spell-Check, and More


Turn boring data into stunning graphs, create, parse, send, and receive mail messages from code, and more.

Scott Mitchell

MSDN Magazine August 2007

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