-
I'm an asp.net/c# newbie ok thats out of the way. My requirement is to create a page that has 2 radio buttons, one of those radio buttons will have a text box that will be deactivated/grey'd out UNTIL its button is selected after which it will be active. Obviously this is easily done with javascript...
Posted to
Web Forms
(Forum)
by
aforonda
on
08-31-2006, 12:00 AM
Filed under: ASP.NET, deactivate, javascript, form, radio button, c#
-
madaboutnoggins: private void Page_Load( object sender, System.EventArgs e) { BetterNewsServiceWS.GetBetterNewsService wsBetterNewsService = new BetterNewsServiceWS.GetBetterNewsService(); NewsItem[] arrNews = wsBetterNewsService.GetNews(); rptNews.DataSource = arrNews; rptNews.DataBind(); } Your referencing...
-
I have a few custom controls that contain their respective abstract base classes located in the App_Code folder. Everything works fine, but I'm not clear on how to access the class properties from my custom control. I'm using this abstract class in my code-behind and is why I needed to make an...
-
Hi, I am using a webservice which creates several classes in my project used to package the data and send it back to the webservice. Before I sent this data back to the webservice I would like to get rid of any duplicate records in it. A nice and easy way of doing this is to create a list of the webservice...
-
I needed to remove duplicate years from a DropDownList and so I created the following class in C#: public class Ddl { public Ddl() { } public static void RemoveDuplicateItems( DropDownList ddl) { for ( int i = 0; i < ddl.Items.Count; i++) { ddl.SelectedIndex = i; string year = ddl.SelectedItem.ToString...
-
I used to do this with classic asp but I'm not sure how to do it with .net. Basically I would take a table of Categories, Then I would loop through those. Within each loop I would call another stored procedure to get each item in that Category. I'll try to explain, Lets say category 2 has a player...
-
I don't know how to display records on a page. I don't want to use DataGrids or any of those types of tools. I want to have control of how it displays. How do you open a stored procedure and loop through to display it on a .aspx page in C#? With a sqlDataSource? Or do I build a DataReader in...
-
Hi, I created a userControl that binds to a class which returns a sqlDataReader. I need to know if there is a way to format the Body data field that it returns. I've already cut it down to 100 characters in sql. But the problem is that it will cut off words that way. So the Body field is returned...
-
Does anyone know how to handle the "Invalid file" in the file upload in C#? In the file upload control, I enter an invalid file and try to upload the file, but I always get an "Access Denied" error in the function __doPostBack(eventTarget, eventArgument); this is a javascript error...
-
I posted up over here a quick comment and Ted asked that I post my question here, so I shall! I was dorkin around with the new animation controls and noticed AnimationExtender, AnimationProperties, AnimationExtenderDesigner and Animation are all items I can play with in code behind -- but I'm not...