asp.net

ASP.NET Custom Validator Client side & Server Side validation not firing

Hi, This has not happened to me before, but for some reason both the client ans server side validation events are not being triggered: <asp:TextBox ID="TextBoxDTownCity" runat="server" CssClass="contactfield"></asp:TextBox> <asp:CustomValidator ID="CustomValidator2" runat="server" EnableClientScript="true" ...

What's the significance of Oct 12 1999?

In the SignOut method of System.Web.Security.FormsAuthentication, the ASP.NET team chose to expire the FormsAuth cookie by setting the expiration date to "Oct 12 1999". HttpCookie cookie = new HttpCookie(FormsCookieName, str); cookie.HttpOnly = true; cookie.Path = _FormsCookiePath; cookie.Expires = new DateTime(0x7cf, 10, 12); What's ...

How to force a 20 minute time-out for sessions?

I'm very confused when it comes to what actually decides the session time-out. The web app needs to allow for a 20 minute "idle time" before logging (or throwing) users out. I've tried different setting on both sessionState and Recycle worker processes in IIS. The time-out remains too short and, as far as my quit-n-dirty, primitive tes...

Adding 'onClientClick' javascript to an ASP.NET Login control

I've got to put a login page from a 3rd party website in an iframe on another website that I'm developing. I need to add some JavaScript to break out of the iframe when the user logs in, but I can't make the login button to execute the JavaScript and do the postback for the login - just one or the other. Here's the code from the iframe'...

[Architecture] Roles for white-label service access.

Okay, I know I'm doing something wrong - but can't figure out a better way. I am developing a website which is going to allow users to setup their own mini-websites. Something like Ning. Also, I have only 1 basic login and access to each mini website is provided (right now) via roles. So the way I am doing this right now is: Everytim...

How can I dynamically change the order of my GridView columns in WPF?

I have two radiobuttons. If I click the first radiobutton I want the column's order to be: AssetName Asset Groups TypeName Iprisklevel If I click the second radio button I want the column's order to be: Groups AssetName Asset TypeName Iprisklevel Here is a sample of my XAML: <asp:GridView ID="dgAssets" runat="server" AutoGe...

obout combobox setValue()

I am using an obout combobox to display color swatches for a product catalog and it's very cool except for one thing. When on the server, I set the .Value property explicity (for a reset) it IS setting on the serverside, but not in the client. For example, I add all my color swatches from Linq, but then add a default setting of "Color....

JQuery not working with Multiview

I am using the MultiView server control in one web page using Update Panel. In its second view, I have a GridView; whose first column is checkboc controls including the header. I want to toggle the data items checkbox based on the header checkbox. For this, I wrote a Jquery function. But the main issue is, When I try to view the page s...

ASP.NET Website installs/updates

I am looking for some ideas on how to offer a installation package for my ASP.NET website. Some things I need to be able to do is read/write Registry keys, get the database(s) information and test the connection and I must be able to overwrite the existing website without an uninstall and update the web config on new versions. I do not w...

Facebook Wall functionality using ASP.Net??? Any Ideas?

I want to create something similiar to a facebook wall on my social site. I want to store the posts in an sql database and that should be rather simple. What I am looking for is a good way to display the posts? I guess I don't even really know where to start, as I can only think of using a loop to display asp:textboxes. Which obviously i...

How to find controls in a repeater header or footer

I was wondering how one would find the controls in the HeaderTemplate or FooterTemplate of an Asp.Net Repeater control. I can access them on the ItemDataBound event, but I was wondering how to get them after (for example to retrieve a value of an input in the header/footer). Note: I posted this question here after finding the answer ju...

Can an ASP.NET HttpRequest ever be null? How about CurrentExecutionFilePath?

We're getting an odd bug in a production server. We have a stack trace, but no line numbers, so I know the method where the bug is, but not the exact line. It's complaining of a "Object reference not set to an instance of an object." Something is null. After looking at the code, the only two potential culprits that I can see are the ...

Add and Retrieve Rows aaded to DataGrid using Javascript ASP.Net 1.1

I am able to add a row by using javascript DOM cloneNode method, Now I would like to read all the Rows of the dataGrid on the Server side. Any Help would be appreciated ...

ASP.NET code inside Google Maps info window

Clarification: Put simply, I'd like to put an ASP.NET UpdatePanel inside the info window of Google Maps. This would mean that users could interact with my application from within an info window, without refreshing the page and without closing the currently open info window. Does anyone know if this is possible? Update: Thank you to...

What is the best way divide content between n columns?

I have read this excellent Multi-column list article, as well as this question on SO. I've come to the conclusion that there is no cross-browser way to turn a long unordered list into n columns of equal length. So far, I have been reduced to multiple-ul solutions like this: //Three columns. string col1 = string.Empty; string col2 = st...

.net code to read email into a sql database

I am looking for some links and/or code snippets that will allow either an asp.net webpage, (or alternatively an outlook add-in) that will allow me to read emails sent to a particular email address, and then parse apart the email message into component parts (i.e. subject, body, attachments etc) and save to my database. The basic subjec...

rbac for asp.net?

Is there an open rbac framework for asp.net? there a few solutions for rails but i cant find a simple rbac system for asp.net. is there something that can be used and extended? ...

Paging in listview control

Can I have some tutorial/sample code of using datapager in a asp.net listview control? ...

ASP.NET 2.0 PageComplete Event troubles and File downloading

I am trying to place an action to happen after an entire .aspx page displays. The "action" is a function that uses the Response object to send a file to the user. More detailed information: I am trying to replicate the behavior of a link on the page, from a sidebar. I.E. I have a link on the main page for the Export action, and it wor...

How do I: Implement a n-level nested gridview ?

I am not the gratest when it comes to implementing UX. I looked around on the internet for an implementation of a nested gridview or nested reapeater control. Most of the demos used an sql datasource object. Nowadays I dont see anyone using an sqldatasource. In my scenario I will be using Object Datasource or would be databinding manuall...