asp.net

Accessing TextArea Inside GridView with JQuery BlockUI

This is driving me nuts! I am trying to access a TextArea inside the GridView control. The TextArea is popped up when a button on a gridview is clicked. For some reason the textarea.value always contains " ". <asp:GridView ID="gvCategories" runat="server" AutoGenerateColumns="false" onrowcommand="gvCategories_RowComma...

How can I prevent applicationSettings in the web.config from being inherited?

I have an applicationSettings section in my web.config in my ASP.NET 2.0 web application. This works perfectly for storing values and being able to access them as strongly-typed values. Here is a snippet of my web.config: <configuration> ... <applicationSettings> <MyWebsite.Properties.Settings> <setting name="ExcludedIt...

IIS crash occurs often.. ASP.net app on IIS 6 Win 2003.

I have this ASP.net app running on IIS 6 on win 2003. I get this issue of iis crash very often in the range of every few minutes.. The application is often restarted and loses all the session information. Event viewer shows below information: EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 app_code.soku_afh, P5 0.0.0...

404 Redirect to Sitecore page allows for Extensionless URL

I am using Sitecore as a CMS solution. Recently, we decided to add redirect capability to our website for errors. In Sitecore, I have created two content pages, one to handle Server errors and another to handle 404 errors. I implemented the server error with basic sublayouts without any code behind. On the other hand, the 404 page had a ...

Something really confusing about how roles and membership tables establish a relationship

Hello, I know how to create users and assign them to roles etc, but when I tried to dig a bit deeper into how roles and membership tables are able to establish a relationship between each other, I got totally lost ( BTW – I do know how foreign/primary keys work ;) ) BTW - I've created tables in databases using aspnet_sqlreg wizard ...

OnClientClick and Calling Custom JavaScript Function

I am using the following code to call a javascript function but the OnClientClick expression is never evaluated. <asp:Button ID="btn1" UseSubmitBehavior="false" OnClientClick='moveComment(txtComment_<%# Eval("Container.DataItemIndex") %>)' runat="server" Text="add comment"/> ...

Need a postback handle from a clicked dynamic hyperlink control in ajax.

The scenario...I have a list of dynamic hyperlink controls on an ajax panel that link directly to a WORD doc located on a share. Clicking any link opens WORD client side (I set the file association to do that so the IE browser doesn't try to open it instead). LinkButtons won't work because it doesn't do a direct link to the doc from th...

If authentication ticket also contains information about roles, then why...?

Hello, Q1 – Reason as to why native UrlAuthorizationModule doesn’t understand roles is due to the fact that roles information is stored in managed object implementing IPrincipal interface, to which native modules don’t have access to. A) But if native UrlAuthorizationModule understands authentication ticket, and thus can work in co...

Are there any good tools for integrating GWT with ASP.Net?

Are there any good tools available for using GWT (the Google Web Toolkit) with an ASP.Net server application? The programming model and tools for GWT are quite nice, however, it would be nice if the backend could remain in C#/ASP.Net. Is there currently a good solution available for this? ...

Asp .Net MVC RedirectToAction with absolute URL

I have written an Asp .Net MVC applicaton that runs inside an IFrame. When one of my controller methods returns RedirectToAction(), I want the top browser URL to redirect to the address, not just my IFrame. How would I go about doing this? Because I am running inside another site, I will need to pass an absolute URL to the browser i.e. '...

How to synchronize lifetime of forms authentication cookie and Asp.Net Session?

I am building an Asp.Net web site that uses FormsAuthentication and standard Session mechanism with configuration like that: <authentication mode="Forms"> <forms cookieless="UseCookies" name=".MyAppAuth" loginUrl="~\Login.aspx" timeout="20"/> </authentication> ... <sessionState timeout="20" cookieless="UseCookies" /> It seems that...

MSBuild fails, but building inside Visual Studio works fine

C#, .NET 2.0 I have an ASP.NET website in a solution, with 2 other projects (used as library references). When I build (debug or release) in Visual Studio, everything works fine. However, building with MSBuild fails. This build had been working (it's actually invoked via a nAnt task). The only thing that has changed is that I have a...

ASP.Net Webparts: How to hide a webpart?

In one of the pages in my ASP.Net 3.5 site, I need to hide a specific webpart, as it is not applicable to that page (note: the webparts are defined in the master page). I basically have three webparts within the zonetemplate contained within the wpzGadgets web part zone. The webpart containing the google map control needs to be hidden. ...

asp.net with mysql

I know asp.net with mySQL is possible, but does it work well (fast and stable)? I am looking at a project for a client, they want to stay on mySQL, but they like they idea of going to asp.net from PHP. I can give them a better price by far in asp.net (more productive for me) and keep the project within their budget. BUT, am I going to r...

Web Service Out of Memory Exception while filling ADO.Net DataSet

1) ClientApp makes async call to ASP.Net 2.0 WebService 2) Web service calls SQL Server 2005 stored procedure 3) Stored procedure returns data output, 150MB table Out of Memory Exception is thrown by DataAdapter.Fill(...) while trying to allocate more memory for new rows. IIS Application Pool does not have any Max Memory restrictions o...

ASP.NET Development Server ignoring Browser Culture

I'm trying to implement a simple example of where ASP.NET changes culture. I'm running Windows 7, IE 8, and VS 2008. My Label looks like this: <asp:Label ID="TextBox1" runat="server" meta:resourcekey="Greeting"></asp:Label> I have two files in App_LocalResources: Default.aspx.resx and Default.aspx.fr.resx. In them, I have a string...

Drag & Drop involving accordion panes (VB/ASP)

Hello all, I have an accordion control in ASP 3.5, with multiple accordion panes. For the sake of simplicity, I will only focus on one pane as the problem is pane specific. Using JQuery, I created a draggable function and applied it to my .drag cssclass. On Page_Load, I create a bunch of image objects and assign that class to them, in ad...

How can I execute Javascript function before Page load?

Hi, I am using a hidden field 'Isjsenabled' to detect whether Client's Javascript is enabled or disabled. If Javascript is enabled, Javascript function will be fired and it will set hidden field's value to 1. I want to check the hidden value from server side Page_load. But the problem is Javascript gets fired after Page load. Do you ...

Clear the ASP.net cache for multiple worker processes

We have an ASP.net (2.0) application configured to run with multiple worker processes using the web garden option in IIS. Most of our data is cached and occasionally we have to clear the cache when there are changes to the site. We have a simple page that will iterate through the HttpCache items and clear them. But each worker process ...

Login Control in UpdatePanel triggers outside validations controls - ASP.net

I am trying to have both a loginview and createuserwizard on the same page. I want to separate the two events with an updatepanel. The problem I am experiencing however is that when I attempt to login, the validation triggers for the createuserwizard appear to be fired, even though it is outside the login controls updatepanel. Can s...