asp.net

Toggle rows created using Repeater Control ASP.NET

I am creating a list of data using Repeater Control. Some of the rows might have other rows that should be toggled using the main row's clickable image. Here, is the HTML part <table cellpadding="2" cellspacing="0" width="100%"> <asp:Repeater ID="repeatLockers" runat="Server"> <HeaderTemplate> ...

Specified argument was out of the range of valid values

I have one dropdownbox(ddlCountryTax) containing allcountries,If i select USA it will display grid displaying Tax information related to USA.If i edit information in grid and if we change country USA to UK in dropdown box in the ddlCountryTax(not the dropdownbox coming in the edit window of grid,,no problem for that) it displaying error ...

Can Standard .NET CMS systems be made to work with ASP.NET MVC

Has anyone successfully used a CMS developed for standard ASP.NET with ASP.NET MVC? I currently use Immediacy CMS and it seems to be quite tightly coupled with standard ASP.NET, but I'd really like to start using ASP.NET MVC. Are there any CMS systems out there directed at MVC? How could I persuade my employer to move to ASP.NET MVC?...

ASP NET MVC Server Response to a basic ajax request

We have to make an ASP.NET MVC or ASP.NET application for basic ajax navigation in Customer.html of Notrhwind.mdb. We have this 3 things: A pure HTML/Javascript form having HTML input text tags, one for each field of Customers table. We have also 2 navigation buttons: NextRecord and PrevRecord having at OnClick() event : clientGetReco...

Using User Controls from Other Projects in ASP

Hello! I'm trying to re-use my ASP User Controls in other projects, and have hit upon a problem. I've read ScottGu's post on http://weblogs.asp.net/scottgu/archive/2005/08/28/423888.aspx and tried to follow his patterns but run-time the child controls of my controls are not being initialised. My setup: I'm using Visual Studio 2008 I'...

Creating a drag and drop application in ASP.Net 3.5

I need to make a client able to drag and drop images into category-folders in an ASP.NET 3.5 web-app. I was hoping that an option existed, that was almost as easy to use as the Reorderlist from Ajax Control Toolkit, and where I did not have to look into JQuery or similar handcoding. What are your recommendations? Similar questions hav...

jQuery Ajax call - Set variable value on success.

Hey all, I have an application that I am writing that modifies data on a cached object in the server. The modifications are performed through an ajax call that basically updates properties of that object. When the user is done working, I have a basic 'Save Changes' button that allows them to Save the data and flush the cached object. ...

Q: Telerik RadTree bound to XML DataSource

Hi, I have a Telerik RadTree bound to an XMLDataSource. I want to set a node's text to consist of 2 attributes (number and name) See <telerik:RadTreeNodeBinding> Example: "1. How are you?" and "2. How old are you?" XML: <questions> <question name="How are you?" number="1" imageurl=""> </question> <que...

Multiple controls with the same ID 'add0' were found. FindControl requires that controls have unique IDs

Previously Called: How to deal with dynamically created controls under load in aspx in response to a question below: the information required to determine which controls to restore is contained in a dedicated viewstate object. I am dynamically creating controls in the codebehind page - these controls are all hooked up to click handler...

Advantage of switching from ASP.NET to bread & butter HTML/jQuery

Hi, I have been getting more and more sick of all the quirks about control ids, trying to get your data in serverside (based on client-side events). I seem to spend more time fighting with controls in asp.net, that I think it takes me more time than I gain by using it. I was thinking about using plain html/javascript with jQuery and a w...

Subdomain to point to subdirectory of main site?

I have my website running at: www.example.com I also have this other domain: www.example.net Is it possible to point "www.example.net" to a subdirectory of "www.example.com"? For example: www.example.net-> www.example.com/other ? It's not just a redirect, I need to serve the pages and see "www.example.net" in the user'...

How do I share user controls between web applications in ASP.NET?

This question is a follow up to my question about sharing resources between web applications, because I have not yet found a good solution. I have a web application with user controls and resources that are shared by three other web applications. Solution | +-CommonControlsWebApp | +- resources | | +- images | | +- scripts | | +- s...

How do I make an html link look like a button?

I'm using ASP.NET, some of my buttons just do redirects. I'd rather they were ordinary links, but I don't want my users to notice much difference in the appearance. I considered images wrapped by anchors, i.e. tags, but I don't want to have to fire up an image editor every time I change the text on a button. ...

What is the best approach for this CRUD search page in ASP.NET

I'm building a heavily CRUD based ASP.NET website and I've got to the phase of the project where I'm trying to build a search webpage that shows the user different subsets of a certain important table based on parameters they enter such as dates and different text fields. I can't use a fixed SQL statement, because depending on whether t...

How do I create folders in ASP.NET in code behind?

I want to create dynamic folders at run time. Folder names with be input via a TextBox and output will be displayed in a TreeView. The form will submit if I enter the first folder name into textbox1 and click the "Add Folder" button. When I submit multiple folders with the same name the output should be an indexed increment of the na...

How to skin all ASP.Net validators?

I want all of the validators in an ASP.Net 3.5 website to have a CssClass value of "error". My initial thought was to do this in a theme skin like so: <asp:CompareValidator runat="server" CssClass="error" /> <asp:CustomValidator runat="server" CssClass="error" /> <asp:RequiredFieldValidator runat="server" CssClass="error...

DataContext. Is there a single method where I can add an extra WHERE?

So basically I have an application that works with just one user, but I'd like to make it multi-user. This would involve me logging a user in, and keeping the user ID in session, plus adding a user id column to my database tables. no biggy. I'd like to change my dbml, or use it's partial, so that any query I throw through it also gets ...

ASP.NET / MVC 1.0 Components and Ajax controls - Grid - Calendar - Search?

Hello I'm rather new to developing with MVC and I'm looking to find as many Ajax controls that integrate seamlessly into my new MVC 1.0 ASP.Net application. Specifically, tree controls, searching, outlook calendaresque, and inline updating. ...

Failing to add controls to a page dynamically

I'm adding a User Control for each record pulled up in a data reader, here's the basic loop: while (dr.Read()) { ImageSelect imgSel = new ImageSelect(dr["Name"].ToString()); myPanel.Controls.Add(imgSel); } The problem is that there are no controls added to the page, I check the html output and there is my panel, with nothing...

Why is my submit event not being caught by jQuery in ASP.NET?

I wrote this on a simple ASP.NET page: jQuery(document).ready(function() { jQuery("form").submit(function() { alert("kikoo"); return false }); }); and when I submit (by clicking on a button, link, ...), I never see the alert box. Is there something in asp.net page that "bypass" the submit (I think about the dopostback javasc...