CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 4/6/2006 7:26:59 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 10 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
Edgardo
Asp.Net User
Properties windows should have a "Modifiers" attribute, just like Windows Form4/6/2006 7:26:59 AM

0/0

I'm not sure if this is the right forum, but I post here since using WAP is the only way I found to do this. I don't understand why you can't set the visibility of the controls in WebForms, it should work like WinForms. So, to the point...

For example, imagine we have a MasterPage, we have TextBox in it. We want to change the TextBox's text property from within a contentpage depending x or y, why should we waste time using FindControl?, creating additional methods or properties to handle this etc?, this is lame; it just doesn't make sense. Fortunately, with WAP, we can change the .designer.cs/vb file and change the modifier from protected to public, and we have strongly-typed access to the controls we need, it works like a charm, so easy...

It would be nice if we could just change the modifier using the properties windows (like in WindowsForms), or maybe using the context menu in design view or something.

Any idea if this can be implemented in WAP or via addin?


-Edgardo
ScottGu
Asp.Net User
Re: Properties windows should have a "Modifiers" attribute, just like Windows Form4/6/2006 7:48:36 AM

0/0

We unfortunately won't be able to easily implement this in WAP this month (I don't think there is any easy way to modify the property grid like this), but it is something we can put on the list to look at in the future. 

As you say, you can always go to the .designer.cs/.vb file and modify the accessor directly.  This was something we added support for in WAP especially for to enable the scenario you outlined above.

Hope this helps,

Scott

Edgardo
Asp.Net User
Re: Properties windows should have a "Modifiers" attribute, just like Windows Form4/6/2006 7:58:32 AM

0/0

Thanks for the short (and honest) reply Scott, any idea if this is equally hard to (maybe) add a context menu item to the control in design view to change the accessor?


-Edgardo
ScottGu
Asp.Net User
Re: Properties windows should have a "Modifiers" attribute, just like Windows Form4/6/2006 8:11:51 AM

0/0

My sense is that might be possible via an add-in -- although it is slightly tricky.  The .designer.cs file is only persisted on change events and/or view-switches, and so I'm not sure there are meta-data hooks exposed that allow you to modify the accessor mid-edit. 

My guess is that an add-in could open and save the .designer file as part of this context menu action, although we'd probably need to try it out to confirm for sure.

Hope this helps,

Scott

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Properties windows should have a "Modifiers" attribute, just like ... Properties windows should have a "Modifiers" attribute, just like Windows Form. Last post 04-06-2006 4:11 AM by ScottGu. 3 replies. ...
CodeProject: Animating Windows Forms. Free source code and ... To use this component, you should just have a bit of experience about working with Windows Forms. To understand it completely, a knowledge of the Timer ...
CodeProject: Divider Panel - A tutorial on creating a custom ... Windows.Forms directive for my class I could have just declared the property as: ..... CLSCompliant(true)] // The ComVisible attribute should always be ...
.NET Windows Forms Re: Driving me nuts! How to do two-levels ... However I would like to have a base class for these, so that I have a class hierarchy like: System.Windows.Forms. ...
NUnitForms : An NUnit extension for testing Windows Forms ... Your test should no longer override and specify just the type of form under test . .... all the open windows!! //You don't have to keep track of anything. ...
Creating Windows Forms App with C# NET is just. being explicit. You can remove the System.Windows.Forms ..... You should use the Properties window like I discussed earlier in the tutorial. ...
Windows Forms Controls for .NET Developers User Interface controls for .NET Windows.Forms. ... Although I suspect anyone interested in Yahoo should just wait another year till the bottom of the ...
.NET Windows Forms in a Nutshell | O'Reilly Media All Windows Forms applications have something in common, regardless of ...... and properties are adorned with these attributes to indicate how they should ...
Windows Forms You can now set some it's properties like the default for Culture property. ... Currently, the XtraSpellChecker Suite is for Windows Forms only. ...
Opening new windows with JavaScript, version 1.1 | 456 Berea Street May 9, 2006 ... I like the toggle option though, I have to admit I haven’t had a chance to fully look ... So the attribute ‘rel’ should be an alternative. ...




Search This Site:










sitemaps and current page

why httpexception (0x80004005): request timed out. dnn 3.0.8

unrecognized attribute 'xmlns' ?

application errors not being emailed

sitemap vs xmldatasource: staticselectedstyle not applied - help

treeview expand with direct lines

dnn 3.0.5 issue: logview error displaying line numbers

unhandled error

dotnetnuke & lucene.net search engine

migration from 1.1 to asp.net 2.0

can i use the membership controls with a different schema ?

stored procedures in aspnetdb.mdf

weird issues happening after upgrade from 3.012 to 3.100

members online viewer

creating my own hierachical data list without using the sitemapprovider class

general beginner tutorials at duhnetnuke2.net

why wasn't the c# code behind file generated?

change cssclass of menu item on menuitemdatabound

linkbutton in a repeater (header)

windows authentication role check

sitemappath

regarding login form

what are the limitations to using a seperate webserver and sql server

web controls firing blanks...

fix for "readonlyconfigurationsectiondata is not found"

faq: why do dynamic controls disappear on postback and not raise events?

dnn 3.0x -language issue

webmatrix and dnn

digital "ok" with digital signature / authencation

change theme after publish doesn't work correctly

 
All Times Are GMT