|
I'm just about finished with a setup and deployment project, but one thing I'd like to change is this: when I go to install the newest version, it tells me that this program is already installed, so I have to go to 'Add/Remove Programs' to remove it first. I turned on the property 'remove previous versions', but it doesn't seem to work. Isn't there a way I can have the new installation remove the old one on its own?
My articles
BlackDice
|
|
|
|
|
You need to change the version number for the installer and change the product code for it to work.
|
|
|
|
|
DOH! I hate being an idiot sometimes. Thanks!!
My articles
BlackDice
|
|
|
|
|
I drag a "HTML control" ---"file field" and then I change it to run at server
when My Operating System is windows2000 server, I can simple set "write" security to
"everyone" ,and then I can upload the client file to server directory.
the code is below:
--------------------------------------------
private void btnUpLoad_Click(object sender, System.EventArgs e)
{
String fullfileName=this.File1.PostedFile.FileName;
String fileName=fullfileName.Substring(fullfileName.LastIndexOf("\\")+1);
this.File1.PostedFile.SaveAs(Server.MapPath("up")+"\\"+fileName);
}
--------------------------------------------
My question is: when I use windows XP, it doesn't work,when debug it,I find a error:
Access to the path "C:\Inetpub\wwwroot\uploadFile\up\tech.pdf" is denied.
So, I want to know Is there any common technology to do upload file to server
no matter what OS it is (for: windows2000 or windows XP,it can run correct?)
Can you show me how to do it??
Thank you very much!
shanzy
|
|
|
|
|
Does the ASPNET account, or whatever account your site is running under, have write permissions to the folder you're trying to put this file in? By default, it doesn't.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How do I determine the Type of the object that is calling a particular method from within the method?
|
|
|
|
|
AFAIK, you can't. From an OOP perspective, your method shouldn't even care what's or who is calling it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Its purely for logging purposes. I'm using log4net and planning to have a central logger. I'll have a static method for logging. It'll be good if the calling object's type can be retrieved automatically. Of course I can pass the type as a parameter to the method. But just wondering if it's possible to do it automatically...
|
|
|
|
|
Contrary to what Dave said, finding the Type is quite easy, getting an object reference is another story.
Look at the StackTrace class, a couple a frames down u will see the current method and the next frame will be your calling method. From the StackFrame get the MethodBase , and get the DeclaringType property for the calling type.
HTH
xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots
|
|
|
|
|
Cool. Come to think of it, I think I saw this question last week somewhere. The StackTrace won't give to the passed in params though.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Awesome. Thanks leppie. I just wanted the Type.
|
|
|
|
|
Hello,
I want to display a report using Crystal Reports. How can I format the report before displaying it in crystalReportViewer; something like page width, number of columns, etc...
Thank you
|
|
|
|
|
Members,
I am interested in maintaining my tab order on a web page. I have a very simple page with 2 dialog boxes & 2 dropdownlist boxes.
Field1 DropDownList1
Field2 DropDownList2
I have the tab order set from left to right from the top down. So, you cursor move from Field1 to DropDownList1, to Field2 and finally to DropDownList2.
However, when the selectedindexchanged event fires, I no longer maintain my focus and leave DropDownList1 and land in Field2.
Where does the cursor go (besides the address bar of the current webpage) and how to I get the focus to move to the next field in order?
Any thoughts would be appreciated.
Thank you.
|
|
|
|
|
What .NET class can I use to query the user rights of the user currently logged in?
|
|
|
|
|
What are you trying to do with this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
I need to Convert Row Data to Column Data in a Data table.
How do I do it.?
|
|
|
|
|
can u explain more in detail what u need?
<< >>
|
|
|
|
|
Hello,
Is there any information available on how to create a simple crystal report in Windows Form? Just want to see how I can manipulate the properties, etc...
Thank you.
|
|
|
|
|
hi there,
I'm pretty sure that there are a a lot of articles about this on CP site.
try to search....
below is just one of them
http://www.codeproject.com/csharp/leTaonarticle2.asp
<< >>
|
|
|
|
|
The article describes it for ASP.NET, I need the window app, and I can't find anything useful.
|
|
|
|
|
To use ReportDocument object, what System directives I have to load?
Thank you.
|
|
|
|
|
Hello, guys
I found an interesting topic on MS newsgroup. And I'd like to ask you a simple question. What is the value of "i " variable after the code ?
int i = 5;
i = i++;
???
Provide me, please, with an answer you though/expected just after you looked at the code. And then, any ideas why does C# compiler work so ? (if you will run the code, you will understand what I mean).
With best regards,
Andrew
|
|
|
|
|
The value of i will be 5 because the i++ increments the value AFTER the assignment.
If you want i to be 6 then you can do it like this:
<br />
int i = 5;<br />
i = ++i;<br />
The method above increments the value BEFORE the assignment.
By the way, this is not just a C# thing, any C syntax language shoould behave this way (incl. java, javascript, C++ etc..)
Si
|
|
|
|
|
Anonymous wrote:
By the way, this is not just a C# thing, any C syntax language shoould behave this way (incl. java, javascript, C++ etc..)
Yes, maybe other languages also should, but C++ produces 6. (managed and unmanaged versions).
With best regards,
Andrew
|
|
|
|
|
I guess "5"
It's actually the same with C(++), because the expression i++ is evaluated AFTER the statement.
modified 12-Sep-18 21:01pm.
|
|
|
|