asp.net

Email Form Stopped Working Suddenly? When its been working fine?

I have an enquiry form on a site, which has been working for a while and yesterday just stopped working - I have got the error message and never seen it before? Service not available, closing transmission channel. The server response was: dns lookup failed for sender domain - System at System.Net.Mail.MailCommand.CheckResponse(SmtpStat...

Is it possible to create asynchronous web services in ASP.NET

I am not looking to be able to call web services asyncronously, I can already do that. What I want is to be able to create an asynchronous web service in a similar manner that I can create an asynchronous web page using the AddOnPreRenderCompleteAsync method. I have a web service that is dependent on another web service. I wish to be ab...

With subversion or TFS, how would you go about setting up automatic builds?

With subversion or TFS, how would you go about setting up automatic builds? I need some guidance with regards to naming convention and how this would happen automatically. I am using /branches /trunk /tags folder structure. I am using a build app (finalbuilder). Which tag name would I tell it to pull from (or revision # etc)? Since it...

collapsible panel not loading correctly

I'm having an intermittent problem with the CollapsiblePanelExtender. The way we are using them is to wrap it around a gridview, so that only the header-row is displayed(which contains a checkbox for select all) while collapsed. The page always load as collapsed. about 95% of the time, this will work perfectly fine, however, once in a...

The correct pattern for passing data to child controls in a server control

I'm working with a 3rd party system to implement some forms in a website. The 3rd party system provides me with XML definitions for these forms. e.g. <form> <segment> <label>The header</label> <fields> ... <field> <id>field_Dob</id> <type>Date</type> ...

ASP.NET and dynamic Pages.

Is it possible to write a System.Web.UI.Page and stored in an assembly? And how can I make iis call that page? So I will go deeply... I'm writing a class like that: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using Syste...

How to use output caching on .ashx handler

How can I use output caching with a .ashx handler? In this case I'm doing some heavy image processing and would like the handler to be cached for a minute or so. Also, does anyone have any recommendations on how to prevent dogpiling? ...

Regular expression not working after debugging

I have an ASP.NET website with a regular expression validator text box. I have changed the expression in the regular expression validation property "validator expression" and after compiling (rebuild) and running, the validation CHANGEs are not reflecting. The previous validation is working fine but the changed validation is not workin...

Editing markup of an ASP.NET control then saving on PostBack

I am using jquery to append or remove a <ListItem> (rendered as <option>) from the <ListBox> (rendered as <select multiple="multiple">). The problem arises when I try to save on PostBack. The correct information is saved to the database. However, when the page is loaded on PostBack instead of the new data from the database being loaded...

System.Drawing Error: Can or Cannot it be used in an ASP.Net application

We are using System.Drawing in and application to manipulate images in a web application (rotate, flip, etc). For the last month we have been getting the following error very sporadically. "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Based on the MSDN Library it appears that ...

Web Database or SOAP?

We’ve got a back office CRM application that exposes some of the data in a public ASP.NET site. Currently the ASP.NET site sits on top of a separate cut down version of the back office database (we call this the web database). Daily synchronisation routines keep the databases up-to-date (hosted in the back office). The problem is that th...

Dealing with checkboxlists and radiobuttonlists when POSTing forms

What is the right way of creating and processing a group of related controls on posted forms? From using ASP.NET MVC I see a standard option is to create a number of inputs and assign the same "name" attribute value to them. Like this: <input name="OrderOptions" type="checkbox" value="1" /> <input name="OrderOptions" type="checkbox" va...

How can I read a dynamically created textbox

I create some dynamic textbox's and a button in a placeholder and would like to save info in textbox's when button is clicked but not sure how to retrieve data from the textbox LiteralControl spacediv3 = new LiteralControl("&nbsp&nbsp"); Label lblComText = new Label(); lblComTitle.Text = "Comment"; TextBox txtComment = new TextBox(); t...

ASP.Net 2.0: Browser Back Button - Invalid postback or callback argument

I have a simple page that, on the initial load, databinds to a GridView. This gridview has sorting and paging enabled, and is also surrounded by an UpdatePanel. When the user does the following, I receive this error: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in conf...

jQuery Validation in ASP.NET Pages

I am using jQuery and jQuery.validate plugin to validate ASP.NET pages, since I found jQuery Validation plugin better than ASP.NET validation controls. I have used This validation code for Login and simultaneously for other pages like register and many others. //.NET code Dim jsValidate As String = String.Format("Validators.validateLo...

I need to dynamically generate questionnaires in aspnet 3.5 using sqlserver 2005 data.

I have been given an assignment that requires dynamically creating many web data entry pages mostly in questionnaire form. I am using visual studio 2008, aspnet , c#3.5 and sqlserver 2005. The questions are hierarchical and are stored in sqlserver with hierarchy info and info on which questionnaire(s) they belong to. Some questions...

Jquery get Selected Radio Button from List on page load

Hi all, I was wondering if anyone can post an example of how to get aselected radio button option from an asp.net radio button list control via jquery on the loading of a page. Thanks ...

I can't turn off Request Validation for an ASP.NET MVC Controller

I am trying to turn off Request Validation for all action methods in a controller by doing this: [ValidateInput(false)] public class MyController : Controller { ... The reference I am using says this is possible and tells me to do it this way, but for some reason it's not working. If I submit any html (even a simple <b> tag) thro...

How to direct to a member page from a non-member page when a user logs in?

I have two pages, NonMember.aspx and Member.aspx. If a user comes to the site, they will go to NonMember.aspx as soon as they login, I want them to immediately be redirected to Member.aspx, but instead of doing this, it is staying on NonMember.aspx. The user actually has to go click on the menu item again to get to Member.aspx. The li...

How do I detect if a request is a callback in the Global.asax?

I need to find a way to detect if a request is a callback when the Application_BeginRequest method is called.     Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)        Dim _isCallBack As Boolean = False          [Code to set _isCallBack is True or False Here]          If Not _isCallBack Then           ... So...