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:645647
More Search Options
RSS Available
Matching Posts
ViewState not persisting until control is added to the heirarchy
I'm developing a new custom server control and after spending quite a while troubleshooting why the control wasn't working, I've noticed something quite peculiar. I'm hoping someone can help me understand why this is happening and how to work around it! When I create a new instance of my control in code, it appears that none of the property values that are set BEFORE the control is added to the parent's Controls collection are persisted to ViewState. I have a simple (standard
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/22/2009
Re: Inline script does not resolving for custom control
In the hopes that someone else will jump in here, I'd like to point out again that the problem has NOTHING to do with JavaScript. Escaping the quotes in the previous post has nothing to do with whether or not the inline script is executed prior to setting the property on my custom class - which is the only issue I am having.
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/20/2008
Re: Inline script does not resolving for custom control
Again, that is incorrect. The <%= %> construct is used for inline SERVER-SIDE script. It is used all over in ASP.NET, especially for data-binding syntax. A slight variation, <%$ %> is used when referencing a resource as in: Text="<%$ Resources:Strings, MyString %>" ALL of this is done in the markup code and has absolutely NOTHING to do with javascript. Forget the fact that the specific statement I am using has anything to do with javascript. The problem that I am trying
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/20/2008
Re: Inline script does not resolving for custom control
I did say what it is doing: When I look at the page source on the client, I see: doSomething('<% =MyGrid1.ClientID %>') There is no problem working with the code behind but that is not the point of the thread. I am not looking for a work-around. I am looking for an explanation why something that is supposed to be working isn't so that the control can be fixed to work the way it is supposed to and is expected. Where the javascript function is located is also irrelevant to
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/20/2008
Inline script does not resolving for custom control
I have a custom server control with two string properties that I am setting in my page markup as follows: < my:Control runat= "server" ID= "MyControl1" > < Children > < my:Child Caption= " <%$ Resources:Mine, Caption %> " OnClientClick= "doSomething(' <% =MyGrid1.ClientID %> ')" /> </ Children > </ my:Control > < asp:DataGrid runat= "server" ID= "MyGrid1" ... /> The Caption property
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/17/2008
Implementing a "StandardCommands" control
I am looking for suggestions how to implement the concept of a "Standard Commands" type control. What I'd like to be able to accomplish is the following: <acme:StandardCommands ID="blah" runat="server" Command="Print" /> Under-the-hood, there is a PrintCommand server control that actually implements the necessary behaviro and rendering logic. Ideally, I'd like it is THAT was the object that was placed into the parent's Control heirarchy and
Posted to
Custom Server Controls
(Forum)
by
SonOfPirate
on 10/13/2008
Why not support post-backs?
I am wondering what the rationale was to not support postbacks in the MVC Framework? One of the most common ways I've seen MVC implemented in ASP.NET was to create a Controller.aspx base page, or something similar, that routed the request to the appropriate page or controls, etc. I believe there are numerous web articles out there descibing this approach and I know all of them support using the built-in controls, postbacks, data-binding, view state, etc. I recently worked on a huge project developing
Posted to
ASP.NET MVC
(Forum)
by
SonOfPirate
on 3/17/2008
Re: Two-way data binding using FormView on TabPanel
In my experience, the FormView control does not support having asp.net controls as child controls except for those used to render the form (labels, textboxes, dropdownlists, etc). For instance, you cannot use <asp:Table> for the form layout but have to use straight html (<table>) instead. I am certain that trying to embed the TabContainer control within a FormView is the victim of the same limitation. The correct way of resolving this is, as indicated earlier, to place the FormView within
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
SonOfPirate
on 8/11/2007
ModalPopupExtender not rendering
I have a web page that uses an ObjectDataSource and FormView to display an interactive form for entering and editing data. I'd like to be able to display a "sub-form" in the new modal popup provided by the AJAX Toolkit and have added the ModelPopupExtender to my LinkButton is EXACTLY the same way as the sample code provided along with Joe Stanger's How-To video. I'm even using the same CSS style settings to eliminate as many variables as I can. Unfortunately, when I click on
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
SonOfPirate
on 8/11/2007
Master Pages and shared content across multiple sub-domains
We are putting together a design concept for a new web site that will span multiple sub-domains but our desire is to maintain a consistent look-and-feel, with slight "section" changes across all of them, plus expose "shared" or common information between them. We've looked at various content management solutions but I would like to get a better understanding of what is possible out-of-the-box with ASP.NET 2.0. In a nutshell, we will have an ASP.NET 2.0 web application accessed
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
SonOfPirate
on 6/10/2007
Page 1 of 5 (41 items) 1
2
3
4
5
Next >
TechNet Edge:
Forefront Protection for Exchange customer story
WindowsClient:
Windows Client Developer Roundup for 12/7/2009
WindowsClient:
Introducing the new Bing Maps beta
ASP.NET:
My Presentations in Europe (December 2009)
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online