User Profile

Collapse

Profile Sidebar

Collapse
c83
c83
Last Activity: Aug 8 '07, 11:55 AM
Joined: Jun 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi!
    For dealing with this kind of problems there is a class called Mutex, here is an example:
    Code:
    static void Main()
    		{
    			s_mutex = new Mutex(true,Assembly.GetExecutingAssembly().GetName().Name);
    
    			if (s_mutex.WaitOne(0, false))
    			{
    			Application.Run(new WinForm());
    			}
    			else
    			MessageBox.Show("already an instance of app running!","Attention");
    ...
    See more | Go to post

    Leave a comment:


  • c83
    started a topic Request.ClientCertificate problem
    in .NET

    Request.ClientCertificate problem

    I have a website that is configuret to uses SSL, but Request.ClientC ertificate.IsPr esent is false ?? Why??
    How to determine that the current session uses a certificate??
    See more | Go to post

  • c83
    replied to Referrer problem
    in .NET
    The problem can be resolved if there is a way to add the referer to the response header, like browsers do....
    See more | Go to post

    Leave a comment:


  • c83
    replied to Referrer problem
    in .NET
    After reading this article(http://msdn2.microsoft.com/en-us/library/ms524309.aspx), I tried this:
    Code:
    Response.ClearHeaders();
    Response.StatusCode := 302;
    Response.AddHeader('Location',redirect);
    Response.AddHeader('Referer','http://localhost/webapp/f.aspx');
    Response.Flush();
    Response.Close();
    , but still no result:...
    See more | Go to post

    Leave a comment:


  • c83
    replied to Referrer problem
    in .NET
    I-am using only
    Code:
    Request.UrlReferrer
    , when i try
    Code:
    Request.UrlReferrer.ToString();
    it gives an exception(becau se the referrer is null).

    I think that
    Code:
    Response.Redirect
    doesn't send the referrer , so i-am searching for a method to add it programatically...
    See more | Go to post

    Leave a comment:


  • c83
    started a topic Referrer problem
    in .NET

    Referrer problem

    In my asp.net in page OnInit i do
    Code:
    Response.Redirect("http://localhost/test1/default.aspx");
    and it redirects me to the http://localhost/test1/default.aspx. The problem is that when in this page i try to get the referrer - it is null.
    I tryed this
    Code:
    Response.AddHeader("Referrer","http://localhost/webapp/default.aspx");
    , but it didn't help.
    See more | Go to post

  • c83
    replied to Export data from datagrid to Excel
    in .NET
    This si called Office Automation, google this and you will find a lot of results.

    First you must add a com reference to your project - Microsoft Excel 11.0 Object Library (or other version).
    And here is a piece of code of mine:
    Code:
    Excel.Application app = null;      		
    // change culture information for the current thread  
    System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCulture;
    ...
    See more | Go to post

    Leave a comment:


  • c83
    replied to Internet Explorer and Windows registry
    REG COMPARE can not compare registry files, it compares only registry keys....
    See more | Go to post

    Leave a comment:


  • c83
    replied to Internet Explorer and Windows registry
    Thank you!!! I will try this tomorrow ....
    See more | Go to post

    Leave a comment:


  • c83
    replied to Internet Explorer and Windows registry
    I must say that this is a good idea, but what about this REG application to compare *.reg files??...
    See more | Go to post

    Leave a comment:


  • c83
    replied to Internet Explorer and Windows registry
    I'v tried it but with no succes... have'nt seen nothing that could help....
    See more | Go to post

    Leave a comment:


  • c83
    started a topic Internet Explorer and Windows registry

    Internet Explorer and Windows registry

    I want programaticaly to change the IE security settings for Intrante Sites.
    IE Menu: Tools->Internet options->security(Tab )->Local Intranet ->sites
    i found out that IE stores data in Registry at
    Code:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap
    and there i-am writing keys:
    Code:
    IntranetName  = dword:00000001
    ProxyByPass   = dword:00000001
    UNCAsIntranet =
    ...
    See more | Go to post

  • c83
    replied to .Net pdf viewer
    in .NET
    Yes that-s a good idea, but i-am doing it in Framework 1.1 and there is no such control. :)...
    See more | Go to post

    Leave a comment:


  • c83
    replied to .Net pdf viewer
    in .NET
    Thanks for the reply, i looked and found out that this is not for free..(3 months only).
    I guess there are no free pdf viewers tools for .net....
    See more | Go to post

    Leave a comment:


  • c83
    started a topic .Net pdf viewer
    in .NET

    .Net pdf viewer

    Hi all!!
    I am looking for some free solution in displaying pdf files, in a c# windows application.
    I tryied using Acrobat Reader activeX control, but it has only a Load method that accepts the file path. I need something that would accept a stream or something like that(because i don-t want to store the file on the client machine).
    Any ideas??
    See more | Go to post

  • c83
    replied to ASP.net and excel files
    in .NET
    I don-t have other version of MS Excel, this is why i asked it on the forum.
    I found that many developers uses this method to export a DataGrid to excel...and i try it. But i have not found any information about the compatibility with excel version....
    See more | Go to post

    Leave a comment:


  • c83
    started a topic ASP.net and excel files
    in .NET

    ASP.net and excel files

    some time ago i wrote an asp.net application which generated excel files using Microsoft.Offic e.Interop.Excel . It is working but it takes a lot of time to generate the excel file.
    Yeasterday i modyfied it and i am generating them like HTML files and then send them to the user like:

    Code:
    Response.ContentType = "application/vnd.ms-excel";
    Response.AddHeader( "Content-Disposition", "attachment;	filename=result.xls"
    ...
    See more | Go to post

  • You can create a shortcut of you page, and run it from Windows Sheduler.
    Maby it helps (never tried this :)).
    See more | Go to post

    Leave a comment:


  • c83
    replied to Perl - downloading files - proxy problem
    in Perl
    Thank you for your advice. I -ve solved the problem....
    See more | Go to post

    Leave a comment:


  • c83
    started a topic Perl - downloading files - proxy problem
    in Perl

    Perl - downloading files - proxy problem

    I am using Active Perl, and i-am having problems downloading files from internet because of the proxy.
    The script is workin when no proxy is present, but now it refuses to download files.
    Here is the script:
    Code:
    #use module
    use XML::Simple;
    use Data::Dumper;
    use LWP::Simple;
    
    #test function
    sub test_func
    {
    print "\n Test function starts:\n";
    my $data_file =
    ...
    See more | Go to post
No activity results to display
Show More
Working...