As that web-standards geek I am, I dislike the default <form runat="server"> that surrounds my entire webpages. I've seen many ASP.NET based webpages that don't have these, so it seems like it can be removed without taking away any functionality. How?
...
Hello,
I am implementing a custom membership provider by inheriting from MembershipProvider. I have my own database schema that is different from the aspnet membership schema.
I do not have any use of the password field and I was wondering how can I override the builtin CreateUserWizard control?
I was unable to find any examples on h...
I have a VS 2005 website that I need to convert to a web application. I don't know if this makes a difference, but I'm actually breaking out part of the website into its own. The part that's going to be on its own is a small subset of the rest of the website. I've created a new web project, copied over all of the pages, and removed al...
I have a large database of users (~200,000) that I'm transferring from a ASP.NET application to a Ruby on Rails application. I don't really want to ask every user to reset their password and so I'm trying to re-implement the C# password hashing function in Ruby.
The old function is this:
public string EncodePassword(string pass, strin...
Is it possible to popup a modal(AJAX) on drop downlist selection.
I have a user control which has a ddl and another usercontrol which has that modal popup.On selection of specific item i need to popup modal.
Modal popup is in another usercontrol.
...
I'm trying to accomplish the following in ASP.Net:
Create a WPF Canvas control
Spin up a WPF Image control and a BitmapImage object
Set the BitmapImage source to a Uri for an image
Add the image to the canvas
When the image is downloaded render the canvas to a new bitmap
My code works correctly in WPF itself, however when running in ...
I Have a Gridview . I wanted to display data from Webservice via Ajax calls in ASP.net Please ,let me know the solution for this. Thanks in Advance.
...
JSON ignores any parameters with null values. So, when I create a string using JsonConverter.ExportToString these properties are missing. Also any integers with null values are replaced with -2147483648
This becomes an issue when I try to deserialize this string (I am writing my own deserializer and not using Json.Import)
What's the be...
When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
Whether or not the assemblies node ex...
I have a method that takes a System.Web.UI.Page as an input and returns some application specific details (what "type" of page it is, if certain items are in the query string, etc...). To run a unit test on this I was trying to create a System.Web.UI.Page item (in the code I am able to just send this.Page).
First Attempt: Serialization...
I'm trying to animate the background for an ASP.Net hyperlink to do a yellow fade on an update panels refresh. So far it works almost all of the time, but occasionally a javascript error is thrown "Invalid Propery value." and it debugs into the jquery color plug-in code to this line...
fx.elem.style[attr] = "rgb(" + [
Math.max(Mat...
I need to dynamically create mathematical expressions in ASP.NET much like:
This
I have seen mimeTeX however, was curious if anyone knew of other solutions? I would like to use TeX without needing LaTeX on the server.
Thank you for your input.
...
Background: I'm creating a very simple chatroom-like ASP.NET page with C# Code-Behind. The current users/chat messages are displayed in Controls located within an AJAX Update Panel, and using a Timer - they pull information from a DB every few seconds.
I'm trying to find a simple way to handle setting a User's status to "Offline" when ...
So I am working on a project which uses ASP.NET. I am trying to call Cache["key"] but the compiler complains about how System.Web.Caching.Cache is "nat valid at this point".
If I call Cache obj = new Cache(); the obj is always null.
I can access HttpContext.Current.Cache - but this doesnt let me specify an absolute expiration and slid...
I have a method thats run on a button click, with 4 labels. What I need to do is update a label after each block of code executes. I've tried threading, updatepanels, etc and can't seem to get anything to work. I thought the timer would work, but it only ticks when you're not inside a method. The code looks something like this:
private ...
Rating control in ajax control toolkit will not raise event if user clicks on current rating star becuase in behaviour js it has checking
if (this._ratingValue != this._currentRating) , so i want to override this method without changing js and building tookit. How can i do it , can i extend rating control and overide RatingBehavior.js or...
I've built a very simple chatroom-like ASP.NET application which displays current Online/Offline users:
I have a Table with a DateTime column used as a TimeStamp. Every time a user causes a Postback or similar Get event, I update the TimeStamp. I want to, on the server, create a periodic process of some sort that I can use to check how ...
I have a web application where im using
WMI connection through asp.net from Computer A(Windows XP) to Computer B(Windows 2003 Server..).
the code is as follows...(and the below code works if the operating systems in both the systems are same otherwise it"s not working...)
ConnectionOptions options = new ConnectionOptions();
options.Use...
I've created an interop for a COM dll via tlbimp and added it to the assembly cache. To use this in an ASP.net page i need to include the following
<%@ Page Language="VB" Debug="true" CompilerOptions='/R:"C:\Program Files\blah\blah\LIBRARY.dll"'%>
<%@ Import Namespace=LIBRARY %>
Why do i need the CompilerOptions directive if it's in t...
I'm trying to apply the same animation to multiple TargetControlID's -- for example, in a modal dialog, I would like to have a cancel button and a little "x" graphic in the upper right, either of which closes the dialog.
Seems pretty inelegant to write two identical animations, one for each of these targets. I'd like to have one <Animat...