|
Does anybody know if it's possible to add a user control to a web form in Visual Studio 2008, but to not have its declaration added to the designer file?
Started by Mike C. on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As long as you know the path of the control (either programatically or from DB/config) you can do
Page.Controls.Add("pathToYourControl");
Use can use Page.LoadControl , examples in both links:
void Page_Init(object sender, System.EventArgs e) { // Instantiate... .
|
|
I can't stand listening to conventional radio because I can't stand listening to ads. (The same goes for TV, where commercials are 200% louder than what you are trying to watch.)
Unfortunately, my wife needs to listen to the radio while getting ready ...
Started by carrier on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I haven't used their audio tools, nor am, your tool could start 30... .
It could still be an ad though.
) - a big " if ", how would you determine form a stream of text that an ad is about to start?
I'm not sure, then you probably have music.
|
|
Is anyone aware of general UI design guidelines for increasing ad revenue from web ads? Obviously many SO users use adblock, and probably find this type of question reprehensible, but I believe that it is possible to integrate advertising (and other revenue...
Started by rcreswick on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I've always appreciated sites that let me disable ads too..
In fact, one of the people who created this site made a post regarding this on his blog
You may be interested in seeing what Google has to say about the placement of ads.
|
Ask your Facebook Friends
|
I've got an ads table, with ads which can be promoted in two ways. They can be promoted in search results, so they come before the others, or they can be promoted to the front page, where a random selection of a few promoted ads are displayed. They are...
Answer Snippets (Read the full thread at stackoverflow):
For these, this opens some interesting design questions like if an ad can have only one or many different, or 'search' and 'front_page' respectively)
When you select an ad to promote, you select from the AD the expiration ....
|
|
I'm not a fan of the Designer, I prefer to code straight to the ASPX page. However, since a reformat (and leading up to the reformat), the designer.cs files have not been updating correctly when manually coding to the .aspx file. This means my code behinds...
Answer Snippets (Read the full thread at stackoverflow):
This seemed to give visual studio the slap....
The way i got my code behind to recognise my controls was by viewing the aspx page in designer mode, then changing back to code view.
This happened to me when I installed the sp1 in visual studio 2008 .
|
|
I have an application that uses SQL Server where I plan on deploying four instances to four different third-party dedicated hosting providers. The databases will replicate between each other. So, does each SQL Server reside in its own AD domain or should...
Started by jm04469 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
I would go for standalone servers.
This is not a scenario for using AD infrastructure.
With Aaron.
|
|
In one of the user controls in our project we have an obsolete property looking like :
[Browsable ( false )] [Obsolete ( "Not currently supported on this control" )] public bool DeferPropertyValueUpdates
Every time I edit a form that contains this control...
Started by Mongus Pong on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is what you need
[Browsable(false), DesignerSerializationVisibility( DesignerSerializationVisibility.Hidden)].
I believe a
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
attribute is what you're looking for.
|
|
I need to give users the ability to optionally add metadata to documents. Another way to state this is the fact that users need to add at least 5 categories to a document.
Basically what I want to do is dynamically add metadata (or categories) to a document...
Started by David Smit on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Remember, this design.
Downside is that your dbms might not support a good way to constrain this design to require atleast a column and it's not there and you didn't explicitly ask for the null value rows.
|
|
I am sure there is a clever way to handle this, but I just can't get it right in my head. Here is the scenario:
I have a base class with about 30 properties. Say that I have a property on this class called Type. For a subset of the instances of this class...
Started by Codezy on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Your question sounds suspiciously like you would like.
I love design patterns as much as the next guy but I think what you're unless your design is structured to never care.
I've renamed stuff.
|
|
I have a set of classes that all need to be acted on in some (individual) way.
Ordinarily I'd just create a DoSomethingInterface with a single doSomething() method and have each class implement that method in a way that suits each class' needs. However...
Started by Lehane on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The ....
Much better than the if/else if/else hardwired approach.
It's efficient and extendable, even at runtime.
What you've implemented (the map-by-class approach) is one of the alternatives to the GoF Visitor pattern I talk about when I teach patterns .
|