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
N

nitin_ion

@nitin_ion
About
Posts
419
Topics
225
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sitemapnode(breadcrumb) value changes with multiple users
    N nitin_ion

    Hi, I have a user website, having pages Home-->Brands --> Properties --> Designs --> Objects. Each page having its own sets of selection value. Using breadcrumb navigation (sitemap path) in master page, and all the pages of website uses this masterapge. Problem: When there are multiple user logged in diffrent machines, the breadcrumb node value (for a user) changes according to the latest selected value, inside any page (by latest slection of any other user). Example: User A clicked Home-->Brands(Accenture)-->Properties(Accentire Prop).... and in the same time if another User B clciked Home-->Brands(Samsung)-->Properties(Samsung Prop).... Then navigation trail for user A changes(when he selects the Designs(Accenture Des)) to the latest selection by any other user (user B), i.e. Home-->Brands(Samsung)-->Properties(Samsung Prop) --> Designs (Accenture Des). Please help why it happens. CODE:- IN WEB.SITEMAP:

    <siteMapNode title="" description="">
    <siteMapNode url="~/Secure/Home.aspx" title="HOME" description="" roles="*" >
    <siteMapNode url="~/Secure/Properties.aspx" title="Properties" description="" roles="*" >
    <siteMapNode url="~/Secure/Designs.aspx" title="Style Guides Designs" description="" roles="*" >
    <siteMapNode url="~/Secure/Objects.aspx" title="Objects" description="" roles="*" />
    </siteMapNode>
    </siteMapNode>
    </siteMapNode>

    In WEB.CONFIG

    In Master page.master

                    <%# Eval ("title") %>
    
    C# help tutorial

  • PDF ti HTML
    N nitin_ion

    Is there a free library where we can convert PDF to HTML?

    C# html question

  • Change the datetime variable output to a specific format
    N nitin_ion

    My system date date shows 14-oct-14 so when i use a datetime variable it also give date in the same format. I want to change it to some other format 'en-US'. I can do that by

    DateTime.Now.ToString("MM/dd/yyyy"

    ) but then it is in string I want the DateTime it self to return in the specific format and not as string. This is because my SQL date format is different and when i want to compare dates on SQL then i get issue.

    C# sysadmin help

  • Change the datetime variable output to a specific format
    N nitin_ion

    whenever i try to get value from datetime it show system specific format. this i want to change

    C# sysadmin help

  • Change the datetime variable output to a specific format
    N nitin_ion

    I have my system date time format set as "dd-MMM-yy" which outputs datetime as {16-Jun-08 8:30:00 AM} i want to make sure that no matter what the datetime set on system/server datetime always shows it as MM/dd/yyyy i googled a lot with setting culture but none is pointing towards a solution, all are offering solution to convert to string and then change the format but i don't want to change to string instead i want to change the datetime variable output to a specific format any help is apperciated

    C# sysadmin help

  • Create & Download file runtime in MVC
    N nitin_ion

    I have a grid with empid's now if a person selects 2 grid by selecting checkboxes and click on download button 2 files should be offered to download. I know that we can create a file and can send the location of the physical file. But is there a way i can stream the files Download button click is via ajax.

    C# css asp-net architecture

  • Site not working on IE9 for production server
    N nitin_ion

    My site is working on QA and Dev server for IE9 but not for production server. All the servers are windows 2012. can anyone point what can be the probable cause?

    C# sysadmin beta-testing question

  • Printing Bytes to printer in MVC
    N nitin_ion

    so is there a way of doing it efficiently on web [printing bytes directly to printer]

    C# asp-net com json architecture help

  • Printing Bytes to printer in MVC
    N nitin_ion

    even though it runs on server but the printer it picks is local to system and not related to server. what i was asking was is there a better way of doing this instead of using interop's

    C# asp-net com json architecture help

  • Printing Bytes to printer in MVC
    N nitin_ion

    Since it runs on server my only concern is when i run it to print too many pdf t slows down when multiple requests are hit. If there a better way of printing bytes[] to printer

    C# asp-net com json architecture help

  • Printing Bytes to printer in MVC
    N nitin_ion

    The code given works well with physcial files I meant the KB article that code i dont feel is optimized

    C# asp-net com json architecture help

  • Printing Bytes to printer in MVC
    N nitin_ion

    Below code works well for printing PDF when we have physical file. But when we have bytes[] then it will not work. Is there a way we can print bytes[] to printer without showing the print dialog box.

    private static void PrintPDF(string FileToPrint)
    {
    PrinterSettings setting = new PrinterSettings();
    var printerName = setting.PrinterName;

            ProcessStartInfo info = new ProcessStartInfo(FileToPrint);
            info.Verb = "Print";
            info.CreateNoWindow = true;
            info.WindowStyle = ProcessWindowStyle.Hidden;
            Process.Start(info);
        }
    

    There is a Microsoft Knowledge base article on this particular problem. Here in the article they send byte[] to the printer using Winspool API of Windows OS. but i don't feel it is optimized for web. http://support.microsoft.com/kb/322091

    C# asp-net com json architecture help

  • Installing Office Interop assemblies on server
    N nitin_ion

    yes i was asking the wrong way to do it. I am using iTextSharp for converting HTML to PDF but itextsharp is not converting the CSS in the html. do you have idea how to get around this and have an exact replica in PDF from html using itextsharp

    C# question com sysadmin workspace

  • Installing Office Interop assemblies on server
    N nitin_ion

    is the a free toolwhich support conversion of word to pdf

    C# question com sysadmin workspace

  • Installing Office Interop assemblies on server
    N nitin_ion

    but both openxml and docx does not support conversion of word to pdf

    C# question com sysadmin workspace

  • Installing Office Interop assemblies on server
    N nitin_ion

    My web project is using interop to create word document. It works on my system since i have word installed on my system but Server does not have office installed so How can i install Office.Interop.WOrd assembly on server. Should i just copy the interop dll and register it or is there a setup i have to do?

    C# question com sysadmin workspace

  • Showing timezone along with time
    N nitin_ion

    I am changing the timezone and want to display the zone like this 1/14/12 4:52:50 AM PST with the code i am not able to get exactly the output that i want. How can i get time along wit PST in the end

    var timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time");
    var offset = timeZoneInfo.GetUtcOffset(DateTime.Parse(newRX.Header.SentTimeOffset));
    var dto = new DateTimeOffset(DateTime.Parse(newRX.Header.SentTimeOffset), offset)

    C# question

  • Loading and unloading assemblies using reflection
    N nitin_ion

    string fileToLoad = @"C:\Users\nitin.jain\Documents\visual studio 2012\Projects\ConsoleApplication1\ClassLibrary1\bin\Debug\ClassLibrary1.dll";
    string migrationStepsDllPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ClassLibrary1.dll");
    AppDomainSetup appDomainSetup = new AppDomainSetup() { PrivateBinPath = AppDomain.CurrentDomain.BaseDirectory, ShadowCopyFiles="true" };
    Evidence evidence = AppDomain.CurrentDomain.Evidence;

            AppDomain appDomain = AppDomain.CreateDomain("ClassLibrary1", evidence, appDomainSetup);
    
            //WORKING
            Assembly assembly = Assembly.LoadFile(fileToLoad);
    
            //This part works well
            Type type = assembly.GetType("ClassLibrary1.Class1");
            object foo = Activator.CreateInstance(type);
            MethodInfo methodInfo = type.GetMethod("CheckAdress");
            methodInfo.Invoke(foo, new object\[\] { "navdeep" });
            AppDomain.Unload(appDomain);
            Console.WriteLine("App domain unloaded");
            Console.ReadLine();
    

    This code is in console application and it works fine in the sense that it loads and unload the assembly in the domain. But when my console is running and i try to delete the dll it says that dll is opened in console application. So it is locked by it. How can i make sure that after unloading it, also unlocks the file.

    C# csharp visual-studio debugging question

  • polling call to a url
    N nitin_ion

    I want to call a URL for a specified number of time even if there is a timeout exception or any other exception. is there a method in c# which does this?

    C# csharp question

  • polling call to a url
    N nitin_ion

    I want to call a URL for a specified number of time even if there is a timeout exception.

    C#
  • Login

  • Don't have an account? Register

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