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:705118
More Search Options
RSS Available
Matching Posts
TableAdapter in design view : Why is it a sideways tree?
I am working with some old code that uses TableAdapters. Usually when I open an xsd file in design view it has each of the table adapters laid out in separate boxes. When I look at the properties window for one of the boxes I can see the name of the stored procedure that the table adapter interfaces to. However, all of a sudden, when I open the xsd in design I get some sort of sideways tree instead. I can't find the names of the stored procedures in this view. What's going on? How do I get
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
acl123
on 9/24/2008
Re: Get filename of user control
Hi, thanks for debating this topic. Let me clarify the issue: At the moment I use the Page.LoadControl method to dynamically load a user control on to the page. Page.LoadControl requires the filename of the user control, like this: Page.LoadControl( "~/UserControls/MyControl.ascx" ) Ok, this is fine. But I don't like having hard coded urls all over the place. It gets hard to manage once I have 14 or 15 user controls that need to be loaded in this way. So I want to be able to get the
Posted to
Custom Server Controls
(Forum)
by
acl123
on 7/6/2008
Re: Get filename of user control
Hi,sorry guys, none of these answers are correct.I don't believe there is a way to get the path and filename of a user control without creating an instance of the user control. Therefore the url must be hard coded or retrieved from a configuration file.
Posted to
Custom Server Controls
(Forum)
by
acl123
on 6/26/2008
Re: Casting Page to parent type IPage - "IPage is a type in MyNamespace and cannot be used in an expression"
I'm not using the interface as an expression. As you can see from the code I posted, I am trying to cast the Page to my own interface IPage, which has properties I need access to. (I've updated the code to make it a little clearer).
Posted to
Web Forms
(Forum)
by
acl123
on 4/21/2008
Casting Page to parent type IPage - "IPage is a type in MyNamespace and cannot be used in an expression"
Hi, I am working on project which includes the following line in declarative syntax: < a href="SomePage.aspx?ID=<%=((MyNamespace.IPage)Page).MyProperty%>"> This occurs inside a user control - so the user control is assuming that the Page it is on implements IPage. But the compiler is giving me this error: "IPage is a type in MyNamespace and cannot be used in an expression" What's going on?
Posted to
Web Forms
(Forum)
by
acl123
on 4/20/2008
Re: Get filename of user control
Hi, unfortunately AppRelativeVirtualPath is not static, so I need to have an instance of my user control. I am trying to use the Page.LoadControl method to create the user control, without having to hard code the user control's path. This means I don't have an instance of the user control yet, so I need some static way of getting it.
Posted to
Custom Server Controls
(Forum)
by
acl123
on 3/18/2008
Get filename of user control
Hi, is there a way to get the path and filename on the server of a user control, using a static method, e.g: MyUserControl.GetFilename(). I believe you can do this using TemplateSourceDirectory, but this is not static.
Posted to
Custom Server Controls
(Forum)
by
acl123
on 3/18/2008
Re: Register Script and Reference
Two ways: Method one Inherit "Base" from "Page". Then inherit all your pages from "Base". (I would rename "Base" to "BasePage" as well because "Base" is not descriptive enough). The methods in Base that register Javascript should then be made protected. This way the "Base" class has access to the Page's ClientScript property, and your pages have access to the "Base" methods. Method two Pass in the "Page"
Posted to
ASP.NET AJAX Discussion and Suggestions
(Forum)
by
acl123
on 2/28/2008
HttpModule processing static files
Hi, I am debugging some HttpModules using Visual Studio and notice that one of them seems to be processing static files, such as css and gifs. Some of the other HttpModules are not processing these files. Ostensibly the HttpModules seem to be setup the same way. They are registered in web.config the same way and they all handle the AcquireRequestState. What's going on?
Posted to
HttpHandlers and HttpModules
(Forum)
by
acl123
on 2/26/2008
Re: Page Reference set to Null
A reference to Page is simply not always available during CreateChildControls. You may find CreateChildControls quite difficult to deal with because it is not always possible to tell at which stage of the page life cycle it will be called. In your case, take out the line in CreateImageUrl that sets the ImageUrl and place it in a later stage method like OnPreRender. In most cases I have found doing things this way to be adequate but it can lead to inefficiencies or ugly code. I'm not sure if Microsoft
Posted to
Custom Server Controls
(Forum)
by
acl123
on 1/24/2008
Page 1 of 7 (64 items) 1
2
3
4
5
Next >
...
Last ยป
WindowsClient:
Working with Windows 7 Taskbar Thumbnail Buttons with WPF 4
WindowsClient:
overflow:hidden -- a fix to a CSS problem
TechNet Edge:
Empowering your teams with SharePoint
TechNet Edge:
TechNet Radio: Expert presents: Creating and Executing a Comprehensive 2007 Office Deployment
ASP.NET:
ViewModel Pattern for Silverlight - Options for Hooking a View to its Model
Channel 9:
Rx API in depth: Concat, Catch and OnErrorResumeNext
Channel 10:
PowerPoint Twitter Tools Updated
Channel 10:
Windows Live Messenger Arrives on Nokia Phones
Channel 9:
Peer to Peer Series Part 7: PeerChannel Basics
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
TechNet Edge:
Visio: Drawing on Experience with Saveen Reddy
IIS.NET:
URL Rewriter and Reverse Proxy
TechNet Edge:
Forefront Secure Endpoint Demo and Interview
ASP.NET:
Resizing images from the server using WPF/WIC instead of GDI+
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
IIS.NET:
DebugFinder
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online