Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:590892
More Search Options
RSS Available
Matching Posts
Re: GridViewEx
When using this approach to get header & footer visible when there is no record, it works. Except for one thing. If I've got a Button in the footer, its Click event will not fire. Any ideas?
Posted to
Tips & Tricks
(Forum)
by
cruster
on 8/16/2007
Re: Solution: Show Header/Footer of Gridview with Empty Data Source
Awesome! Thanks a lot. [quote user="CISCBrain"]a more elegant solution, without tempering with the datasource, is creating a custom control that extends GridView and overriding CreateChildControls like so: protected override int CreateChildControls(System.Collections.IEnumerable dataSource, bool dataBinding) { int numRows = base .CreateChildControls(dataSource, dataBinding); //no data rows created, create empty table if enabled if (numRows == 0 && ShowWhenEmpty) { //create table
Posted to
Tips & Tricks
(Forum)
by
cruster
on 8/16/2007
Re: ASP.NET 2.0 TreeView control - Making certain child nodes invisible based on Sitemap XML file?
Awesome. Thanks! [quote user="Amanda Wang - MSFT"] Hi, Try to use below code: protected void TreeView1_TreeNodeDataBound( object sender, TreeNodeEventArgs e) { System.Web.UI.WebControls.TreeView tree = (System.Web.UI.WebControls.TreeView)sender; SiteMapNode mapNode = (SiteMapNode)e.Node.DataItem; System.Web.UI.WebControls.TreeNode itemToRemove = tree.FindNode(mapNode.Title); if (mapNode.Title == "Home" ) { System.Web.UI.WebControls.TreeNode parent = e.Node.Parent; if (parent
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
cruster
on 8/10/2007
Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))
Oh yes, it does. At least for me it did solve the problem. And my control does not have any constructor.
Posted to
Custom Server Controls
(Forum)
by
cruster
on 5/29/2007
Re: Invalid FORMATETC structure
You need to declare the control as public. That is: public class YourControl : CompositeControl { ... }
Posted to
Visual Studio 2005
(Forum)
by
cruster
on 5/12/2007
Re: Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))
You need to declare the control as public. That is: public class Basket : Control, INamingContainer { ... }
Posted to
Custom Server Controls
(Forum)
by
cruster
on 5/12/2007
custom control required properties
Hello. When creating a custom control, is it possible, to mark which properties are required? When you won't add runat="server" to some asp control, you'll get an error: Validation (ASP.Net): Element 'asp:foo' is missing required attribute 'runat'. Is it possible to achieve something like that within a custom control as well?
Posted to
Custom Server Controls
(Forum)
by
cruster
on 5/5/2007
Re: ControlDesigner & smart tags
I've finally found a solution to this. When I set the property like this: TypeDescriptor.GetProperties(this.Component)["Foo"].SetValue(this.Component, "bar"); except of: ((MyComponent)Component).Foo = "bar"; everything works flawlessly. Kind of weird. I have no clue why does this work. It simply works.
Posted to
Custom Server Controls
(Forum)
by
cruster
on 4/29/2007
ControlDesigner & smart tags
Hey folks. I'm developing an ASP.NET custom control and have assciated a custom ControlDesigner with it. I'm using smart tags in design time like this: public override DesignerActionItemCollection GetSortedActionItems() { if (_actions == null ) { _actions = new DesignerActionItemCollection(); _actions.Add( new DesignerActionMethodItem( this , "EditValues" , "Edit values" , true )); } return _actions; } public void EditValues() { ((MyComponent)Component).Foo = "bar" ; // I guess I need to call some
Posted to
Custom Server Controls
(Forum)
by
cruster
on 4/29/2007
Re: datagrid's pager style
Fine, I've just found the solution. Someone might need it: int rowsCount = dg.Controls[0].Controls.Count; Literal l = new Literal(); l.Text = "Just testing ..."; ( (TableCell)(dg.Controls[0].Controls[rowsCount-1].Controls[0]) ).Controls.Add(l);
Posted to
Data Presentation Controls
(Forum)
by
cruster
on 3/4/2005
Page 1 of 2 (14 items) 1
2
Next >
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online