asp.net

DataView Sort - C#/ASP.NET

I am using the DataView.Sort to sort a column in the dataset. By default, does this assume the data is of type string when it does a sort. If so, how do I make it be datatype aware? EDIT: How does it infer the datatype? I am creating a dataset from scratch ...

Can IIS supporting ASP.NET and LAMP supporting PHP coexist on the same server?

Can IIS supporting ASP.NET and WAMP supporting PHP coexist on the same server? We already have a WAMP stack setup on a Windows Server 2003 box to support some internal PHP applications, and I want to also setup CI Factory on that box which will try to configure IIS to support it's ASP.NET based dashboard. I want to make sure that there...

Visual Studo Asp.net Website Compilation error: Child nodes not allowed

"Child nodes not allowed" seems to be notorious compilation error on Asp.net website if you do some googling. Environment: WinXp, VS2008 and VS2008 SP1, .NET 3.5 SP1 Behavior: create a brand new Asp.net website (not web application), then just build it, you got compilation error "Child nodes not allowed" on the Web.config on line where...

ASP .NET anonymous users not getting stored in database

I'm trying to setup anonymous users in MVC. For some reason it wont store the users in the database. I have added the following in the web.config <anonymousIdentification enabled="true" /> It successfully creates the .ASPXANONYMOUS cookie when i visit the site but doesn't create the user in the database. Is this something i have to d...

Rewrite ASP.NET page output

A little background: I am trying to create a lightweight cookieless database-backed user session using a highly striped down ASP.NET implementation. This site audience will be mobile users connecting via celluar networks, so the page sizes need to be very small. I am not using the .NET session, viewstate, etc. and most page contain very ...

Unique record in Asp.Net SQL

I asked this question previously but the answers weren't what I was looking for. I created a table in Asp.net without using code. It contains two columns. YourUserId and FriendUserId This is a many to many relationship. Heres what I want: There can be multiple records with your name as the UserId, there can also be multiple record...

Obtain the password of ASPNET account

Is there any way to obtain (not change) the password of the ASPNET account on a Windows Server 2003 server? I need to snyc my workstation's ASPNET account password with the one on the server I am trying to connect to. I am trying to trouble shoot the following issue with my ASP.NET application. ...

does showModalDialog interfere with ClientScript.RegisterStartupScript?

I'm showing a modal dialog via "window.showModalDialog(..." which happens in a vbscript function (the page shown is aspx). I'd like to do some resizing of the window based on the number of rows in a datatable that's coming back. So naturally I go to register a startup script that resizes the window based on the number of rows. Well, that...

ASP.NET mixed windows/forms authentication problem with session objects

Hey all, Weird problem here, we're running a few mixed environment web applications, that use Windows or Forms authentication depending on where the user comes from. I'm curious how everyone else might be handling expired sessions to avoid the errors you would get from someone leaving an idle session open for too long and then trying t...

Hard file on the server or binary for sound and image files in SQL with ASP.Net application

I am building an ASP.Net C# web application that will be using lots of sound files and image files. Considering performance, would it be best to store all files in SQL as image data type and retrieve from the database or store/archive the hard file on the server and store the path in sql? Im curious about the pros and cons - other than t...

How can I stop the time from displaying in a GridView when displaying a date?

I have a web application that I am working on(ASP.NET 2.0 & C#). In it, I have a gridview that gets data from an Oracle Database. Some of the data that I need to display is dates. But when the dates in my gridview show like this: 2009-04-02 00:00:00 I'd prefer they show without the time. I'm using the codebehind to get the data, s...

Lock someone to a particular domain

Hello, We have a dll that is a plug-in for a asp.net shopping cart software that customers can purchase. However, we want to lock that dll to a particular domain for security reasons and we don't want them to be able to read that dll or use that dll in another domain they may have. How can we do this? ...

How to register HttpHandler for all subfolders in Asp.Net?

I would like to register an HttpHandler to include all subfolders of a root folder regardless of how far down they are nested. I would have expected the behavior with the below code to do just that but in fact it only includes items directly in the root folder. <httpHandlers> <add verb="*" path="root/*" type="HandlerType, Assembly" /...

IE7 - meta refresh inside an HTTPS IFRAME causes mixed content warning

I have an ASP.NET application that implements keep-alive by using a hidden IFRAME with a refresh header (or meta refresh tag in the page). For many - but not all - instances of Internet Explorer (reproduced so far on IE7 and IE8 beta - but not for everyone!) if you move between two secure pages that both contain this keep-alive IFRAME, ...

asp.net mvc usercontrol caching

Hi Using MVC 1.0 How can i cache a page but not a user control on it. lets say i have a tag cloud on my master page, tag cloud being a user control that i want refreshed only every x minutes. do i need to do [Donut caching][1]? or has it made it to MVC 1.0 ? can it be done in client browser or only server caching ? [1]: http://ha...

.net grid to display rows, and also have option to group by

Hi, Does the gridview have any 'group by' functionality? I need to display a table in the gridview, then allow for sorting on all the database table columns. I also need to be able to 'group by' on some columns. Any examples of this kind of functionality? ...

Polling strategy for an ASP.Net application?

I have an ASP.Net application that needs needs to have some work performed by another machine. To do this I am leaving a message on queue visible to both machines. When the work is done a message is left on second queue. I need the ASP.Net application to check the second queue periodically to see if any of the tasks are complete. Where...

Mono 2.4 error: ' Feature `generics' is not available in Mono mcs1 compiler. Consider using the `gmcs' compiler instead'

Installed Mono 2.4 on Ubuntu using the instructions here: http://www.nabble.com/forum/PrintPost.jtp?post=22841086 When I run xsp and try to run http module (http://192.168.1.6:8080/album.ashx), I get the following errors: Compilation Error Description: Error compiling a resource required to service this request. Review your source fi...

How do you manually databind complex object to templated control like a row in a gridview??

I am struggling with the databinding syntax here. For example I have a data structure like this - public class Course{ public string CourseName {get;set;} public string CourseCode {get;set;} public List<Instructor> InstructorsTeaching{get;set;} } public class Instructor{ public string InstructorName{get;set;} public string Instru...

How to easily use complex HTML "templates" from designer in a library user control in ASP.NET (VB.NET)

I have some HTML that I got from a designer, from witch I made a "template" in an .ascx Web User Control about like below. Now I would like to put it into a library. How can I do this in a nice way (Without concatenating strings etc.) (There should be more parameters) <div style="clear:both;margin-top:50px;"></div> <div> <div cla...