asp.net

What is the point of the Lowered* columns in asp.net membership tables?

What is the architectural reason for the column names prefixed with "Lowered" in the SQL schema for ASP.Net membership and friends? Some examples of the columns in question are below: aspnet_Applications.LoweredApplicationName aspnet_users.LoweredUserName aspnet_membership.LowerEmail I see that the lowered columns are indexed, but ...

ASP.NET webforms + ASP.NET Ajax versus ASP.NET MVC and Ajax framework freedom

If given the choice, which path would you take? ASP.NET Webforms + ASP.NET AJAX or ASP.NET MVC + JavaScript Framework of your Choice Are there any limitations that ASP.NET Webforms / ASP.NET AJAX has vis-a-vis MVC? ...

ResourceManager and Unit Testing

I was curious if anyone had any problems creating unit tests around using the ResourceManager. I am using Visual Studio test edition and it appears that the satellite assemblies don't get loaded during the test. When I try to get a resource for another culture, the test always fails and the resource manager always falls back to the def...

How do I chain my own JavaScript into the client side without losing PostBack functionality

So I was reading these Asp.Net interview questions at Scott Hanselman's blog and I came across this question. Can anyone shed some light of what he's talking about. ...

Hiding a queryString in an ASP.NET Webapplication

I have two webapplication, one is a simple authenticationsite which can authenticate the logged in user and redirects him then to another site. Therefore I have to pass ther userId (GUID) to the second application. Currently this is done via the URL but i would like to hide this id. Has anybody an idea how to do this properly? [EDIT]:...

How can I use multiple sitemap file without multiple root nodes

Hi, I'm using a ASP.NET menu control. I'd like the menu to look like this, where link 1 through 10 are in one sitemap file and link 11 through 20 in another. root --link 1 (...) --link 10 --link 11 (...) --link 20 However, sitemap file MUST have a root which I cannot seem to suppress. Any thoughts? -Edoode ...

Why is the DataSourceSelectArguments sealed?

Does anybody know the logic behind making DataSourceSelectArguments sealed? I've implemented a custom DataSource (and related classes) for some custom business objects and custom WebControls. When thinking in filters (like in a grid) I discovered that the DataSourceSelectArguments is sealed. Surely, I'm missing something. (Maybe the log...

interface type method parameter implementation c#

Is it possible to do like this interface IDBBase { DataTable getDataTableSql(DataTable curTable,IDbCommand cmd); ... } class DBBase : IDBBase { public DataTable getDataTableSql(DataTable curTable, SqlCommand cmd) { ... } } ...

Menu Control: How to Make Whole Item Clickable, not Just Text

I have a problem that confuses my users, being that although an item is highlighted (by the hover style) when the user mouses over it, they have to mouse over the actual item text, sometimes quite small compared to the item. Is there a way to make the whole item clickable? ...

Moving to ASP.NET - VB or C#?

We have a large ASP classic code base but I'm looking to do future development in ASP.NET (and potentially in the future port across what we have). The natural choice of language seems to be VB (existing code is VBScript) but am I being too hasty? Does the choice of language, in the long run, even make a difference? ...

Determine when application cache item will timeout?

In ASP.NET, when storing a value in the application cache with absolute expiry is there a method to retrieve the date/time when the item will expire? The application cache item will be refreshed if expired based on user requests. ...

What is the difference between the <%# and <%= opening tags?

While editing an aspx file I found both these opening tags used for seemingly the same thing. Is there a difference and if yes, what is it? ...

Help needed for extending Asp.Net

As most of you would know, if I drop a file named app_offline.htm in the root of an asp.net application, it takes the application offline as detailed here. You would also know, that while this is great, IIS actually returns a 404 code when this is in process and Microsoft is not going to do anything about it as mentioned here. Now, sin...

ASP.NET: Syncing client and server-side validation rules

Are there any easy, smart ways to keep your client and server-side validation-rules synchronized? On the client side we have JavaScript, maybe some kind of framework like jQuery or YUI. On the server-side we have ASP.NET WebForms or ASP.NET MVC. What is validated are things like: Correct e-mail-addresses Correct home-addresses and p...

Force browser to use new CSS

Is there a way to check if the user has a different version of the CSS cached by their browser and if so force their browser to pull the new version? ...

Count images in some folder on WEB server (ASP.NET)

I need to count and check how much of some images is placed in folder od web server. Example- images get names from user_id, and on example I have user_id 27, and my images are: 27_1.jpg, 27_2.jpg, 27_3.jpg... How to check and write to database this thing? Thanks ...

IIS Wildcard Mapping not working for ASP.NET

I've set up wildcard mapping on IIS 6, by adding "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll", and ensured "Verify that file exists" is not checked : on the "websites" directory in IIS on the website However, after a iisreset, when I go to http://myserver/something.gif, I still get IIS 404 error, not asp.net one. ...

CustomErrors mode="Off"

I get an error everytime I upload my webapp to the provider. Because of the customErrors mode , all I see is the default "Runtime error" message, instructing me to turn off customErrors to view more about the error. Exasperated, I've set my web.config to looks like this: <?xml version="1.0"?> <configuration> <system.web> <c...

Is there a way to "align" columns in a data repeater control?

Is there a way to "align" columns in a data repeater control? I.E currently it looks like this: user1 - colA colB colC colD colE user2 - colD colE I want it to look like: user1 -colA -colB -colC -colD -colE user1 -colD -colE I need to columns for each record to align properly when additi...

ASP.NET: How can I determine the transfer rate ?

Can I determine from an ASP.NET application the transfer rate, i.e. how many KB per second are transferd? ...