Our office is about to finally spend some more money updating the in-house reference library and I suggested that we pick up some more books that focus on Object Oriented Programming/Design from a .NET perspective (which is what we focus in, primarily VB and ASP.NET).
After doing a quick look through our current shelf we seem to only ha...
Hi folks,
I have an ASP.NET application that starts a long running operation during the Event Handler phase in the ASP.NET Page life cycle. This occurs when the end user pushes a button a bunch of queries are made to a database, a bunch of maps are generated, and then a movie is made from jpeg images of the maps. This process can take o...
Does anyone know how to detect in a OnBeforeUnload event that the server side code sent a Response.Redirect? I want to prompt a user to keep them from moving away from a page before it's time, but when the server redirects I it shouldn't prompt the user.
I'm working with legacy code that extensively uses Response.Redirect and I'm not i...
Hi, I have a ShareThis (http://www.sharethis.com) link in the footer of my Masterpage. The code they provide generates the link via Javascript. My site is very simple so far (http://www.quotidianword.com), just a place to put your email. But when the email is entered, there is an AJAX postback and the link disappears! Is there any way to...
I've recently been asked to completely rewrite and redesign a web site and the owner of the company has stressed that he wants the site to be made with the latest and greatest technology available, but to avoid additional costs.
As of right now, I'm torn between looking into a CMS implementation and writing a new implementation with M...
I was deploying an ASP.NET MVC application last night, and found out that it is less work to deploy with IIS7 set to integrated mode. My question is what is the difference? And what are the implications or using one or the other?
...
One of the requirements proposed for an ASP.NET application is that we have Session state disabled globally. (This is not negotiable.)
Another requirement is that we have some means for user authentication. I'm thinking of using ASP.NET's membership provider model.
Is it possible to have user authentication without Session State?
The ...
I have a table that contains three columns.
"UserId" type-nvarchar
"PostAuthorId" type-nvarchar
"Post" type-text
This table will contain "wall" posts like in facebook for each user's page. I am going to use a gridview on each user's page to display the posts. The issue is I want to display them with the latest(most current) post bein...
Has anyone used Component Arts Web.UI controls?
They look like a great set of tools but is it worth the $998 they charge?
...
The obvious issue here is that on refresh a button event is recalled and duplicate posts are created in the database. I have read other questions on this site about the very same issue.
Apparently the answer is for every post create a GUID and check to make sure the GUID is unique? I am not really sure how to implement this.
Does that...
At my place of employment, they have a system that uses VBScript to build fields when loading up a record. The advantage is that it works on various database backends the same way and also makes sure that the record is loaded the same every time. It also allows customers access to make some minor changes to the way the system works in ...
This is just a simple question: how do I exclude a piece of html on an aspx web form from being returned by the server, based on a server-side evaluation?
I'm not talking about a control specifically since they tend to have Visible parameters, but rather just some raw html.
...
Hello,
I am working on a form with a GridView, pulling data from an SQL Express database. The last column will be a Button that I want to be able to change based on what data is bound to that column.
The button will act as an "Enable/Disable" toggle. Basically, if a user is enabled, I want the button to say "Disable" and have the OnCli...
hey everyone,
Has anyone created or read an article on creating a multi-factor login system for asp.net? The ideas would to be a have a security question after the login to validate the user. The security question would be something they would generate. Kinda similiar to the way some online banks do it.
...
Hi, I'm frustrated.
I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.
Is there a way to stop this behavior?
Thank you.
...
Hello everybody,
I want to build something very similar to the "Ask Question" form in stackoverflow,
making some tag fields being added to my event model dynamically.
But I'm very new to MVC and I don't even imagine how to do that, can you provide me an
example or a tutorial?
Thank you, Felipe.
...
I am using sessionstate stored in stateserver in asp.net. I have a link on header that displays users login id.
Problem:
When session expires in stateserver my application still displays loginid and it throws an error when hits code that depends on value stored in session.
Looks like asp.net has no idea when session expires on statese...
I am adding functionality to an ASP.Net webforms application and we've decided that new development will be done MVC with a view to move all functionality over eventually.
Obviously, MVC and WebForms play together rather nicely when it comes to accessing an MVC action via a URL. However, I'd like to display the MVC view within an existi...
Hi,
I am new to MVC pattern, trying to get Userid stored in cookies via common controller file, which I can access throughout the site.
I have FunctionsController as a controller with content as follows.
public static int loggedinUser()
{
return Convert.ToInt32( request.Cookies["userid"].Value);
}
I am unable to request any...
I'm binding an ASP.NET control to the result of a LINQ query. I'd like to HtmlEncode one of the properties of the contained objects before binding to the control, but I want to do it without altering the data because I do a DataContext.SubmitChanges() later on. How can this be done?
Code that won't work:
var ds = (from s in dc.Search...