Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

bin_bin1

@bin_bin1
About
Posts
35
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to print a file(could be word, pdf or infopath form) from a URL using c# code
    B bin_bin1

    Hello there, I am trying to print a file(could be word, pdf or infopath form) from URL using c# code. But I always got "The parameter is incorrect" error. The following is the code that I used. WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate(); Process printJob = new Process(); printJob.StartInfo.FileName = @"http://testsrv/test1/Shared Documents/test.txt"; printJob.StartInfo.UseShellExecute = true; printJob.StartInfo.Verb = "print"; printJob.Start(); I am sure the URL is correct. I also tried to download the file to local drive and use the local full file path instead. In that case, it doesn't print and there is no exception either. I am really confused. Please help. My code is running in an ashx handler. I don't know whether that makes different or not. Thank you very much in advance. Bin

    SharePoint help csharp tutorial

  • How to print a file (word doc, pdf or infopath form) from a URL using code?
    B bin_bin1

    Hello there, I am trying to print a file(could be word, pdf or infopath form) from URL using c# code. But I always got "The parameter is incorrect" error. The following is the code that I used. WindowsImpersonationContext wic = WindowsIdentity.GetCurrent().Impersonate(); Process printJob = new Process(); printJob.StartInfo.FileName = @"http://testsrv/test1/Shared Documents/test.txt"; printJob.StartInfo.UseShellExecute = true; printJob.StartInfo.Verb = "print"; printJob.Start(); I am sure the URL is correct. I also tried to download the file to local drive and use the local full file path instead. In that case, it doesn't print and there is no exception either. I am really confused. Please help. My code is running in an ashx handler. I don't know whether that makes different or not. Thank you very much in advance. Bin

    C# help csharp tutorial question

  • How can I add a checkbox column into document library and allow user to select mulitple documents and print them together?
    B bin_bin1

    Thank you very much for your reply. I am using SharePoint 2007 now. How can I associate the form with the default view of the document library? Should I use webpart? Thank you very much Bin

    SharePoint question javascript sysadmin

  • How can I add a checkbox column into document library and allow user to select mulitple documents and print them together?
    B bin_bin1

    Hello there, I am working on the project that need to allow user to select multiple documents in a document library and print selected documents together. I found it is hard to implement. I searched online, but I didn't find any good solution. I saw there is implmenation using jquery to add checkbox column into document library. is there the best way to do it? In the server side code, how can I know which documents are selected? Any suggestion will be greated appreciated. Thank you very much Best Regards, Bin

    SharePoint question javascript sysadmin

  • How to check whether a certain user has add file permission to a list using web service.
    B bin_bin1

    Hello, I am trying to check whether a user has the "add file" permission to a list using web service. Should I use Permissions.asmx or UserGroup.asmx. I searched online. But I could not find a good example to explain how this works. I am using SharePoint 2007. I cannot use SharePoint OM. Thank you so much Bin

    SharePoint tutorial sharepoint

  • How to know whether a SharePoint folder or file exists using url.
    B bin_bin1

    I am using SharePoint 2007. Thank you so much. Bin

    SharePoint tutorial sharepoint

  • How to know whether a SharePoint folder or file exists using url.
    B bin_bin1

    Hello, I want to know how I can check whether a SharePoint list or file exists using url. It is for a windows form client application, therefore I cannot use SharePoint object model. I think I need to use SharePoint web service. However I don't know which web methord that I need to use. The following are example of the urls. http://sharepoint_site/list1/ http://SharePoint_site/List1/abc.txt. Thank you very much Best Regards, Bin

    SharePoint tutorial sharepoint

  • Previous result of a method call is remembered. Is this related with JIT compiler?
    B bin_bin1

    Thank you very much for your reply. The first time when the function is called. The value is supposed to be null. I don't want to populate the value at that time. I cannot post the code here. It is a very big project. The service is SharePoint shared service. In the beginning, the service is not available. I ran psconfig.exe to create the shared service. I will try to repro this with some simple example. Thank you very much Bin

    C# help tutorial question

  • Previous result of a method call is remembered. Is this related with JIT compiler?
    B bin_bin1

    In my code, I use a static method of a class. For example, class name is ABC. The static method name is GetService(). I called the ABC.GetService() twice. The first time it returns null, because the ABC service is not available at that time. However when I call the method the second time, it should return the service, because the service is available already. but the code still retunrs null. If I put a break point before the second time I call the function. I can use code to see the ABC.GetService() returns the service. It seems to me that the code remember the previous result and used it again when it should not. Is there a way to resolve this issue. Any suggestions are greatly appreicated. Best Regards Bin

    C# help tutorial question

  • Ajax in SharePoint 2007. How to make the original error message to show up?
    B bin_bin1

    Hello, there, I am using Ajax in an application page in SharePoint 2007. I found that when there is an exception. Ajax will show a dialog box says " Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.", and the original exception message is not displayed. I know I can use registerpostbackcontrol() function to register the button that causes the exception to make the original SharePoint error page to show up. But I do not want to do that. Is there any other way to make the original SharePoint exception/error page to show up? Thank you very much. Best regards, Bin

    Web Development sharepoint sysadmin help tutorial question

  • Ajax in SharePoint 2007. How to make the original message to show up?
    B bin_bin1

    Hello, there, I am using Ajax in an application page in SharePoint 2007. I found that when there is an exception. Ajax will show a dialog box says " Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.", and the original exception message is not displayed. I know I can use registerpostbackcontrol() function to register the button that causes the exception to make the original SharePoint error page to show up. But I do not want to do that. Is there any other way to make the original SharePoint exception/error page to show up? Thank you very much. Best regards, Bin

    ASP.NET sharepoint sysadmin help tutorial question

  • Onblur event of a textbox cancels onclick event of a button.
    B bin_bin1

    Thank you so much for your reply. My code is just an example. I am working on an application page in SharePoint. I cannot change the design. the button will change position when the validation messages show or hide. I think there are two possible solutions. 1) Make the textbox's onblur event does not cause validation. I don't know how to do that. I tried to add Textbox1.Attributes.Add["onblur", "return false;"]; But it is not working. 2) Delay the validation for 100milli second by using setTimeout method. I really don't know how to do that. Please help me with this. Thank you so much. Best regards, Bin

    ASP.NET help csharp html sysadmin tutorial

  • Onblur event of a textbox cancels onclick event of a button.
    B bin_bin1

    Hello there, I met a problem. I have a textbox, requirefiledValidator and a button on the same row. If I don't put anything in the textbox first and hit the button. The validator is triggered. (The display of the validator is dynamic.) Then I put something in the textbox and hit the button again. But the button's onclick event is not triggered. I figured out the reason. I think the mouse click caused the onblur event of the textbox, then the validator error message is gone, then the button position is changed. So the onclick is not on the button anymore. The sample code is here. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="textbox1" Display="Dynamic" ErrorMessage="RequiredFieldValidator">This field is required</asp:RequiredFieldValidator> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> </div> <br /> </form> </body> </html> Is there a way to make the button onclick event still be fired? I think I can use setTimeout to delay the validation a little bit. But I don't know how to do it. Any suggestion will be greatly appreciated. Bin

    ASP.NET help csharp html sysadmin tutorial

  • ASP.NET web application will not use updated dll file.
    B bin_bin1

    I am working on an ASP.NET web application. It uses a dll file as reference. I updated and rebuilt the dll file. However I found the web application is still using the old dll. I removed the reference and add the reference in again. It won't solve the problem. I also uninstall the dll from GAC, and add the new dll into GAC. However, the web application is still using the old one. I am very sure about that. Because my commmented out method is still getting called. The dll is updated. I used the windows console application to call the dll. It is working. So the dll is updated. I have been working on this issue for whole night and am so confused now. How can I make the web application using the updated dll. I am using VS 2008. The web site is not precompiled one. Thank you so much for your consideration. Please help me out... Best regards, Bin

    ASP.NET help csharp asp-net dotnet visual-studio

  • Help please: Master page of web application in _layout folder in MOSS
    B bin_bin1

    Hello, there, I have a question about Master page of web application in SharePoint _layout folder. I can create a web application in the layout folder and have access to SharePoint Object Model. However I cannot use Master page for my web application. I tried to copy SharePoint default.master to my working folder and put the content of my page into content holder. When I load the page, I got a SharePoint error. Also I tried to use a most simple master page and content page,I still got the same error. My question is how I can use Master page for the web application in the layout folder? Anything that I need to modify? Also how can I use the most recent default.Master in my web application to keep my web application always has the same style as other pages in the SharePoint. Any suggestion will be greatly appreciated. Best regards, Bin

    Web Development question help sharepoint

  • Need help: How to deploy SharePoint web application to another server?
    B bin_bin1

    Hello all, I have created a SharePoint website with several pages and installed features (xml files for the context menu). I would like to know how I can deploy it to antoher SharePoint server? What is the best way to do it? I am new to SharePoint web application. I am using SharePoint Services 2007 and visual studio 2008. Any suggestion would be greatly appreciated. Best regards, Bin

    Web Development question csharp sharepoint visual-studio sysadmin

  • Help Needed: How to deploy SharePoint web application to another SharePoint server?
    B bin_bin1

    Hello all, I have created a SharePoint website with several pages and installed features (xml files for the context menu). I would like to know how I can deploy it to antoher SharePoint server? What is the best way to do it? I am new to SharePoint web application. I am using SharePoint Services 2007 and visual studio 2008. Any suggestion would be greatly appreciated. Thanks a lot. Best regards, Bin

    ASP.NET question csharp sharepoint visual-studio sysadmin

  • Padding-right Problem.
    B bin_bin1

    I don't like Javascript. There are a lot of things are not possible in Javascript. Thank you very much for your response.

    Web Development help question

  • Padding-right Problem.
    B bin_bin1

    Thank you very much. But it is still not working. The text is displayed all the way to the right end. You can try that in an IE browser. I am using IE 6.0. Thank you again.

    Web Development help question

  • Padding-right Problem.
    B bin_bin1

    Hello, there, I have a question about padding-right. I have a text input box. I put an image at the right end of the input box and it is inside the input box. But I don't want the image block any part of the content of the input box. So I put a padding-right in the style of the input box. But when I type text in, the text will still go all the way to the very end of the input box. It seems that the padding-right is not working. Is there a way to fix this problem? The following are some sample code for your reference. Thank you very much in advance. Bin

    Web Development help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups