asp.net

Convert HTML website with Facebox to .NET for form handling

My website was designed without any backend in mind. Facebox was the chosen plugin for the screen pops for features like logging in, registering, searching, etc. What is the easiest way to convert this to .NET? I don't care if it's web forms or MVC (I suppose I would prefer MVC). Most of the Facebox div's are in separate .html files. For...

How to fadeOut a label inside a update panel with jQuery in Asp.Net?

Hi guys, I have this label that i want to fadeOut after button event clicked. I am using a MasterPage. And the Script Manager is declared on MasterPage. In Defaulst.aspx i have: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register ...

ASP.NET on cloud server

My website is running quite well and serving lacks of pages on daily basis. We want to add one more web server to share load on server at heavy traffic times. Instead, can I go with Amazon Elastic Compute Cloud (EC2) or any other cloud service as an alternative solution. In cloud server environment, need I to install multiple instances...

What is the preferred method to manage a timed event with a Web application?

I'm designing an ASP.NET 4.0 Web application where administrators may create an auction with an expiration. The expiration time would be stored in a database. How can I ensure that the auction ends at the predetermined time, considering the fact that an application instance may not be running when it is time? The application will be host...

IIS, Session State and Virtual Directories

I've created a web site with ASP.NET 2.0 and I'm using a session variable to determine if a user has filled out an age verification form. Everything works as expected (I can read the session variable on all pages) until a user goes to a virtual directory. When they do so, the page can't read the session variable. After much research, I'...

ASP.NET Repeater Eval

I trying to execute the follow code in .aspx page: <asp:Repeater ID="rptComentarios" runat="server"> <ItemTemplate> <% if (Convert.ToInt32(Eval("int_tipo")) == 1) { %> <div class="resp"> <div class="top"> </div> <di...

Asp.Net 4.0 Profiling on IIS7

New to both Asp.Net 4.0 and IIS7 deployment. I am having a runtime problem with my application. Basically certain pages are not loading, also looks like a memory issue related to certain calls etc. What are some of the tools and techniques for profiling/debugging Asp.net 4.0 when deployed on iis7. I am just looking for a way to get the...

How to create a login experience in asp.net like Sharepoint has?

We use Sharepoint 2007 as our internal portal. I'm currently developing a custom app (asp.net MVC2) and I've been asked to have the login process mimic Sharepoint, where a user is initially logged in using SSO but then can opt to logout and provide different credentials. Any blogs/guides on how to do this? UPDATE: Thanks to reflector...

ASP.NET Long Task Hangs Other Pages?

I'm generating reports on the fly using the great SpreadSheetGear tool. At first things were great because the reports were simple and done in under 1 second. Now I'm at more complex reports and they are taking about 30 seconds up to 1 minute. This isn't a problem, we just throw up an activity image and let the user wait, fine by us. Th...

Assigning values to properties and reusing the code

I have some code like this. But imagine that there are hundreds of lines like this all duplicated across multiple functions. MyClass.prop1 = doingsomething("test1"); MyClass.prop2 = doingsomething("test55"); I want to reuse my code... how can I do it? I want to do something like this: foreach(ClassInfo) { dosomethingAssignm...

call pageload event in aspx pages of a .vb page

i have many aspx pages in one folder (100 pages) and they will keep increasing. I have 1 vb.net file which has the code for these pages. Can i call that pageload event in vb.net file from all these pages? currently im using this code, but its not reading the pageload event. <%@ Page Language="VB" %> <script runat="server"> Protected...

How can I upload files asynchronously on ASP.NET ?

I've been looking for a way to achieve this behavior and I found this sample project. The trick in this project is that it changes the form target to an iframe created on the fly. So far so good, I can get the byte[] on the server-side. But I need to change an image preview after the file is uploaded. How can I get the iframe to updat...

Error Handling on root website with no application

I have a root website with no application. Then under that root site are four virtual directories with applications. Each of these applications has good error handling. The root website has none. I added a web.config with a simple customerrors="remoteonly" and a redirect to the default error page which is a simple .htm file on this r...

GridView Sorting event is not firing

GridView Sorting and Paging are works fine when I set EnableSotringAndPagingCallbacks to false. however when I set it to true the sort event does not fire (the paging works fine). any ideas? ...

Object data source select method returning nothing in code call

I have an ObjectDataSource with the proper SelectMethod and SelectParameters configured. The data source is bound to a grid view which successfully displays the data on page load. What I need is the ability to rerun the Select method defined by the ObjectDataSource to be stored in a variable and manipulate the items in it. The issue I k...

Dropdownlist filling throws error with null value

Hi everyone I have some code which fills a dropdownlist: pn.DataSource = Datatbl.Tables["datalist"]; pn.DataValueField = "partnumber"; pn.DataTextField = "partnumber"; pn.DataBind(); pn.Items.Insert(0, ""); pn.SelectedValue = ligne["pn"].ToString(); and when the value in the Database in null (""), it throws this error: System.Argume...

How to handle Object Data Source Exception handling in DotNetNuke

I've created several DNN (5.2.3) modules and I'm finding that if an error happens on the object data source (ODS) DNN will then show that error to everyone. A sample (though not a ODS specific error in this case) is shown below. This has no meaning to user. The exception should really be "Thing not found" or something like that to the us...

Why am I getting 404 on my web service locally

I am working with a web service written using .NET wcf. When running locally, I can go to the wsdl by going to the url of the svc file but I get a 404 error when I try to go to one of the service methods ex Api.svc/GetPrice Any thoughts about what could be causing this? The service is running on production. (I just need to fix a bug ...

ASP.NET: Localization: Get .resx value in MVC view using dynamic key

I have a view, and in this view, I need to get a value from an App_GlobalResources file using a dynamic key. Normally, for example, I would do this: <%= Resources.IndexView.MyKey %> However, in this case, I need to do something like: <%= Resources.IndexView[keyRoot + Model.BlahBlah] %> I don't want to get into a discussion about s...

Way to control editor for individual cell in Telerik RadGrid

I'm trying to figure out how to control an individual cell's editor (not column, a particular cell) in Telerik's RadGrid control. For example, I need the following layout: -------------------------------------------------------------------------- |Name Column |Col 1 | Col 2 | Col 3 | ---------------...