I have a UserControl that exposes a System.Type property. I want to make it settable at design time, like the BindingSource's DataSource property. How can I achieve this?
Hi,
I am trying to encrypt Configuration Information Using Protected Configuration in Visual Studio 2010.
I have the following info speicifed in the App.Config file:
<connectionStrings configProtectionProvider="TheProviderName">
<EncryptedData>
<CipherData>
<CipherValue>VALUE GOES HERE</CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
<appSettings configProtectionProvider="TheProviderName">
<EncryptedData>
<CipherData>
<CipherValue>VALUE GOES HERE</CipherValue>
</CipherData>
</EncryptedData> </appSettings>
However, when I then go to the Settings area of the Projects Properties to view the settings in the Designer, I get prompted with the following error "An error occured while reading the App.config file. The file might be corrupted or contain invalid XML." I understand that my changes are causing the error, however, is there anyway I can bypass that the information is not read into at design view? (Of course the best way would be to make the tags be recognized by the designer, is there any way to do this?) I tried adding
<connectionStrings configProtectionProvider="TheProviderName" xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
to connectionStrings as well as to the appSettings, but with no luck, the intellisense is bypassed in the config file, but the designer still complains. I would be satisfied if the designer would not complain about this "error", which is not actually an error because Microsoft states here that it should work.
ASP.NET 2.0 provides a new feature, called protected configuration, that enables you to encrypt sensitive information in a configuration file. Although primarily designed for ASP.NET, protected configuration can also be used to encrypt configuration file sections in Windows applications. For a detailed description of the new protected configuration capabilities, see Encrypting Configuration Information Using Protected Configuration.
And yes, it does work to encrypt it and to decrypt it and use it, it is just very annoying and frustrating that the designer complains about it. Anyone who knows which xsd file that is used (if used) to verify the contents of the App.config file in the design view?
Any help appreciated.
I am implementing a design where my layer would sit between client and server, and whatever objects i get from server, i would wrap it in a transparent proxy and give to the client, that way i can keep a track of what changed in the object, so when saving it back, i would only send changed information.
I looked at castle dynamic proxy, linfu, although they can generate a proxy type, but they cant take existing objects and wrap them instead.
Wondering if its possible to do with these frameworks, or if there any other frameworks that enable this...
In the XKCD comic 195 a design for a map of the internet address space is suggested using a hilbert curve so that items from a similar IPs will be clustered together.
Given an IP address, how would I calculate the 2D coordinates (in the range zero to one) that this IP is located on such a map?
It is just seems to be a little awkward design to tie a feature to a class instead of interface. Has anybody managed to group GridView without CollectionViewSource?
Also a bonus question here: why you have to refer to the CollectionViewSource resource through binding:
<GridView
ItemsSource="{Binding Source={StaticResource groupedData}}"
>
instead of
<GridView
ItemsSource="{StaticResource groupedData}"
>
??
How to make maintenance document for a website? I've created a site using XHTML ,CSS, jQuery etc. it's big site.
Now i have to write a maintenance document for a site for if any changes comes in future related to design, content and functionality then those things will be handled by someone else.
How and what should i keep in maintenance document.
Hello all,
I am currently in the process of designing an interface for .NET software that would be consumed by COM objects - specifically, VB6.
While I have found a number of pages by Microsoft detailing how to make an COM-interoperable interface, I am currently tripping over the use of Collections in design time: I would like to be able to use a standard VB6 "Collection object" in the .NET program - for example, specify an argument as being a VB6 collection - and thus minimize the time necessary for clients to consume the interface.
Thank you in advance.
I'm using a ToolStripContainer that contains three ToolStrips. At design time I move the ToolStrips to the positions I want them in, which is in a horizontal row across the top of the form like this:
I then close and save the Form. However, if I open the form up again the ToolStrips end up stacked up on the left side of the ToolStripContainer like this:
How can I keep the ToolStrips in the positions that I specify?
Hello,
I am trying to create a web application using the MCV design pattern. For the gui part I would like to use javascript. And for the controller Java Servlets.
Now I have never really worked with javascript, so I'm having a hard time figuring out how to call a java servlet from javascript and how to get the response from the servlet.
Can anybody help me out?
Hi,
does anyone have any idea how I can get started building a search engine for my asp.net mvc site using entity framework. I plan to build something like: http://www.carsguide.com.au/search/?N=4294962119++492&type=cars
there on the left there is a refine search option panel.
What's the best approach to design a model for the UI and optimized query with entity framework.
Hello,
I am new to integrating graphics into iPhone apps and need some direction on integrating graphics from maya into the application flow. Does anyone out there have any advice on good books or tutorials covering the design flow for Maya - iPhone SDK?
Thanks
Obviously, APIs have exploded over the past few years, but many of them seem poorly designed when it comes to utilizing them... I have an opportunity to design an API however I see fit, but I would like it to be easy to use for those accessing it. Of course, keeping it as simple as possible is a big help, but what are the gotchas that people have run into out there? Anything that should be avoided at all costs or implemented at all costs?
What pattern should I use for data-access in case of VS2008 generated L2s or EF DataModels? Repository-pattern or what?
As we know VS2008 generates Data-Models and DataContexts/ObjectContexts in the same file, then, how should I arrange my VS2008 assemblies in my VS2008 solution to achieve a layered design?
If I use repository pattern, how should I arrange my assemblies in the VS2008 solution (as Data-Models and Data/Object-Contexts are stored in the same file...)?
Any web/example link would be appreciated.
I'm writing a shell for a project of mine, which by design parses commands that looks like this:
COMMAND_NAME ARG1="Long Value" ARG2=123 [email protected]
My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of the arguments. This behavior doesn't match my requirements.
Any ideas how can this be solved? Any existing library for this?
Perhaps you know the story of HTTP and HTML being developed on a NeXT computer. I am curious which platform served as the first home for these programming languages:
Ada
C
C++
C#
D
Erlang
Fortran
Haskell
Java
Javascript
Lisp
Logo
MATLAB
ML
Perl
PHP
Prolog
Python
R
Ruby
Scheme
SQL
Smalltalk
I thought it might be interesting to reflect on how the machine and operating environment lead to different design decisions. Or to see if some architecture or operating system variant was particularly fruitful for programming language development. A question for the historians among us.
hi,
I'm getting crazy with some browsers fixes to do everytime I'm doing a new website. For example, lately I've built my own Flash Video Player and I lost hours to fix some problems such as aligning it in IE and Firefox and Safari.
Would be so cool to have a intermediary layer, I could use to design my website, without taking care of all browsers fixes...
I guess I'm a dreamer
I working as an IT consultant and I am currently doing functional stuff like requirements gathering, documentations and writing test specs etc.
I kind of sick of this kind of job scope and wish to do more programming/ design / technical stuff.
Because I get more satisfaction doings the things rather than telling other to do
Anyone in the same dilemma as me and any suggestions on how to get on with working life?
Hi all, of all three choices (AIR+AJAX, +Flash, and +FLEX) I went on the AJAX route. But it seems that it can't show Flash embedded in HTML (using the traditional OBJECT tag).
Is it by design? or my fault?
http://www.vbulletin.com/docs/html/
Are they using a custom design or is that a script? If it's custom, is there something similar to it that I could use to document my software?
I need to design database for MS SQL Server, is there any MySQL workbench like software for that? I have access to MSDN, so it can also be commercial product that can be found form MSDN.
I am having some design techniques about How shall I schedule a code to retrieve the weather info?
Should I use alarms to retrieve the weather each 10 minutes?
And do I need to run a service for this? Or just put the code in the Broadcastreceiver and start when the alarm fired?
Given that it's valid to write
a = b = c = 2;
It would also be nice, rather than
bool allTwo = a == 2 && b == 2 && c == 2;
to instead write
bool allTwo = a == b == c == 2;
But I can't.
Is there a language-design reason for this?
I am relatively new to website design and specifically working in ASP.NET, i am using CSS to style my site, but when i use ASP.NET Controls like GridView, Navigation controls, etc ...
they are messed up by the style sheets, and you can't see that until you run the website, because the controls are translated to HTML and so affected by CSS in a way that you can't predict, how to solve this, and is there a better way to layout and desgin sites in ASP.NET.