Configure NHibernate Profiler So Can Enable/disable It Without Changing Code?

Mar 2, 2010

I've been trying to follow the directions on the NHProf site but can't seem to make it work. What am I missing?I put a log4net configuration section in my web.config:

<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net/>

[code]...

View 2 Replies


Similar Messages:

Disable RadioButtonList From Code-behind And Enable It Using Javascript?

Jan 28, 2011

I have a scenario where a RadioButtonList needs to be in disabled mode by default and then on some event on client side, say, when a checkbox is checked, it needs to be enabled.

But once I disable it from code-behind, the javascript part of enabling it doesn't work.

View 1 Replies

Create A Button To Enable / Disable A Bunch Of Code

Aug 8, 2015

I am trying to create a button to enable / disable a bunch of code.I would like to use the same button. In the first ''click'' i would like to enable the code (i.e. Play sound file) and in the second "click" to disable the code (i.e. Stop sound file)How can I do that?

View 6 Replies

Web Forms :: Enable Disable Required Field Validator From Server Side (Code Behind)

May 7, 2015

In my web page I have a Checkbox (datatype = tinyint/boolean) and 2 Required field validator (whose visibility is false). I want that when I check(tick) the checkbox, then required field validator visible = true, else not.For this I tried this code on Page_Load as well as on save button click, but it is not working:

protected void Page_Load(object sender, EventArgs e) {
if (ChkComplexPass.Checked) {
Regex4.Visible = true;
Regex.Visible = true;

[Code] .....

View 1 Replies

Nhibernate Configure And Buildsessionfactory Time?

Mar 30, 2010

I'm using Nhibernate as the OR/M tool for an asp.net application and the startup performance is really frustrating. Part of the problem is definitely me in my lack of understanding but I've tried a fair bit (understanding is definitely improving) and am still getting nowhere.

Currently ANTS profiler has that the Configure() takes 13-18 seconds and the BuildSessionFActory() as taking about 5 seconds. From what i've read, these times might actually be pretty good, but they were generally talking about hundreds upon hundreds of mapped entities...this project only has 10.

I've combined all the mapping files into a single hbm mapping file and this did improve things but only down to the times mentioned above...

I guess, are there any "Traps for young players" that are regularly missed...obvious "I did this/have you enabled that/exclude file x/mark file y as z" etc...

I'll try the serialize the configuration thing to avoid the Configure() stage, but I feel that part shouldn't be that long for that amount of entities and so would essentially be hiding a current problem...

configuration code- hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="hibernate-configuration"

[code]...

View 2 Replies

C# - How To Configure Fluent NHibernate To Output Queries To Trace Or Debug Instead Of Console

Jan 25, 2010

How to configure Fluent NHibernate to output queries to Trace or Debug instead of Console?

I'm using MsSqlConfiguration.MsSql2008.ShowSql() but it has no parameters and I can't find anything on Google.

View 3 Replies

Web Forms :: CLR Profiler For IIS - Is There Any Application Similar To CLR Profiler

Jan 26, 2011

Is there any application similar to CLR Profiler that I could use for my web applications?

Or maybe I can just use CLR Profiler for IIS also? But I do not know how to indicate which web application I wan observe.

View 1 Replies

Enable / Disable Logging On?

Sep 15, 2010

I'm trying to create a setup in my ASP.NET website that allows me to enable/disable logging while the application is running at any point. I figure some of you have already done such a thing.

Here's the gist of what i'm trying to do:

if(ShouldBeLogging)
logger.Info("helloooooo there");

So how would you set up the boolean value ShouldBeLogging to be able to be turned on/off while the website is running without getting any serious performance drawbacks(seeing how its going to be accessed frequently)? I was thinking about putting something in the web.config, but wouldn't a change to that kick my user sessions if i wanted to turn it on?

View 3 Replies

MVC :: Disable And Enable Div Section?

Dec 19, 2010

I would like to disable or enable DIV section on asp.net MVC form :

if dropdownlist selected value ="Univ" then I enable div section else I disable div section

the div section to Disable and enable is EnableFacultéOrUfr

[Code]....

javascript function

[Code]....

View 7 Replies

Web Forms :: Textbox Enable And Disable?

Nov 15, 2010

using c# I am entering two types of string in a text box for eg "so-123456" or "12345678" only this two formats are allowed to enter, when i enter only 12345678 i.e, without "so" next textbox in that page should be enabled, if i enter "SO-123456" textbox should be disabled. without any click event i.e, while entering text in 1st textbox if it contains "so" textbox2 should be disabled, if textbox1 contains only integer(123456) textbox2 should be enabled.

View 1 Replies

Disable / Enable Button In Gridview?

Apr 13, 2010

I am using template field in a Gridview. I have a button in that. I also have a method which returns bool. Now I want to disable the button in the gridview if my method returns true. And enable the button if my method retuns false.

View 5 Replies

MVC :: Way To Enable And Disable CSS Based Session Value

Oct 5, 2010

I am rather new to MVC applications, and one thing I am trying to accomplish is enabling or disabling stylesheets based on a Session value.I have stylesheets referenced in my Site.Master page in this manner:

<%=Html.Stylesheet("~/styles/main.css", "string")%>
<%=Html.Stylesheet("~/styles/additions.css", "string")%>
<% if (Session["cssRule"] = "enableCss") { %>
<%=Html.Stylesheet("~/styles/main.css", "screen")%>
<%=Html.Stylesheet("~/styles/additions.css", "screen")%>
<%} %>

So if the 'cssRule' Session value is null, no CSS loads. Currently this is working fine, but it is not exactly what I am looking for. Right now I set the Session value in the Controller when the user logs in, but ultimately I need to set the value of theSession variable depending on if a user clicks the enable or disable button.

View 8 Replies

C# - How To Disable Or Enable Textbox In GridViewRow

Dec 14, 2010

I have a checkbox and a textbox in a GridView (for every row), and I'd like to be able to write some javascript that would enable and disable the textbox depending on the state of the checkbox (checked or unchecked). I guess I'd have to give JS the row index somehow.

View 3 Replies

C# - Enable Disable Tabs In A Tab Container?

Sep 1, 2010

I have a tab container in aspx page and i want to enable disable the last tab in aspx page my tab container is like below

[Code]....

Now for disabling the last tab i used the following in code behind page load:

//tabAdvanceSettings.Enabled = false;

I also want to enable this tab panel on client side when a user uses a shotrcut like Ctrl + Shif + A as shown below but this shortcut only enables the tab not the two user controls ptresent in the last tab. The code for enabling the last tab is :

if (e.keyCode == 65 && isCtrl == true && isShift == true) // Ctrl + Shift + A
{
$find('<%=tabContainer.ClientID%>').get_tabs()[2].set_enabled(true);
}

How can i enable the last tab and also the controls present in the last tab?

View 2 Replies

MVC :: Breadcrumb - Disable And Enable Actionlinks

Feb 22, 2011

I am developing a registration process in an MVC application. The process consists of 4 steps. I would like users to be able to see where they are in the registration process. i.e. I would like them to see a breadcrumb with each step displayed. If a user is on the first step, they should see all 4 steps displayed but only the first step should be enabled. If they are in the second step, they should only see the first and second steps enabled etc. The first link would take them back to the first step. I have considered using 4 action links to implement this. Is this the best way? If so, how do I disable and enable actionlinks?

View 6 Replies

AJAX :: Enable & Disable Tab Panel?

Jan 9, 2010

I have a tab container and three panels

<cc1:TabContainer
ID="TabContainer1"
runat="server"[code]....

In my first panel I have a asp:checklistbox, which is dynamically loaded with items ....

Eg: [Code]....

One checkbox item = "Address"

Second checkbox item = "Work Info"

When User selects and clicks on first Checkbox option Address...the second Tab is enabled

When the User Clicks on Sec Checkbox option Work Info then the third Tab is enabled .else the tabs are disabled

I was working to use JQuery and unable to achieve this

My Jquery Part of the code is like above...looks a little too complicated

View 1 Replies

Enable / Disable Any Record In Gridview ?

Nov 23, 2010

How to enable / disable any record in gridview ?using mssqlI want in my gridview the following will appear ..

Name Course Year Status
Sam MCA 2010 Enable

when i click on enable then record will be displayed in gridview and the enable button will convert into text disable... and when i click on disable then the record will be disable in gridview and enable button will appear ...

View 1 Replies

Web Forms :: Enable / Disable Control With RangeValidator?

Apr 6, 2010

I have a text box, a range validator, and a button. The validator is hooked up and prevents the button from doing a post back if the text is out of the range, however I'd also like to enable and disable the button. Is this possible to do within client-side code?

View 12 Replies

How To Disable Anonymous Authentication And Enable .net Impersonation

Feb 12, 2010

I been strugling with this for 2 days now without comming any closer to solution. I have read 20-30 threads alteast and stil can not resolve this.I have disable anonymous authentication, enable asp.net impersonation.I have added <identity impersonate = "true" />I have added the a user to the security logins that is connected to the database I try to connect tThis is the connectionstring I use:

Data Source=IPTOSERVER;Initial Catalog=Phaeton;User Id=User;Password=Password;errormessage

View 6 Replies

Web Forms :: How To Disable / Enable RequiredFieldValidator / CompareValidator

Apr 26, 2010

How do I validate RequiredFieldValidator/CompareValidator conditionally. I have aded equiredFieldValidator/CompareValidator on date textbox. I want that if textbox1="No" thne it should not validate or compare date text box, if textbox1="Yes" then it should validate.

Is this possible on form submit button or any other way?

View 4 Replies

Web Forms :: Each Loop For Disable/Enable Textboxes?

Sep 2, 2010

I'm trying to set all textboxes on an ASP.NET form to disabled on Page_Load using the following:

[Code]....

View 6 Replies

How To Enable/ Disable Javascript Based On Environment

Jan 18, 2011

I am trying to put in scripts for google analytics in my code. But I want it to run only if the environment is production and not in dev or qa. This javascript runs at page load itself and I am confused how to make it run conditionally. My app is an asp.net app.

Javascript is always confusing to me. There are many other javascripts in the page and I just need to disable this one. Had it been a .net code/function I would check for the environment and conditionally run the function. But I am confused about how to accomplish this type of functionality with javascript

View 4 Replies

Web Forms :: Enable / Disable WebControls Dynamically?

May 10, 2010

I have a webpage that inherits a masterpage. Within the webpage I have the content palceholder and then a table within that that contains all the controls of the page. Like below:

[Code]....

I want to be able to change the fields to readonly if a field in the database for the user says they should have readonly access. I can't seem to find the level to go to in order to loop through the controls of the page to set their access to readonly.

I have gotten down to this level and it seems like it is in the base of this.

WebForm.Page.TemplateControl

View 3 Replies

C# - Enable Disable Button On The Basis Of Grid Row?

Jan 5, 2011

I have a grid control where i am binding list of stickers. On the above of grid , that is out side grid i have two buttons Create Sticker and Void Sticker. Sticker basically have three properties Active , Void and Expired displayed as text in column. There is condition of adding only one sticker at a time. Also if there is an active sticker then user cannot add another sticker until and unless its is expired or void.

So what i want is that whenever my grid is loaded if there is an column with text active the the create / add sticker will get disabled and void will get enabled. I am using the folloing code

/// <summary>
/// Handles the RowDataBound event of the gvSticker control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewRowEventArgs"/> instance containing the event data.</param>
/// <remarks></remarks>
protected void gvSticker_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if (Session["FisherId"] != null)
{
if (e.Row.RowType == DataControlRowType.DataRow)

[Code]....

View 1 Replies

Enable And Disable Calendar Selectable Date?

Jan 28, 2010

I have two days in a list. What I want is to let these two days selected in blue color and is selectable and then I want to disable all other days in the current month to not selectable.

How can I do that? Here is my code:

foreach (courseSession se in lstSe)
{
cldCourseDate.SelectedDates.Add(Convert.ToDateTime(se.nextDate));
}

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved