In my code I check to see if a file exists and store it in the Application object in asp.net.
Later on I access this boolean to do something in my web service.
Now I want to rewrite my web service in wcf and things are different here. The application object does not exist.
What is the best way to do this task:
On web site application...
I was thinking that that this would be a useful way to display what would appear to be a Treeview with multiple top nodes.
Example: Lets say that I want to create a TreeView of geography and I want the top nodes(s) to be countries. I could do this by:
World
Mexico
Japan
But what the user wants is:
Mexico
Japan
It would be ...
Has anybody heard of a "type dictionary" that uses types as keys and supports inheritance?
In my application I'd like to have a dictionary from types to functions, sort of like this:
Dictionary<Type, Func<object, object>> Transformers;
The idea is that it would be used to transform an object in some fashion based on its type:
// Tra...
i have one aspx page on which. set of linkbuttons on it.
linkbutton1
linkbutton2
linkbutton3
linkbutton4
linkbutton5
if i click on any of them. it should be highlighted.
These linkbuttons are in the table.
thanks for any help.
...
This error i am getting when i am installing the webservice which i have been given..
since i have no idea about webservice ,i am finding it difficult where to locate the name.
i have some vb file and resx file.
where can i locate the name of service any guess. The service name given in error msg , is not present anywhere
...
I show many editors in websites like stackoverflow and w3school.
i want to develop that type of editor in my website.
tell me how can i develop that text editor. where i can put any language code.
and also formatting it like stackoverflow.
and can i put picture directly pasted in that editor .. if i want to show any
screen shot of an...
Hello All,
I'm developing a product that will use extensively of Restlet for consume
WCF Rest Services. I had created a method to post a XML of a class
containing 2 attributes.
Restlet post my xml with Transfer-Encoding: chunked, and my WCF service,
can't to interpret posted content, unfortunately WCF continues can't to
deserialize my ...
I'm writing .net code (Windows Forms Application) which reads a TIFF image (CMYK) and sends it to printer (using WritePrinter). Before I send it, I need to convert the TIFF image to PostScript. Could any of you share the code how to create PostScript out of TIFF image? I appreciate it!
...
I am the developer of a WCF service. My test clients work very well with it. But when it comes to real clients (using the same client proxy), it fails. The same WCF service works with netTcpBinding, this error occurs only with netNamedPipeBinding, even with ConcurrencyMode = ConcurrencyMode.Single
Here is the exception
There was no ...
I'm mostly just curious about this. Do assemblies that would be considered "part" of the .NET Framework itself always exist in the GAC?
...
This post is in continuation of this one.
I am trying to understand if I am the only one who misses and needs the ability of a .NET generic type to inherit one of its generic parameter types.
The challenge is to collect compelling reasons in favour of this feature or, alternatively, get to know that there are none.
I will start with m...
I am experiencing some annoying behavior with Visual Studio .NET 2008.
We have created a base form, and a base grid derived from Infragistics UltraGrid.
In the base form, we have set some properties like colors, font size, etc.
1. We create a new Windows Form, (i.e. DerivedForm)
2. We change the inheritance to BaseForm, by simply addin...
I've never tried this - so I don't know if I'd run into memory issues.
But can a SqlDataReader read a trillion records? It's all streamed correct? I'm a little green to what the SQL/TDS protocol is doing under the covers.
UPDATE
Translate Trillion to mean very large number. I probably should have said something like 1 billion or 100 mi...
I am having a hard time understanding: http://www.syterra.com/Fit/AppConfigFiles.html
If my application and fixtures are in c:\Projects\App and FitNesse is running from c:\Projects\Sandbox\FitNesse
I am assuming c:\mypath\myapp.exe.config would be c:\Projects\App[MyFixtureAssmbly].config, but I am unsure of what c:\myfolder\mysuite.con...
I am using the simplest example of remoting that I could find, sharing an object between a windows service and a windows forms program (client), running on the same machine.
The service instantiates the object like this:
serviceConfigRemote = new serviceConfigDataRemote();
serverChannel = new TcpServerChannel(9090);
ChannelServices.Reg...
In WPF, I have a ListView bound to an ObservableCollection in the code-behind. I have working code that adds and removes items from the list by updating the collection.
I have an 'Edit' button which opens a dialog and allows the user to edit the values for the selected ListView item. However, when I change the item, the list view is...
Question
I was wondering if anyone knows where I might find C# versions of the VB.NET code snippets built in to Visual Studio (2008)?
What are Code Snippets?
VB.NET has a wide-ranging collection of snippets that cover most of the basic tasks one might want to accomplish, i.e. File I/O, LINQ, DB connectivity, and so on. C# has a much s...
Background
I have a GridView where input in Column1 depends on the input Column2.
If a user enters a N in Column2 the system will put a Y in Column1.
The Validatons are implemented using Regexs and Custom validation. I would prefer a validation solution that doesn't use JavaScript.
|Column1| Column2|
__________________
| Y |...
is there a way to see if a date is valid without using validators?
I can't use validators in this instance and it's a long story that is too much to type but it has to do with nested controls not being able to be found in javascript. But before i insert a date i want to make sure it is valid right before the insert. any ideas?
I'm usin...
I'm drawing an image and outputing it to web page using the following code:
Bitmap image = new Bitmap(350, 350);
Graphics g = Graphics.FromImage(image);
// code using g to draw image here
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
This works fine. Now I'd like to add a some text to the output (javascrip...