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:640843
More Search Options
RSS Available
Matching Posts
Re: Displaying custom server control elements in design view
That depends on if it is a composite control.. If ti is not, then you can add controls in render... Since you are already done with the devt of the control and you say it works great, I would just add the HttpContext.Current == null section in Render method for the designer. You can keep it simple on the designer, just use HTML controls and style them accordingly.
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/8/2009
Re: Displaying custom server control elements in design view
In your render method do the following: if ((HttpContext.Current == null)) // this will be null if you are in design mode { // Write code here on how you want to render on the designer. Remember that OnLoad will not be called during rendering on designer. eg: base.Controls.Add(childcontrol1); base.Controls.Add(childControl2) etc.. } else { // your current code here for how you want it to render on the browser. }
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/7/2009
Re: URGENT: DropDownList in custom server control not holding value on postback
Try inheriting from DropDownList instead of WebControl. (You do not need to do any extra Save / Load ViewState)
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/7/2009
Re: Image in Web Custom Control
You mean your Image is an Embedded Resource? If your Custom Control has only 1 Image and you are deriving from Image then not sure why you are trying to overwrite CreateChildControls. Instead in Render try: base.ImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(what_ever), "<location of your embedded image>");
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/7/2009
Re: Custom dropdownlist control to show both text and value property of Items
Glad it worked. Could you mark it resolved?? Thanks.
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/7/2009
Re: Custom dropdownlist control to show both text and value property of Items
In the custom control, during PreRender check if the DDL has items. If so, modify the Text property of each item. protected override void OnPreRender(EventArgs e) { // foreach item in base.Items, item.Text = item.Text + "_" + item.Value; }
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/6/2009
Re: dynamic create RequiredFieldValidator when rendering TextBox
You need to make a composite control which has a TextBox and RequiredFieldValidator as child controls. Then in CreateChildControls you would create the controls and in Render, render them in whatever format you want to.
Posted to
Custom Server Controls
(Forum)
by
WebPrgmer
on 4/6/2009
Re: AnimationExtender and ConfirmationDialog.
I would think this is still pretty odd behavior of the AnimationControl Extender. However, I implemented a work around to the issue. I added hidden field on the aspx and a javascript that updates the hidden value with the choice a user made on the confirm dialog. I then display Animation based on a condition. Here is the code in case there are more people out there with the same issue. Aspx: < asp:TextBox ID= "TextBox2" runat= "server" >This Updates the label even if you
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
WebPrgmer
on 3/18/2008
Re: ScriptManager required Error for Cascading DDL!!
If you have an UpdatePanel on the page instead of a CascadingDDL (ie replace CascadingDDL with an UpdatePanel on the exact same page), do you still get the error?
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
WebPrgmer
on 3/17/2008
Re: ScriptManager required Error for Cascading DDL!!
Try using a ScriptManagerProxy control on your content page instead..
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
WebPrgmer
on 3/17/2008
Page 1 of 3 (23 items) 1
2
3
Next >
Silverlight:
Deploying your Silverlight and WCF RIA Services application
Channel 9:
Juan Chen and Nikhil Swamy: FINE, a Compiler for End-to-End Security Verification
Channel 10:
Get the Outlook Hotmail Connector Beta
Channel 10:
MSN to Launch New Lifestyle Site from Wonderwall Creator
Channel 10:
Behind the Windows 7 Startup Animation
Channel 9:
Reactive Extensions API in depth: CombineLatest
Channel 9:
C9 Lectures: Dr. Graham Hutton - Functional Programming Fundamentals Chapter 11 of 13
WindowsClient:
New WPF Showcase: Scrum Sprint Monitor
WindowsClient:
WPF/XAML helping VS2010 Extensibility
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Channel 9:
Enabling Help in the Visual Studio 2010 Shell
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online