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:713722
More Search Options
RSS Available
Matching Posts
Re: Server Controls/User Controls best practices
[quote user="xavierx"] Does that sound like a good method? Ideally I'm just trying to have to so that if i make changes/updates, I open this control solution, modify what i need, recompile, and since all the projects will reference the assembly in a central location, I change it once, it changes for all! [/quote] Is my understanding correct that you'd like to put all your controls in one assembly and put the built assembly in a share folder that other machines can access to add
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/17/2009
Re: Combine Custom Server Control with HttpHandler
Hi, Do you mean HttpContext? Why you cannot get it via HttpContext.Current?
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/17/2009
Re: Create Event In User Control.
Hi, I'm unable to reproduce this issue. My test code is like below. Could you please test it to see if you can get _Query in Page_Load? ascx.cs: public partial class WebUserControl1 : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { // I can get the value of _Query here } public string Query { get { return _Query; } set { _Query = value; } } string _Query; } aspx: < uc1 : WebUserControl1 Query ="anything" ID ="WebUserControl11" runat ="server"
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/16/2009
Re: Server Controls/User Controls best practices
Hi, What you do is right except that Custom control is better to suit this scenario. Please refer to the following article for comparison and more details: http://support.microsoft.com/kb/893667/en-us
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/16/2009
Re: PersistenceMode.InnerDefaultProperty issue
Hi, To achieve this effect we need to let the collection class inherit from IList. See below sample: [ParseChildren(true, "MyItems")] public class MyCustomDropDownList : DropDownList { [DefaultValue((string) null), PersistenceMode(PersistenceMode.InnerDefaultProperty)] public MyListItemCollection MyItems { get;set; } [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public override ListItemCollection Items { get { return base.Items; } } } public sealed class MyListItemCollection
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/16/2009
Re: Composite Validator Control ASPX vs ASCX Rendering
Hi, Please have a look at this method: protected override bool ControlPropertiesValid() { if (String.IsNullOrEmpty(ComparisonControlToValidate)) { Control ctrl = Page.FindControl(ControlToValidate);//change to this.FindControl return (ctrl != null); } else { Control ctrl = Page.FindControl(ControlToValidate); Control compCtrl = Page.FindControl(ComparisonControlToValidate); return (ctrl != null && compCtrl != null); } } If the control is put in UserControl, Page.FindControl() method probably
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/16/2009
Re: Server Controls/User Controls best practices
Hmm.. Looks like your question is regarding revision control instead of custom control of ASP.NET. Please refer to the following documentation to choose a software to do so (Try Team Foundation Server of Microsoft if you like): http://en.wikipedia.org/wiki/Comparison_of_revision_control_software
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/16/2009
Re: Composite Validator Control ASPX vs ASCX Rendering
Hi, Could you post a demo project that can reproduce this issue? You can upload the project to http://skydrive.live.com/ and paste download link here for me to test.
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/13/2009
Re: Can't render the URL of a image defined in separate CSS file while embedding the CSS file as a resource
Hi, Yes RegisterClientScriptInclude is used to register JavaScript files. By Page.ClientScript.GetWebResourceUrl method you can get URL of any resources. Then you can output the URL to HTML where you need. For instance: string styleSheet="Get URL by Page.ClientScript.GetWebResourceUrl"; HtmlHead header = Page.Header; HtmlLink link = new HtmlLink(); link.Href = styleSheet; link.Attributes.Add("type", "text/css"); link.Attributes.Add("rel", "stylesheet"
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/13/2009
Re: Custom control : getting Rowcount 0 on button event of the control.
Hi, You cannot get rows if they are not populated yet. In general we can get all populated controls in PreRender event. You can add your code logic there.
Posted to
Custom Server Controls
(Forum)
by
Allen Chen – MSFT
on 11/12/2009
Page 1 of 488 (4878 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online