Which event to do I programatically add validation to a control?
Hi, I need to add requiredvalidator on a textbox programatically on a page, do I do that in page_load or some event before that? ...
Hi, I need to add requiredvalidator on a textbox programatically on a page, do I do that in page_load or some event before that? ...
In a DTO object I'd like to hard code the label description for the rendered html text box so that I can have an html helper function like TextBoxWithLabel where I pass only the object and it automatically creates the label taken from the description attributes. public class MessageDTO { public int id { get; set; } [Descriptio...
Hey Folks: I know there should be an easy way to do this but I guess my brain isn't working today. I need to refresh a page in x number of seconds. I can do that in .NET using the following: Response.AddHeader("Refresh", "300"); This is fine except I also need to display the number of minutes and seconds until the next refresh. So...
I was wondering if anyone knew of any webhosts that let you deploy asp.net applications to run under mono. edit: Ideally, the host would require little to no configuration on my part to deploy an ASP.NET application. ...
I'm trying to export a control library in a .dll for other developers in the office to consume. The solution I original created looks like this: Solution 1: - Mri.Controls (Class Library) - Mri.FmTool (Web Application) Mri.FmTool references Mri.Controls. Inside Mri.Controls, I have some javascript WebResources. Mri.FmTool seems t...
I'm working on a mixed application (ASP, ASP.NET) and I brought up using Nant for deployments. The person I was talking to said that he'd heard that Nant wouldn't work for us because we have such a mixed bag (.NET 1.1 and .NET 2.0 apps, ASP, ASP.NET). I can't imagine that's the case, just seems really unlikely. Your opinion? Have you bu...
Hi, I have a drop down list inside an update panel that is populated on postback from a sql data source. It has a parameter which is another control. I sometimes need multiple postbacks, but what happens is that each time the update panel refreshes, items are added to the dropdownlist. So the dropdown list ends up having data that is i...
I am developing an ASP.Net web application. Some of my users' browsers are rendering un-styled pages (i.e. it appears that the style sheet is not being used). When I browse to the css file from one of these users' browsers, I see unexpected leading characters. The following example is from a user using IE7 (I too am using IE7, but I...
<asp:DropDownList ID="ddl1" runat="server"> <asp:ListItem Text="First" Value="1"></asp:ListItem> <asp:ListItem Text="Second" Value="2"></asp:ListItem> </asp:DropDownList> <asp:TextBox ID="tb1" runat="server"/> <asp:Button ID="btn1" text="Go!" OnClick="btn1_Click" runat="server" /> public void btn1_Click(object sender, EventA...
I'm generating some charts that need a hex string for the colors. Example: <dataseries name="ford" color="FF00FF" /> I'm creating these dynamically, so I would like to generate the hex code for each dataseries randomly. What is the best way to do this? ...
I have virtual host where I have set up an IIS 6 server. In the extensions I have added ASP.NET v1.1.4322 and ASP.NET v2.0.50727 and set them to allowed, but I still get a file not found error when using aspx files. Do I need to setup mimetypes for aspx or anything else? ...
I need to be able to detect if flash was the originator of a request to an ASP.NET service. The reason being that Flash is unable to process SOAP messages when the response status code is something other than 200. However, I allow exception to bubble up through our SOAP web services and as a result the status code for a SOAP server fault...
I have a simple aspx page with a GridView control. I'm loading the GridView with search results after the click of a button. Everything works, but the HTML rendering on the browser is very slow in IE with a result set > 2000 (works fine in other browsers.) I realize it's slow due to the record count, but is there a way I can make it fas...
Hi all, I was looking for some feedback on the current design. Here is how it currently looks Web App (UI) References BLL Layer and BusinessEntities Layer BusinessEntites Layer - Contains Interfaces and Classes (with internal validations on the properties) BLL (references the BusinessEntities and DAL Layer) - Has mostly Managers for ...
I have a query that contains about 10 joins. Using a List View and Linq Data Source it pages fine against SQL2008 but fails to produce the correct result when run against SQL2000. No exception is thrown but the results are clearly out of order and at times, the same page is returned. Reading through the LINQ Docs, paging against queries ...
I am working a current web application for a client and I am having some trouble with session variables disappearing on me. I will try and set up a good description of the scenario as best I can. It does not happen on any page other than the page I created to allow users to modify the strings stored in a resource file. It shows up WHE...
Here is my scenario and I would like to ask your opinion on which control is best to use. I am using C#, ASP.net 2.0. I am required to create a structure that resembles a tree. The user will start with something and then will add nodes to it. Every node is a structure by itself, so a user should be presented with an option to create a n...
Hi to all! As the title says, how can generate (and display) images on the fly for simple charting, resizing etc? Thanks ...
I have a gridview that shows (50)rows of data per page. I have the Total showing for the Amount that is shown due to a previous request by the user. Now they want to have the total for the Entire result, regardless of what page they are on. How do I do that? I did the following for my Complete Total Count: After the Gridview result ...
so I have a modal dialog i use with jQuery in my asp .net page. I am trying to set a textbox value using jquery. here is some sample code: <div class="popup-template popup1"> <div class="content"> <input type="text" id="tbX" value="asdf" /> <input type="button" onclick="$('#tbX').val('TEST VALUE');" value="Input Te...