Used the javascript option but there is no use. It remains the same. I called the javascript function in the clientclick event of the button and gave the following line. document.getElementById("LinkButton1").disabled=false; Thanks Maheshkumar B
mahesvs
Posts
-
Problem in using Response.BinaryWrite and changing controls -
Problem in using Response.BinaryWrite and changing controlsHi, I have a button which needs to download the file, simaltaneously it has to enable or disable the linkbutton on a click event. I went for the following code which never works for me.. The problem is there in writing the file in response. Any idea is highly valuable. Thanks in advance.. Given the code below.. ---- LinkButton1.Enabled = false; System.IO.FileStream fs = null; fs = System.IO.File.Open("c://4377.doc", System.IO.FileMode.Open); byte[] btFile = new byte[fs.Length]; fs.Read(btFile, 0, Convert.ToInt32(fs.Length)); fs.Close(); Response.AddHeader("Content-disposition", "attachment; filename=4377.mpp"); Response.ContentType = "application/octet-stream"; Response.BinaryWrite(btFile); Response.End(); ----------- Thanks Maheshkumar
-
integrating 'Microsoft office project' Dcom with asp.netHi, I developed a webservice with a web method integrating with Microsoft office project and it reads all the tasks and resources inside it with the help of the DCOM 'Microsfot project basic'. It is working fine when i hosted it in IIS in XP but having the issue while hosting in IIS windows server 2003. I am getting the following error when i open the file and it get resolved after giving the enough permission in DCOM security and restart the server but it was avail only for the first time, when i tested it for the second time that shows me the same error. Given below the error, Kinldy help me out in this. System.Runtime.InteropServices.COMException: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Microsoft.Office.Interop.MSProject.ApplicationClass.Quit(PjSaveType SaveChanges) at Service.CheckProject(String projectID) in C:\vcclient\App_Code\Service.vb:line 41 -- ---------- Private gobjProjectInstance1 As Microsoft.Office.Interop.MSProject.Application gobjProjectInstance1 = New Microsoft.Office.Interop.MSProject.ApplicationgobjProjectInstance.FileOpen(FileName) ---
-
Hosting Webservice in Windows server 2003 IISHi, I have webservice which internally communicates with Microsoft office project using Com component. I retrieve all the tasks from the .mpp file and updates in the database. when i tested in xp, it works fine by running in visual studio and iis but have issue while hosting in windows server 2003. I google out and found i been shortage of giving permissions in dcom, so i gave the permissions for network service account in DCOM but is of no use. Given below the error, Kinldy help me out in this.. System.Runtime.InteropServices.COMException: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Microsoft.Office.Interop.MSProject.ApplicationClass.Quit(PjSaveType SaveChanges) at Service.CheckProject(String projectID) in C:\vcclient\App_Code\Service.vb:line 41 Private gobjProjectInstance1 As Microsoft.Office.Interop.MSProject.Application gobjProjectInstance1 = New Microsoft.Office.Interop.MSProject.Application gobjProjectInstance.FileOpen(FileName) --- Thanks mahe21.tri
-
Socket ErrorHi all, I am transfering a 200mb data from my socket program to the client and i have the following error during execution. I guess it because of the huge data but am not sure in rectifying the issue. I have given the error below "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full" Thanks Maheshkumar B
-
Update panel with response.writehi, I have a gridview in my page which has the linkbutton as template. I used rowcommand to process in the codebehind and this will download the mpp file to the server. I have an isssue here because am using response.binarywrite in the method. When i googled out i came to knw this can be resolved by adding the control in postback trigger but the control am using is the linkbutton template control in the gridview. Kindly let me know how to pinpoint this control in the trigger. Thanks Maheshkumar B
-
Debuging is not working in visual studiosorry i forgot to post, It is a web application.
-
Debuging is not working in visual studiosorry i forgot to post, It is a web application..
-
Debuging is not working in visual studioHi I have visual studio 2005 installed in my system and Windows Vista home OS. It is working fine but i cannot debug in the IDE though i gave the breakpoint and run the program in start debugging mode. Your suggestions are highly valuable. Thanks Mahe
-
Protecting the cd from taking copiesHi, I want to protect my cd to take a second copy or even if they take a copy the application should not work. Looking forward for your reply. Thanks Maheshkumar B
-
Integration of MS Project with .netHi, I wanna change the project work timings of microsoft project using .net. Am in need to change holidays of the project from saturday,sunday to wednesday. Please help me out in this. Thanks Maheshkumar B
-
Globalization/LocalizationI wanna include the images in my windows form where am doing globalization. Normal Label,textbox values are working perfectly but am clueless abt including image