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
P

peshawarcoder

@peshawarcoder
About
Posts
54
Topics
31
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Error with Atlas
    P peshawarcoder

    Thanks! I did what you stated. But it didn't work.

    ASP.NET help csharp asp-net sysadmin

  • web.config error
    P peshawarcoder

    Thanks! I have ensured the single entry of section decleration and definition. The problem occured when one my project coworker backed up the old version of web application and created copy for changes. He created a folder on my local system and bound it to source project. It works ok on his system and other member's system but fails with mine one. Thanks!

    ASP.NET help workspace

  • Error with Atlas
    P peshawarcoder

    I have Microsoft ASP.Net extensions for atlas. When i run my application i get the following error:

    Unknown server tag 'asp:ScriptManager'

    Kindly, help me if you know about it. Thanks!

    ASP.NET help csharp asp-net sysadmin

  • web.config error
    P peshawarcoder

    I have added a section (named 'preliminaryQuoteGeneratorConfiguration') decleration and definition to the web.config file. But when i build the solution it gives me the following error: Section or group name 'preliminaryQuoteGeneratorConfiguration' is already defined. Updates to this may only occur at the configuration level where is defined. (F:\...\TestWebSite\Web\web.config line 12) even though it is declared and defined within this file (web.config) only. Please help me in this regard. Thanks!

    ASP.NET help workspace

  • Dynamically Updating web.config
    P peshawarcoder

    Thanks. I have read and written custom configuration sections programming in windows applications. But it fails to update the web.config. I may review these further. Thank you once again.

    ASP.NET question csharp asp-net announcement

  • Dynamically Updating web.config
    P peshawarcoder

    Hi! How can i update the web.config file from asp.net? Thanks.

    ASP.NET question csharp asp-net announcement

  • Submit button, onClick does not work automaticlly
    P peshawarcoder

    Sorry! the site did not display my contents entirly and correctly. web.config is as under:

    web2.config is as under:

    ObjectAConfiguration class is as under:

    using System;
    using System.Collections.Generic;
    using System.Text;

    using System.Configuration;
    using System.Xml;

    namespace MyApp
    {
    [Serializable]
    public class ObjectAConfiguration:ConfigurationSection
    {

        #region Properties
        \[ConfigurationProperty("property1", DefaultValue = 60.00F)\]      
        public float Property1
        {
            get { return (float)this\["property1"\]; }
            set { this\["property1"\] = value; }
        }
    
        \[ConfigurationProperty("property2", DefaultValue = 1.50F)\]      
        public float Property2
        {
            get { return (float)this\["property2"\]; }
            set { this\["property2"\] = value; }
        }
        #endregion
    }
    

    }

    Problem Area is bellow:

    MyApp.ObjectAConfiguration objAConf= (MyApp.ObjectAConfiguration)ConfigurationManager.GetSection("objectAConfiguration");

    The above did not find the web2.config file and thus objectASection section. Thanks.

    ASP.NET tutorial

  • Submit button, onClick does not work automaticlly
    P peshawarcoder

    web.config is as under:

    web2.config is as under:

    ObjectAConfiguration class is as under: using System; using System.Collections.Generic; using System.Text; using System.Configuration; using System.Xml; namespace MyApp { [Serializable] public class ObjectAConfiguration:ConfigurationSection { #region Properties [ConfigurationProperty("property1", DefaultValue = 60.00F)] public float Property1 { get { return (float)this["property1"]; } set { this["property1"] = value; } } [ConfigurationProperty("property2", DefaultValue = 1.50F)] public float Property2 { get { return (float)this["property2"]; } set { this["property2"] = value; } } #endregion } } Problem Area is bellow: MyApp.ObjectAConfiguration objAConf= (MyApp.ObjectAConfiguration)ConfigurationManager.GetSection("objectAConfiguration"); The above did not find the web2.config file and thus objectASection section. Thanks.

    ASP.NET tutorial

  • Multiple Configuration Files
    P peshawarcoder

    Thanks. I found a lot of links on google and visted all of them. In one looked at the file attribute of appSettings that is used to refer appSettings stored in external file. I have my own custom settings in my custom sections. How to refer those?

    ASP.NET question csharp asp-net tutorial workspace

  • Multiple Configuration Files
    P peshawarcoder

    My asp.net application has web.config file. I have some configuration sections that i want to place in another file say web2.config. How can i use multiple configuratioin files in asp.net? Someone told me to use the 'file' attribute. How to do that?

    ASP.NET question csharp asp-net tutorial workspace

  • Confiugration files
    P peshawarcoder

    Can i use multiple configuration files within a Windows or ASP.NET application? If yes then how? I tried it but application only reads configuration from a single file. Thanks.

    C# csharp asp-net question workspace

  • Configuration files
    P peshawarcoder

    Thanks. Your suggestion to implement my own configuration setting retrieval scheme will help me to a great extent. Did you mean to add configuration sections to the web.config file and provide code that my objects use to get information from their respective configuration sections in the web.config file. (I have already done this.) But i want that there should be a separate configuration file from which objects instantiated from the classes in the class library get thier data.

    C# question workspace

  • Configuration files
    P peshawarcoder

    Hi! I have a project say 'project1'. I have added some configuration sections to app.config file. The configuration sections contain initialization data for various objects. The objects read those configration information to initialize themselves. It works correctly. But when i create a class library of this project and add it to a web application the objects become unable to read thier configuration data from app.config file. So when i add that data to the web.config file it works fine. But i want my objects be able to read configuration data from the app.config file. How can i do that? Thanks.

    C# question workspace

  • Explorer is corrupted
    P peshawarcoder

    When i install windows-xp on pentium-4 HT, 865 GBF main board and all drivers the explorer corrupts. What is the problem and remedy? Thanks.

    System Admin question help

  • NHibernate
    P peshawarcoder

    The contents a pasted in the first post were completely appeared there. I tried it again to enable the viewer interpret the message. But agin the same hell occured.

    C# database sql-server sysadmin workspace

  • NHibernate
    P peshawarcoder

    Hi! I have MS SQL Server 2005 installed on my system. I am using NHibernate to interact with my database named 'BRUSDB'. I have set the following configuration for nhibernate:

    when i run the program The type initializer for 'NHibernate.Cfg.Configuration' threw an exception: 'System.TypeInitializationException' at line: Configuration cfg = new Configuration(); If any one has know then kindly guid me. Thanks.

    C# database sql-server sysadmin workspace

  • NHibernate
    P peshawarcoder

    Hi! I have MS SQL Server 2005 installed on my system. I am using NHibernate to interact with my database named 'BRUSDB'. I have set the following configuration for nhibernate:

    when i run the program The type initializer for 'NHibernate.Cfg.Configuration' threw an exception: 'System.TypeInitializationException' at line: Configuration cfg = new Configuration(); If any one has know then kindly guid me. Thanks.

    C# database sql-server sysadmin workspace

  • Regular Expression
    P peshawarcoder

    Thanks.

    Web Development regex xml

  • Regular Expression
    P peshawarcoder

    Thanks to all bodies. I found the solution myself. Regular Expression is as under: (?:)(.*)(?:)

    Web Development regex xml

  • Regular Expression
    P peshawarcoder

    I hav Input String as under: Inside XML I require the following Result: Inside XML I need regular expression for this. Thanks.

    Web Development regex xml
  • Login

  • Don't have an account? Register

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