asp.net

How can I support anonymous users with my application?

I need to implement a user authentication system that supports anonymous users, like how this site works. Can it be done with the default asp.net membership provider? if not, what are some of the things I need to do? ...

Resources for WinForms/WPF dev trying to learn ASP.NET

What are your best resources for a WinForms/WPF developer to come up to speed on ASP.NET? Will it take a complete paradigm shift for me to learn how to use ASP.NET or will it be a slight adjustment? I will award the answer flag to the post with a resource that gets me up to speed in the shortest amount of time. Downloadable code and c...

Resize and Display image from server with ASP.NET

Hey all, Got a question. I have images hosted on my server. I already know of the method when an image is uploaded to resize it and save, but I have another thought in mind. I was wondering if there is a way to resize when the image is requested from the user. Not when it was uploaded by the user. So for example a user goes to upl...

Is it possible to have two partial classes in different assemblies represent the same class?

I have a class called 'Article' in a project called 'MyProject.Data', which acts as the data layer for my web application. I have a separate project called 'MyProject.Admin', which is a web-based admin system for viewing/editing the data, and was build using ASP.NET Dynamic Data. Basically I want to extend the Article class, using a pa...

How do I turn off viewstate for good?

Coming from a PHP background I love using clean URLs to grab data from one service to another. However, on some of my ASP.NET projects I get the horrible ViewState parameter in my URLs. Is there a way to turn this off globally? What affect will this have on my ASP.NET app? ...

How to create a virtual directory in IIS7 for ASP.NET?

I have an ASP.NET web site, my machine has IIS7 running on Windows Vista home premium. I want it to be visible to other computers on the LAN. Do I need to create a virtual directory? How can I create a virtual directory on my machine? How do I have to deploy it for others to see my web application? ...

Insert layers on Visual Studio 2008

Is there a simple way to insert layers (a feature of Visual Studio 2005) in Visual Studio 2008? ...

ASP.NET common controls source code

Is there a source code readily available for commonly used controls (say found in the toolbox) for ASP.NET 2.0? The level of detail that I want its that I need to know the internal workings of the control. ...

VBox (from Flex) in ASP.NET

I had worked in the IDE of Adobe Flex Builder for quite a while. Is there a simple equivalent to VBox (Flex) in ASP.NET? ...

Drap and Drop in Eclipse for Web Projects

Is there an equivalent drag and drop style for Eclipse (or any IDE in Java) for J2EE or JSP that is similar to the IDE feel of ASP.NET in Visual Studio? ASP.NET allows you to drag and drop controls to a web form or web page. ...

rendering an aspx page in another one

In my web project's business object editor page, I'm sending a notification email to the administrator after an object insert or update. But instead of sending a plain text mail, i want to send the html output of another aspx page(Notification.aspx) i simply prepared for this purpose. First i thought, I can create an instance of Notific...

Localization in ASP.NET never worked for me !

I'm facing a strange issue, I'm trying to localize a website, so i converted it to a web application and generated resx file for each aspx and ascx file i have ( pagename.en.resx ..etc) however the localization never worked with me. one thing to mention that when i open the resx files in the designer mode i find "Access Modifier" dropd...

Best way to implement add/edit functionallity in HTML for several classes at once

I'm writing a web application in C#. I have several classes which are stored in a DB with Fluent NHibernate. The users would be able to list, add, edit and delete these objects. I would like to avoid adding controls on a class-by-class basis for editing and adding the properties like Name or Text, but rather have some method to add/edi...

Get User Input From Dynamic Controls

I am looking to create a dynamic survey. Where I generate all the question controls from the database. Below is an example of what I am trying to do (without the database part). I am able to display questions as seen below. I am unable to read the users input. Does anyone have any ideas. I have looked into the viewstate, but I ...

"Exception has been thrown by the target of an invocation" error (mscorlib)

Hi, I have a website developed in ASP.Net 2.0 that is throwing the error "Exception has been thrown by the target of an invocation" in the production environment. It was not throwing this error in development. The source is 'mscorlib', and the stack trace says the error at System.RuntimeMethodHandle._InvokeMethodFast. The o...

How to submit form data use jquery form in asp.net ?

i want to get the response value,but there is not response when i click the button; why don't submit the form in asp.net????? my code: <script type="text/javascript"> $(document).ready(function() { var options = { target: '#htmlTarget', dataType : 'json', url : 'Response.aspx', ...

Generic function Question C#

I have a generic function and the following class hiearchy: protected virtual void LoadFieldDataEditor <T1, T2> (T1 control, T2 objData, string strFieldName) where T1 : Control where T2 : BaseDataType { //I will need to access field1. //I don't know at compile time if this would be SomeType1 or //SomeType2 but all of them inherit...

How to: Back button support "Ajax"

I have an asp.net ajax website, it full of things happen on the same page without page reload, such as sorting records, paging,... When the user go to another page in the same site and press the browser back button, how can i make the browser save the page state to return to it with the preselected options such as sorting option, page nu...

Problems while adding google search to my website

Hello, I added the standard code for google search in my site (taken from http://www.askdavetaylor.com/how_can_i_add_a_google_search_box_to_my_web_site.html): when i compile and run the site, i get the following error (as soon as the page loads): Invalid postback or callback argument. Event validation is enabled using in configurati...

RegularExpressionValidator won't let me get to the next page.

I have two datalists. One works like a menu where you click on a link to fill the othe datalist. I also have added a next and previous linkbutton to move between the different "pages" so that you do not have to change using the menu datalist. Now in code behind depending on which values I get from the database I add a RegularExpressionV...