|
it's not going to work under vista. It is however how i used to do stuff prior to things like ClickOnce.
I guess even on vista you could call an update exe in your install root requesting elevated priviledges and then quit. This would leave the update exe able to copy over your old exe. You'd also need to think of a way of replacing the updater if the code in there needed replacing.
What will you do about things like host file redirects to ensure that malicious software doesn't use your update service to get a payload onto the machine?
The app i'm currently working on is the kind of app that the network admins would go nuts if we caused an update without telling them so we provide a message in program telling them to run an update at their own convenience.
It's such a shame that user's can't add repositories to windows update like you can in yum or aptitude, it would be so good to have a central updating system that could be controlled by net admins etc; on the plus side we got a round start button and glass effect windows so i suppose we shouldn't complain.
Russell
|
|
|
|
|
Thanks Russel. So ultimately you suggest ClickOnce ?
|
|
|
|
|
|
Vasudevan Deepak K wrote: http://windowsclient.net/articles//appupdater.aspx[^]
Thanks Vasudevan. That was helpful.
|
|
|
|
|
Hi
I set a view state as following:
ViewState["roomsql"] = SqlDataSource_rooms_to_update.SelectCommand.ToString();
I then use an if statement to check if its blank:
if ((string)ViewState["roomsql"] == "")
however the if statement doesn't work as it constantly reads the viewstate as having a value in it when it doesn't
has anyone encountered this problem before?
thanks
|
|
|
|
|
If (string)ViewState["roomsql"] contains a null value then your statement if ((string)ViewState["roomsql"] == "") will always return false.
Try checking for null rather than "".
Regards
Guy
You always pass failure on the way to success.
|
|
|
|
|
Use string.IsNullOrEmpty((string)ViewState["roomsql"])
And I really wouldn't recommend you storing SQL in the viewstate. It is too easily read and the SQL would likely contain information that a hacker would find useful.
|
|
|
|
|
I'd also advise against it because it's just plain bad practice coupling the view to the database like this.
|
|
|
|
|
Pete O'Hanlon wrote: it's just plain bad practice coupling the view to the database like this
Good point.
|
|
|
|
|
Hi everybody!
I want to serialize a B+ tree. My class structure is the following:
class BPlusTree
{
private Node root;
private int nodeSize;
private class Node
{
private List<node> nodes;
private List<object> keys;
private bool isLeaf;
private List<object> values;
private Node parent;
private int size;
}
}
I don't know if it is possible to serialize a tree.All the example which i found serialize just simply classes. None of them didn't serialize a class which has an inner class.
Is it possible to make this tree serializable? If it possible how can i make this?
Thanks a lot for your help!
Have a nice day!
|
|
|
|
|
Mark both classes as Serializable, and implement a public property for each field. It can now be serialized.
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
Hi,
I need to send email from C#.NET windows form i am able to send the mail successfully.
But there is a problem that i need small image in signature so how can i send image in email signature...........
|
|
|
|
|
The best way, is to assume it's HTML mail and include a link to the image somewhere on the web. If it's not HTML mail, you can't do it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You will have to send the mail as HTML, you can also embed the image as a linked resource if required.
MailMessage mm = new MailMessage();<br />
<br />
<br />
AlternateView av = AlternateView.CreateAlternateViewFromString(body, Encoding.Unicode, "text/html");<br />
<br />
imageStream = new MemoryStream(resourceImageBytes, false);<br />
LinkedResource imageResource = new LinkedResource(imageStream);<br />
imageResource.ContentId = "signature";<br />
imageResource.ContentType = new ContentType("image/jpeg");<br />
<br />
av.LinkedResources.Add(imageResource);<br />
<br />
mm.AlternateViews.Add(av);
|
|
|
|
|
I have search Google but not found such type of designing tool for creating softwares. Just like VS.net diagram tool but with extra functionalities.
Please provide only name or link.
|
|
|
|
|
You want something that does more than VS.NET but is free ? More in what way ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Like ProxyDesigner or MetaMill?
But the latter is shareware, I guess.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Have you looked at SharpDevelop? It's free.
|
|
|
|
|
I have 3 textboxes on my webform (Sender's email,name, age).
When they hit submit, an email must be sent to an email address eg. me@gmail.com with the subject and the body should be the information from the 3 textboxes.
How can I do this?
|
|
|
|
|
1 - try using the ASP.NET forum for ASP.NET questions
2 - try using google first, the web abounds with examples on how to perform this trivial task
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Have a look at
System.Net.Mail namespace.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi.
I want to convert a word typed in english to its corresponding word in tamil.
This has to be done in C#.net.
Pls suggest me how to do this.
|
|
|
|
|
Create a database by typing in an Enlgish to Tamil dictionary, and then make a database call.
Sorry, that's it, it's a programming language, there's no translation services built in.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|