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
K

Kannan Ar

@Kannan Ar
About
Posts
93
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Setup global settings with abstract class and reflection to avoid xml configuration file
    K Kannan Ar

    Hi All, I am developing a library component which requires some global settings. Personally I don’t like to maintain an xml configuration file for this. An idea strikes for me that to write an abstract class with an abstract method which can override and set global setting by the implementers of this library. The abstract class will look like something like this.

    public abstract class LibSetting
    {
    public int MaxCount { get; set; }

     public abstract void SetCount();
    

    }

    The end users will implement this abstract class in their application is as follows.

    public class MySetting : LibSetting
    {
    public override void SetCount()
    {
    MaxCount = 100;
    }
    }

    To get the end user setting from my library, I am using following code.

    public int ShowCount()
    {
    Assembly asm = Assembly.GetCallingAssembly();

       IEnumerable types = asm.GetTypes().Where(t => t.IsClass && t.BaseType == typeof(LibSetting));
    
       LibSetting setting =(LibSetting) asm.CreateInstance(types.First().FullName);
    
       setting.SetCount();
    
       return setting.MaxCount;
    

    }

    This will work perfectly. My doubt is that, is it feasible in architecture level of view? I think the performance of read an xml file and loading a class using reflection would be same ( I didn’t test it). So is this a good practice? Kindly advice me on this. Thanks and Regards, Kannan

    Design and Architecture workspace xml architecture performance question

  • Page level error in ASP.NET
    K Kannan Ar

    Then you have to call Server.ClearError to prevent further error processing.

    ASP.NET help csharp asp-net tutorial question

  • How to set folder privilege at runtime using asp.net ??
    K Kannan Ar

    There are several methods to do this. One option is to use forms authentication and set authorization to the folders you want. A quick search on google gives me this link. http://msdn.microsoft.com/en-us/library/ff648341.aspx[^]

    ASP.NET csharp asp-net beta-testing tutorial question

  • Page level error in ASP.NET
    K Kannan Ar

    Ok you implemented the page error event to write a string to output stream. It will fire whenever the page encounter an error. So what is your problem? What you want to attain?

    ASP.NET help csharp asp-net tutorial question

  • How to fix datareader problem?
    K Kannan Ar

    It is not the problem of DataReader. When the DataReader is opened, it will hold the connection exclusively. So you can't execute any sql commands when it opened. The solution is to use a separate connection or use a DataSet. P.S : You need to improve your coding standards.

    ASP.NET help tutorial question announcement

  • aspnet_wp.exe consume al memory, then it's too slow on runtime
    K Kannan Ar

    You can track the issue with performance counters.

    ASP.NET help asp-net database performance announcement

  • Visual Web Studio or Dreamweaver for website layout/design?
    K Kannan Ar

    It depends on your preference. Whatever you do, the resultant html should be neat, simple and follows all necessary standards.

    ASP.NET csharp asp-net design question lounge

  • email
    K Kannan Ar

    One option is to write a windows service which invokes a send mail function periodically. Another option is to create an MSSQL job. If you are using MSSQL 2005 or higher version, you can schedule a job to execute .NET function via CLR stored procedure.

    ASP.NET help tutorial career

  • creating an asp.net discussion web site
    K Kannan Ar

    That number probably an id of the thread in the database. You can create such links using url rewriting. There are many articles in web about url rewriting. MSDN[^]

    ASP.NET csharp asp-net question discussion

  • datasource on asp:dropdownlist is null after a postback
    K Kannan Ar

    It is because you converted the selecteditem to an object which doesn't have the num property. What is projectname.int? projectname is a class? Can you please show the code that you use to bind the dropdownlist?

    ASP.NET design help question

  • Converting a DataTable Column to an Array?
    K Kannan Ar

    Declare arrValues with a specific size. Like this

    Dim arrValues() As Double = New Double(dt.Rows.Count - 1) {}

    ASP.NET help csharp database data-structures

  • Diable the Refresh button !
    K Kannan Ar

    Controlling browser buttons is an idiotic idea. Actually you cant do it with 100% perfection.

    ASP.NET javascript help

  • How to print the table on a page
    K Kannan Ar

    You need to define css styles for printable and non printable data. This can done by css media types. reference[^] To send the page to printer, use window.print() javascript command

    ASP.NET tutorial question

  • How we can do for fast execution the page
    K Kannan Ar

    It is a broad subject to answer in few sentences. Look at the performance optimization[^] search results. There are number of techniques to develop high performance asp.net applications

    ASP.NET csharp asp-net

  • Creating Dynamic Hyperlink in GridView
    K Kannan Ar

    Your html seems ok. %20 means url encoded space. Did you check the values in database? Is there any empty space in url?

    ASP.NET database sql-server com sysadmin docker

  • Contextual help in ASP.Net
    K Kannan Ar

    You can simply do it with javascript. Jquery have some plugins for tool tip help. To use the help text in javascript, you need some server side code to inject help text from config file to page.

    ASP.NET csharp asp-net help

  • Asp.net role management at individual control level ????
    K Kannan Ar

    Are you looking for Login View[^] control?

    ASP.NET csharp asp-net database sql-server com

  • How to disable address bar
    K Kannan Ar

    You can't

    ASP.NET csharp asp-net help tutorial

  • storing data from a .txt file into SQL database
    K Kannan Ar

    Open the file and read content using the classes in System.IO, then insert it into sql server. What you tried to accomplish this?

    ASP.NET database csharp sql-server sysadmin

  • how to store multilanguages(like hindi, gujrati) database in SQL server
    K Kannan Ar

    This forum is for asp.net related questions. So please bear it in mind next time. I think you can store it as Unicode. In sql server, nchar, nvarchar and ntext are support Unicode.

    ASP.NET csharp database sql-server sysadmin tutorial
  • Login

  • Don't have an account? Register

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