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:615727
More Search Options
RSS Available
Matching Posts
Re: button in user control
add a ValidationGroup="MyUserControl" to all of the controls and buttons in the UserControl. Then Validation will only appy to those controls. Other controls on the page may also need the ValidationGroup attribute
Posted to
Web Forms
(Forum)
by
shazelton
on 12/18/2008
Re: Subclassed control, how to call overrideable method from web page.
Yes, you can create events for your custom control. http://codebetter.com/blogs/brendan.tompkins/archive/2004/10/06/Easily-Raise-Events-From-ASP.NET-ASCX-User-Controls.aspx Has a great example (C# though I think)
Posted to
Web Forms
(Forum)
by
shazelton
on 12/18/2008
Re: How to optimize this method?
Here's a more interesting potential solution if you're using .net 3.5. How about using the cache and then use Linq to perform your query on the List<Product> string CacheKey = "Products" List<Product> products = (List<Product>)HttpContext.Current.Cache[CacheKey]; if(products == null) { products = new List<Product>(); //Get the products from the database //Store them in the Cache HttpContext.Current.Cache.Add(CacheKey, products, null, DateTime.Now.AddMinutes
Posted to
Getting Started
(Forum)
by
shazelton
on 12/14/2008
Re: Calling Parent WebUser Control from Child User Control
Can you show me the code handling the Event in Parent.ascx and the code that binds your datalist.
Posted to
Web Forms
(Forum)
by
shazelton
on 12/13/2008
Re: accessing page functions through a user web control button click
That's pretty much the only way I can think of doing it, it feels like the cleanest way. Your solution is the same as I would implement.
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Re: accessing page functions through a user web control button click
Have a check of this thread. http://forums.asp.net/t/1358899.aspx It's the same thing you are trying to achieve, there are some samples at the end of the discussion.
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Re: ASP Controls: Declare or Program? What's the common practice?
< asp:Menu id= "myMenu" runat= "server" Orientation= "Vertical" StaticMenuItemStyle-CssClass= "aspMenuItem_Normal" StaticSelectedStyle-CssClass= "aspMenuItem_Selected" StaticHoverStyle-CssClass= "aspMenuItem_Hover" > </ asp:Menu > [quote user="saedh"] For a very simple reason. As I understand, after deployment, content of aspx pages could be easily exposed by users (e.g. browser's View Source) unlike the could-behind
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Re: Calling Parent WebUser Control from Child User Control
[quote user="venkateswara rao Morampudy"] in page_Load not ispostback event ModelDetailPart.RecordAdded += new EventHandler (MyControl_RecordAdded); [/quote] Won't your page be in a postback mode when this event is raised? Take it out of the If(!Page.IsPostBack) block
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Re: Details: Error parsing near' <!DOCTYPE html p'.
I see this error when an error occurs in the processing of the page itself. You may well have an untrapped error occuring elsewhere in your code.
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Re: Calling Parent WebUser Control from Child User Control
Here is some code demonstrating the methodology: Default.aspx Markup <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Src="~/Parent.ascx" TagName="Parent" TagPrefix="ops" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3
Posted to
Web Forms
(Forum)
by
shazelton
on 12/12/2008
Page 1 of 3 (23 items) 1
2
3
Next >
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
WindowsClient:
WPF Manipulation Basics
ASP.NET:
High CPU in .NET app using a static Generic.Dictionary
TechNet Edge:
Deploying Silverlight - Why and How
WindowsClient:
Windows Client Developer Roundup for 12/21/2009
Silverlight:
4 Calendars & Plans for 2010 / 5770
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online