Search

You searched for the word(s): userid:655078

Matching Posts

  • Re: Disable an item in an RadioButtonList ?

    Hmm. ListItem definetly contains the Enabled property. Perhaps you could provide your code here and we can have a look. James Steele
    Posted to Web Forms (Forum) by James Steele on 5/26/2006
  • Re: Web.config file

    Using the roleManager section indicates that you are trying to use Role Management with your application. In order to do this you need to indicate a Provider to use. You can use the default provider if you like but it will require a database (like SQL Server or SQL Server Express or Access). Make sure that you have setup your application as a IIS virtual directory as well. < roleManager defaultProvider= "SqlProvider" enabled= "true" cacheRolesInCookie= "true" cookieName= ".ASPROLES" cookieTimeout
  • Re: Disable an item in an RadioButtonList ?

    Here is an example that works. RadioButtonList rbl = new RadioButtonList(); rbl.Items.Add( new ListItem( "a" )); rbl.Items.Add( new ListItem( "b" )); rbl.Items.Add( new ListItem( "c" )); this .PlaceHolder1.Controls.Add(rbl); rbl.Items[1].Enabled = false ; // will disable second radio button James Steele
    Posted to Web Forms (Forum) by James Steele on 5/25/2006
  • Re: Adding a file upload control into a datagrid footer

    You can use a HTML control in the FooterTemplate < input id ="File1" type ="file" />
    Posted to Data Presentation Controls (Forum) by James Steele on 5/25/2006
  • Re: create textbox from instantiation of class on .aspx page

    I had to make a couple of changed. For one I had to make the CreateTextBox method return a textbox type. Then you have to dynamically add the textbox instance to the Controls collections of the PlaceHolder. Here is the code: 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 System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web
    Posted to Web Forms (Forum) by James Steele on 5/25/2006
  • Re: Adding a file upload control into a datagrid footer

    Could you not just add it to the FooterTemplate? < asp:datagrid ID= "datagrid" runat= "server" CellPadding= "4" ForeColor= "#333333" GridLines= "None" ShowFooter=true> < Columns > < asp:TemplateColumn > < FooterTemplate > < asp:FileUpload ID= "FileUpload1" runat= "server" /> </ FooterTemplate > </ asp:TemplateColumn > </ Columns > </ asp:datagrid > James Steele
    Posted to Data Presentation Controls (Forum) by James Steele on 5/25/2006
  • Re: How to delete records in a dataset

    A dataset does not actually contain records, it contains tables that contain rows. Assuming you meant delete rows from a datatable inside of a dataset then you could do something like this: Dim ds As New Data.DataSet Dim removeRows() As Data.DataRow = ds.Tables(0). Select ( "my conditional expression" ) For Each row As Data.DataRow In removeRows row.Delete() Next James Steele
  • Re: How do I change the default tab order when opening project files in VS2005?

    Hi Mike, This is not a customizable option in Visual Studio.NET 2005. I have not written any add-ins for this environment but you may be able to create an add-in to help you out. You may also want to look into creating a Macro? Not sure if that can be done though. The only thing I can think of is to open an additional tab group and size it to that it is very small. Then before you open a new file you could make sure to click on this tab group before you open the file. Then the project file would
    Posted to Visual Studio 2005 (Forum) by James Steele on 5/25/2006
  • Re: How to create an array of labels dynamically?

    Here is an example of creating labels dynamically inside of a panel. If you need to get more accurate with the layout then you can dynamically add the labels to columns in a datatable and then set the width attribute of each column to percentages. Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim counter As Integer = 10 For i As Integer = 1 To counter If i = (counter / 2) + 1 Then Dim literal As New
    Posted to Web Forms (Forum) by James Steele on 5/25/2006
  • Re: Web.config file

    Jim, You need to be more specific about the errors you are getting. It could be any number of things. Please indicate the details of your errors. Thanks James Steele
Page 1 of 17 (170 items) 1 2 3 4 5 Next > ... Last »