Scott Woodgate and team – Announcing Windows Workflow Foundation
Scott Woodgate and team - Announcing Windows Workflow FoundationAt the PDC Microsoft announced Windows Workflow Foundation. Here Scott Woodgate and team (Abhay Parasnis and Paul Andrew) demonstrate the power...
Asp.Net “Atlas”
Asp.Net AtlasAsp.Net Atlas ForumASP.NET “Atlas” is a package of new Web development technologies that integrates an extensive set of client script libraries with the rich, server-based development platform of...
Converting Hexadecimal string to byte[]
string hexString = txtHex.Text; int discarded; txtByteCount.Text = ((int)HexEncoding.GetByteCount(hexString)).ToString(); txtLength.Text = hexString.Length.ToString(); byte byteArray = HexEncoding.GetBytes(hexString, out discarded);
Create ThumbNail from image byte[]
private byte GenerateThumbNail(byte foto){
System.IO.MemoryStream memStream = new System.IO.MemoryStream(foto);
int thumbWidth = 88; int thumbHeight = 100; if (QueryStringHelper.ItemType == "detail"){ thumbWidth = 250;thumbHeight = 250;}
System.Drawing.Image myImage = System.Drawing.Image.FromStream(memStream);
HtmlImage...
using System.Web.Mail with authentication
MailMessage msg = new MailMessage();
msg.From = ConfigurationSettings.AppSettings.ToString();msg.Subject = subject;msg.To = messageTo;msg.Fields = Settings.SmtpServer;msg.Fields = Settings.SmtpServerPort.ToString(CultureInfo.InvariantCulture);msg.Fields = 2;msg.Fields = 1;msg.Fields = Settings.SmtpSendUserName;msg.Fields = Settings.SmtpSendPassword;SmtpMail.Send( msg );
QueryStringPageViewer WebPart for Sharepoint
/// /// Mads Haugbø Nissen 2003(c) /// Objectware AS /// Norway /// /// http://weblogs.asp.net/mnissen /// /// The QueryStringPageViewer provides the same functionality as the regular...
SharePoint Tools Galore List
SharePoint toolsuites
Coras workplace suiteSuite with rollup webparts (for news,documents,tasks,...), navigation controls and full language localization (This is way cool...)
Syntergy Provide lots of modules such as replication technologies for...
How to run another application or batch file from my Visual C# .NET code
Example 1.Running a command line application, without concern for the results:
private void Run(){ System.Diagnostics.Process.Start(@"C:runFile.bat");}
Example 2.Retrieving the results and waiting until the process stops (running the process synchronously):
private...
Como Serializar um Objecto para XML e Deserializar um XML para Objecto
Serializar um Objecto para String (XML)
StringWriter sw = new StringWriter();
XmlSerializer serializer = new XmlSerializer(typeof(OBJECT));
serializer.Serialize(sw, getAcessoryEquipmentsRequest.SearchCriteria);
strXML = sw.ToString();
Deserializar uma String (XML) para Objecto
StringReader sr = new StringReader(strXML);
XmlSerializer serializer =...
Design Principles for AJAX Applications
Design Principles for AJAX Applications
Minimise traffic between browser and server so that the user feels the application is responsive.
Be clear on the interaction mode being used - regular...