I'm using the following code to render a gridview to an XLS file on an ASPX page:
Private Sub ExportGridviewToExcel()
Dim attachment As String = "attachment; filename=ItemSizeExport.xls"
Response.ClearContent()
Response.AddHeader("content-disposition", attachment)
Response.ContentType = "application/ms-excel"
Dim sw ...
Hi, i have a very small utilty app written in c# that works fine on my local machine but if i put it on a network drive and try to run it from there i get the following securityException..
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c...
I have this user defined function.
public partial class UserDefinedFunctions
{
static int i;
[SqlFunction(IsDeterministic = true)]
public static SqlSingle f()
{
return new SqlSingle(1.3F);
}
};
But it only works if i is readonly. Why?
...
I'm wondering what is the date when Microsoft will stop supporting .NET CF 1.0. According to Wikipedia .NET CF SP3 was released at January 2005, so standard 5 years support should end at January 2010.
However, I was unable to find a .NET Compact Framework on the dev tools support lifetime list, so it's only a guess.
Do you know what i...
I have some properties like OverlayColor, etc that I want to bind to an instance of a different type, but the bound data just doesn't change.
I use this:
[Bindable ( true )]
public Color OverlayColor { get; set; }
The UI changes but not the bound data. Bound data's property name is Color.
...
Is there anyone who knows this?
I have been trying this for the last week, and no luck.
Now I can see that once can bind successfully to a Button's Text property, but not its ImageKey property:
myButton.Text = "new text"; // really changes the bound data
myButton.ImageKey = "new text"; // does NOT change the bound data
I use:
myBut...
Is there an existing tool for Java that is similar to Microsoft's CHESS? Or is the CHESS source code open, so that I might try to convert it into Java?
...
I am trying to upload files to a web server using System.Net.WebClient.UploadFile but I keep getting a WebException. Specifically, I am getting 3 errors. I have no idea why I am not getting the same error, but they all seem to be related based on what I found online.
The request was aborted: The request was canceled.
Connection closed....
Hello. Recently I've ran into a problem about 3D graphics. The problem is I have some sorted data (data is represented by a collection of dots with coordinates X, Y, Z). What I need to do is draw a coordinate system with three normals (X, Y, Z) and render those dots according to their coordinates.
Any help would be welcomed, but I woul...
The current project I'm working on allows UserControls to be dynamically added to a page in a number of different placeholders across what could be an infinite number of templates. So basically using a CMS.
Awesome I hear you say but what happens when I want two of these UserControls to talk to each other? i.e. A search form control and...
I have a COM-Callable Wrapper on a .NET assembly. Some of the methods use streams (System.IO.Stream): either they accept a System.IO.Stream as input, or they return a System.IO.Stream .
I'd like to call one of those methods from a COM environment - Classic ASP.
Is there any possibility to get interop using ADODB.Stream? In other wo...
In the application we are working on we are trying to implement Help. We have a help pdf document and for the moment it has been deemed acceptable that when users click the help button it just opens the pdf. The application is a desktop app and the pdf file needs to be included in the install somehow and installed on the local machine. ...
public ActionResult Edit(string param)
{
}
http://localhost/Edit/5,someothervalue,etc
How can i reach 'param' from a global function. Basically I am trying to access the parameter in my url from a statinc method that I am building which will be global. That method breaks down the parameter and returns id and other things that I am pa...
What is the best way to test web service using NUnit.
I want it to be automated, i.e, I don't want to have a separate process to host the web service for the testing code to consume.
...
I have the following xaml:
<DockPanel>
<DockPanel>
<CheckBox IsChecked="{Binding Path=Test}" />
<CheckBox IsChecked="{Binding Path=Test}" />
</DockPanel>
<DockPanel DockPanel.Dock="Left" Width="10" Background="Blue">
<DockPanel.Style>
<Style>
<Style.Triggers>
...
i want to disable a particular key press in .net(both vb.net & c#.net). someone plz help!!!
...
Hi there,
How can i set a break point in a javascript function and have the IE toolbar break on it ... as i can do with Firebug? ... or can i do this in IE?
...
In my form, I have 8 textboxes. All of these need to be filled in, and I wanted to check if they are filled in before going to run the rest of the code.
The only way I've done it thus far is 8 nested IF statements, and this looks unorganised and seems like a horrible way to do it.
Can someone tell me a better way to do this? If there i...
Hi, Were is the problem in code..
i am trying to read the .gif file and writing to the another .gif, if i do so... the newly cretaed .gif file will not show correct image insted junk image comes were is the mistake in code.
private void ReadFile()
{
StreamReader MyReader = new StreamReader(@"C:\\Users\\admin\\Desktop\\apach...
Hi, all
I'm using OWC11.AxSpreadSheet control in my c# windows form. This control showing existing Excel file using XMLURL property. Excel worksheet contains merge cells, cross references, etc.
Problem:
When I try to get merge area OWC11.Range, then I see what:
1) property OWC11.Range.MergeArea return an COM error
2) OWC11.Range.Co...