I've got an existing site I'm taking over, and right now it stores, in a session variable, the id of the currently logged in user (if logged in at all -- otherwise I'm sure it is empty string or null or something).
The client now wants, after someone is logged in, to "keep" them logged in on that computer for an indefinite amount of tim...
Obviously having whitespace in css, aspx and html pages is a great advantage at design time. But is there a way to (a tool that will) clear all the whitespace from all the files and possibly merge javascript and css files in a more optimal way.
I am using asp.net themes so there are quite a lot of separate css files that would be impro...
I seem to be in a never ending tail spin of Linux, or not, Windows or not. Web programming or system programming. Python or PHP.
I'am self teaching myself programming. But it seems I keep being torn about which way to go. Unfortunately it is always seemingly good reasons to get side tracked. You know the whole open source or proprietary...
I have created an HttpCookie in order to share data across a subdomain :
HttpCookie cookie = new HttpCookie("sessionGUID");
cookie.Value = value;
cookie.Domain = ".example.com";
Response.Cookies.Set(cookie);
I carelessly assumed since it is a 'session' cookie (no expires) that it would expire along with my ASP.NET session. Of course ...
After trying to setup my site for Google Webmaster Tools I found that my Custom ASP.NET 404 page was not returning the 404 status code. It displayed the correct custom page and told the browser that everything is OK. This is consider a soft 404 or false 404. Google doesn't like this. So I found many articles on the issue but the solution...
Both Session.Clear() and Session.Abandon() get rid of session variables. As I understand it, Abandon() ends the current session, and causes a new session to be created thus causing the End and Start events to fire.
It seems preferable to call Abandon() in most cases, such as logging a user out. Are there scenarios where I'd use Clear(...
What is the best way to interop with NHibernate 2.0 and ASP.NET 3.5? How can I easily develop a CRUD application?
Is the ObjectDataSource the way to go?
Thank you.
...
I'm fairly new to ASP.NET MVC, and I'm having a little trouble with scripts... in particular, I want to use jQuery in most pages, so it makes sense to put it in the master page. However, if I do (from my ~/Views/Shared/Site.Master):
<script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script>
Then that is literally wha...
Hi, I have a problem. One of the datatable colums value is a string value '001200' for example. When the Excel document creats the value became '1200'. How can I keep a data format as is? I'm working with ASP.NET 1.1.
The part of the code is:
private void lnkExport_Click( object sender, System.EventArgs e )
{
Response.Clear();
Respo...
In past I use dynamic sql and datatable to get data from database.
Such as :
Public shared function GetUsersByUsername(byval username as string) as datatable
dim strSQL as string="select * from
Users where Username= " & username
return dbClass.datatable(strSQL)
end function
And I could use this data such this:
Dim Email as str...
Why don't we get compile errors on inline code errors in asp.net mvc views f.eks
<h1><%= ViewData.Model.Title.Tostrig() %></h1>
The code above will build just fine. Wrong spelling in webform controls will give you an error so I can't see why this isn't supported in asp.net mvc
EDIT:
Luckily there seem to be a fix included in the firs...
Here is the situation. I am creating some graphics (using GDI+) on an asp page running under mono xsp. This works great in my development environment as my development environment is running under a GUI, however when I try running it on a GUI-less server, it fails (I am assuming due to the fact that certain libraries which are required...
I would like to generate some JavaScript on the server side in ASP.Net MVC. Is there a view engine that supports this? Ideally I would like to be able to get JavaScript from an url like:
http://myapp/controller/action.js
I've looked at the MonoRail project, and they seem to have this feature, but it's very lacking in documentation, a...
Does anyone have any examples of using Sqlite with ASP.NET membership? I am building a small "drop-in" type web application and don't want to rely on an SQL database for storing user credentials, etc. Sqlite seems like a good option, and I have been impressed with its performance in Elmah; I wouldn't mind using xml as a data store eith...
I was thinking that i wanted to gain some experience in the new asp.net mvc and some asp.net ajax. So i'd like to get some project suggestions that would suite for this!
Would maybe be fun to create a little bigger project on codeplex, like the storefront project.
...
I have an asp:DropDownList on a page that, due to the 1024x768 development standard can truncate some of the text values in the dropdown (not enough of them, apparently, to redesign the layout ), so I need to display a tooltip of the selected value when a dropdown item is being selected (i.e. when the dropdown is shown and an item is bei...
I'm doing some simple tests (in preparation for a larger project) to call an ASP.NET WebMethod using JQuery AJAX. In my example, my WebMethod returns a simple string. However, when I attempt to call it using JQuery, I get the entire HTML page content returned instead of just my string. What am I missing?
Client Side :
$(document).ready...
I have a situation where I'm populating a gridview with a bound data source, and want two additional rows at the very bottom; one to show the sum of values in the columns and one to show the average of values in the columns. I can quite easily calculate these values by aggregating information taken from the rowDataBound event, but don't...
Improving Web Development Using Virtualization
...
Modifying the HTTP Response Using Filters
...