I'm using SharpZipLib to create a zip file with an html page and images. If the html file has a / in the name, it creates a folder (which messes up the image paths).
Example: If the html file should be named Web/Design.html the zip file will contain a Web folder with a Design.html file in it.
I've tried escaping / by replacing / with ...
I'm trying to create a child form that helps the user to enter data for a field in the parent form. I want this child form to be modal, but I don't know what I need to do to make this form modal.
Perhaps there's a different type of item I need to use; if so, let me know.
...
Hello,
I have a simple test using vsts load test that is using datasource. The connection string for the source is as follows
<connectionStrings>
<add name="MyExcelConn" connectionString="Driver={Microsoft Excel Driver (*.xls)};Dsn=Excel Files;dbq=loginusers.xls;defaultdir=.;driverid=790;maxbuffersize=4096;pagetimeout=20;ReadOnly=F...
Is it possible to start a program so that it is available to a user with a windows service? I have been working with the Process.Start() in C#. I can get the service to kickoff some sort of process that appears in the Task Manager list under processes. However, the program nevers appears on the screen. By default, it runs under the u...
I have a WPF app in VS2008 that compiles twice during the build. The two CSC command lines are similar but with some differences. The first CSC command line does not have an /resource options, the second has two /resource options on the command line.
The second CSC command line has these additional arguments:
/resource:"obj\Debug Aut...
Assuming server control of type A has a protected member M, then we are also able to access A.M via declaring control tag A on some aspx page:
<asp:A runat=”server” M=”someValue” … />
But isn’t one of the rules in C# that protected members of class A can only be accessed from A and from classes derived from A? So doesn’t the ability ...
I need to call a web service using ksoap2, from Android! The real problem I am facing is that, I have to use a complex data type. ( a class containing two strings ). Does anybody have an example of passing a complex type to a webservice, preferably, only using SoapObject ?
Thanks in advance
...
Hi,
It is possible to integrate Adobe Contribute within an existing web application (.net 3.5).
My objective is to allow my application users to modify the content of various web pages.
I had a look around most of the developers suggest
DotNetNuke
Umbraco
what is the main difference of these with Contribute?
there is a notable di...
I have this method:
public void DoSomething<T>(Expression<Func<T, object>> method)
{
}
If this method is called like this:
DoSomething(c => c.SomeMethod(new TestObject()));
... how do I get the value of the parameter that was passed into SomeMethod()?
If the parameter is a value type, this works:
var methodCall = (MethodCallExpre...
Is there a straight forward way to view the SQL command text actually executed against the underlying database by a DbCommand object (i.e. after the parameters have been processed into a statement)?
Here the detail: I'm using VB.Net 3.5 and have a factory object (DbProviderFactory) and a connection (System.Data.IDbConnection). I am usin...
I came across a weird behavior today w/ my web application. When I navigate from a page to another, I lose one particular session variable data.
I'm able to launch the app in firefox and able to see that the session data is not lost.
I use Response.Redirect(page2, false) to redirect to another page.
Below code was used to track sessi...
I want to use encryption algorithm available in .Net Security namespace, however I am trying to understand how to generate the key, for example AES algorithm needs 256 bits, that 16 bytes key, and some initialization vector, which is also few bytes.
Can I use any combination of values in my Key and IV? e.g. all zeros in Key and IV are...
I am wondering the best way to store an object in memory that is used in a lot of classes throughout an application.
Let me set up my problem for you:
We have multiple databases, 1 per customer. We also have a master table and each row is detailed information about the databases such as database name, server IP it's located and a few ...
In Evans DDD book he speaks of segregating concepts in the domain with "modules". The term "module" can translate to a number of different things in software development, both conceptual and concrete, so I'm wondering how would this concept of DDD modules be expressed in a C#.NET system and if there is any direct correlation to other use...
Hi StackOverflow,
I'm trying to group the following string into three groups.
0:0:Awesome:awesome
That being "0", "0" and "Awesome:awesome"
Using this regular expression:
^([0-9]+)\:([0-9]*)\:(.*)$
It works fine on online regex services: http://rubular.com/r/QePxt57EwU
But it seems like .NET doesn't agree.
...
Is there a way to remove the LineShape shadow effect when selecting the lineShape?
I tried
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
g.SmoothingMode = SmoothingMode.AntiAlias
Dim oldmode As SmoothingMode = g.SmoothingMode
g.DrawLine(_Pen, X1, Y1, X...
Followup question to http://stackoverflow.com/questions/2502930/how-can-i-compose-a-wcf-contract-out-of-multiple-interfaces.
I tried to merge multiple callback interfaces in a single interface. This yields an InvalidOperationException claiming that the final interface contains no operations. Technically, this is true, however, the inher...
In our own Jon Skeet's C# in depth, he discusses the 3 ways to simulate a 'null' for value types:
Magic value (e.g. earliest possible DateTime is taken to be 'null')
Reference type wrapper
boolean flag
It is mentioned that nullable types use the third method. How exactly do nullable types work under the hood?
...
Hi Guys,
Been tearing my hear out with this one. Let me see if I can explain:
I have a SharePoint results page on which I have a Search Results Core WebPart. Now I want to change the parameter in the querystring when I postback the page so that the WebPart returns different results for each parameter e.g. the querystring will be int...
Hi,
I am currently working on a project for a company with a Ubuntu LAMP server set up. All the workstations are on Windows XP/Vista. What we are trying to do is create a program to track parts in our warehouse. Server side would be programmed in PHP. However, I was thinking about using C# on the workstation side.
Is this possible? I...