Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

uadrive

@uadrive
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Drop down list is asp.net form
    U uadrive

    After you bind the data to the dropdownlist, you can add a new listitem and set the index to 0. This will store the blank row at the top of the list and even allow you to set it as selected by default. ------------------------------------- I have no prayer for that. - Stark, Farscape

    ASP.NET csharp asp-net database help question

  • How can i sort a DataTable?
    U uadrive

    You can use the DefaultView property to access the Table's view and then sort. i.e. DataTable myTable = new DataTable("blah"); myTable.DefaultView.Sort ------------------------------------- I have no prayer for that. - Stark, Farscape

    ASP.NET question algorithms

  • Security Question IIS
    U uadrive

    I've always had this same problem when security isn't set up correctly in either my web.config or the virtual directory. I would bet that the issue has to do with security settings on the virtual directory set up for the new server. ------------------------------------- I have no prayer for that. - Stark, Farscape

    ASP.NET security question csharp asp-net sysadmin

  • Custom Control TreeWeb and DataBinding
    U uadrive

    I have written a modification to the TreeWeb custom control found here on The Code Project. I needed to be able to bind data to any TreeElement that I choose. I have been able to do this by making the TreeElements controls themselves and using a ControlDesigner to allow me to make DataSource Selections to the properties. The issue I am having is that I can set the DataSource initially, but once I build, or close my project and try to open the page that has a TreeWeb, the DataSource is no longer editable through the properties. Instead it will be greyed out displaying 'System.Data.DataSet' as the value in the field. The other issue I'm having is when I bind the control in Page_Load it sees a filled DataSource as empty unless I reset the DataSource just before binding. Any help would be appreciated. I intend to post the source when I'm completed to help The Code Project out. Thanks. Here's the designer code from my designer related to DataSource // resolve ambiguous reference public string DataMember { get { Check.Require(this.mElement.DataMember != null); return this.mElement.DataMember; } set { this.mElement.DataMember = value; this.OnDataSourceChanged(); } } public string DataSource { get { DataBinding binding = base.DataBindings["DataSource"]; if(binding != null) { return binding.Expression; } return string.Empty; } set { // check to see if it needs to remove dataSource if((value == null) || (value.Length == 0)) { base.DataBindings.Remove("DataSource"); } else { // sets a new dataSource DataBinding binding = base.DataBindings["DataSource"]; if(binding == null) { binding = new DataBinding("DataSource", typeof(IEnumerable), value); } else { binding.Expression = value; } base.DataBindings.Add(binding); } this.OnDataSourceChanged(); base.OnBindingsCollectionChanged("DataSource"); } } protected override void PreFilterProperties(IDictionary properties) { base.PreFilterProperties(properties); PropertyDescriptor prop = (PropertyDescriptor)properties["DataSource"]; AttributeCollection runtimeAttributes; if(prop!=null) { runtimeAttributes = prop.Attributes; // make a copy of the original attributes but make room for one extra attribute ie the TypeConver

    ASP.NET help wpf wcf

  • IE Treeview control
    U uadrive

    I'm currently working on the TreeWeb version available here at CodeProject. I've been able to write my own DataBinding to it, but am having a few problems myself. If the control doesn't support DataBinding yet, look into creating a ControlDesigner for your tree to add DataBinding at designtime. This will give you the functionality you need for using SQL. TreeWeb allows the use of checkboxes. If I can get my version of TreeWeb bug free I will post the source for people to use.:laugh: ------------------------------------- In death he has a name. His name is Robert Palmer. His name is Robert Palmer. -Fight Club

    ASP.NET tutorial question database design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups