Sunday, April 29, 2007

Microsoft Pre-Release Software Microsoft .NET Framework 3.5 – Beta 1 Realeased on 4/27/2007

Overview
               The Microsoft .NET Framework 3.5 Beta 1 is a preview release of the latest version of the .NET Framework. Many ISV’s, enterprises and Microsoft product teams are successfully building on the new features Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF) and Windows CardSpace in the .NET Framework 3.0. Microsoft plans to continue to invest in the .NET Framework developer platform and in support of existing users the .NET Framework 3.5 has a minimal number of breaking changes. So that existing applications built for .NET Framework 2.0 or .NET Framework 3.0 should continue to run without requiring changes. The .NET Framework 3.5 adds new features in several major technology areas;

including:
  • Deep integration of Language Integrated Query (LINQ) and data awareness
  • ASP.NET AJAX for quickly creating more efficient, more interactive and highly-personalized Web experiences that work across all the most popular browsers
  • New web protocol support for building WCF services including AJAX, JSON, REST, POX, RSS, ATOM and several new WS-* standards
  • Full tooling support for WF, WCF and WPF including the new workflow-enabled services technology
  • New classes in the base class library (BCL) for the .NET Framework 3.5 address the most common customer requests.
For more detail






The .NET Show: ASP.NET AJAX Extensions (Mobile)

Description
                Matt Gibbs, prinicpal development manager, and Brad Abrams, group program manager, join the .NET Show to discuss and demonstrate the new ASP.NETAJAX Extensions, which enables you to quickly create Web pages that include a rich user experience with responsive and familiar user interface (UI) elements.


Download


Overview
              ASP.NET AJAX provides client-script libraries that incorporate cross-browser ECMAScript (JavaScript) and dynamic HTML (DHTML) technologies, and it integrates them with the ASP.NET 2.0 server-based development platform. By using ASP.NET AJAX, you can improve the user experience and the efficiency of your Web applications.







Speech SDK 5.1

            The Microsoft Speech SDK 5.1 adds Automation support to the features of the previous version of the Speech SDK. You can now use the Win32 Speech API (SAPI) to develop speech applications with Visual Basic ®, ECMAScript and other Automation languages.


Overview

             The Microsoft Speech SDK 5.1 adds Automation support to the features of the previous version of the Speech SDK. You can now use the Win32 Speech API (SAPI) to develop speech applications with Visual Basic ®, ECMAScript and other Automation languages. The SDK also includes freely distributable text-to-speech (TTS) engines (in U.S. English and Simplified Chinese) and speech recognition (SR) engines (in U.S. English, Simplified Chinese, and Japanese).










Saturday, April 28, 2007

Sending Mail Using System.Net.Mail

protected void btSend_Click(object sender, EventArgs e)
{
try
{
MailMessage mM = new MailMessage();
mM.From = new MailAddress(txtFrom.Text);
mM.To.Add(txtTo.Text);
mM.Subject = txtSub.Text;
mM.Body = txtMsg.Text;
mM.IsBodyHtml = true;
mM.Priority = MailPriority.High;
//SmtpClient sC = new SmtpClient("smtp.mail.yahoo.com");
SmtpClient sC = new SmtpClient("smtp.gmail.com");
sC.Port = 587;
//sC.Credentials = new NetworkCredential("Y! UserId", "Y! Pwd");
sC.Credentials = new NetworkCredential("Gmail UserId", "Gmail Pwd");
sC.Send(mM);
lbReport.Text = "Mail Send Successfully";
lbReport.ForeColor = Color.Green;
}
catch(Exception ex)
{
lbReport.Text = ex+"Mail Sending Fail's";
lbReport.ForeColor = Color.Red;
}
}

Controls Used & Id's

Text Box = txtFrom, txtTo, txtSub, txtMsg.
Button = btSend.
Label = lbReport.(For Mail Status).




Sunday, April 15, 2007

Custom Alert Box Using JavaScript

Coding

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML >
<HEAD >
<title >Custom Alert Box</title >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<script >
document.onclick=disableEvents
document.oncontextmenu=disableEvents
var ef=0
function custAlert()
{
ef=1
var ids
ids=document.getElementById('alert')
ids.style.left=300;
ids.style.top=150;
ids.style.visibility="visible"
}

function disableEvents()
{
if(ef)
return false;
}
</script >
</HEAD >
<body bgColor="#ffffff" onLoad="custAlert();"style="overdflow:hidden" >
<form id="Form1" method="post" runat="server" >
<div align="center" id="alert" style="border:2px solid gray; background:#cdeb8b
url('images/img3.gif') repeat-x; LEFT:240; VISIBILITY:hidden; WIDTH:349; COLOR:red;
POSITION:absolute; TOP:104; HEIGHT:108" >
<br >
<h3 style="LEFT:0;WIDTH:152;POSITION:absolute;TOP:0;HEIGHT:40;align:Left" >
<font color="#356AA0" >Custom Alert Box</font ></h3 >
<IMG style="LEFT: 336px; WIDTH: 6px; POSITION: absolute; TOP: 8px; HEIGHT: 6px"
height="6" alt="Close" src="images/Cross.png" onClick="ef=0;document.getElementById('alert').style.visibility='hidden';" >
<br >
<HR width="99.03%" SIZE="1" style="LEFT: 0px; WIDTH: 99.03%; POSITION: absolute;
TOP: 32px; HEIGHT: 1px" >
<div id="msg" style="FONT-WEIGHT: bold; FONT-SIZE: smaller; TEXT-TRANSFORM: capitalize; WIDTH: 349; COLOR: #356aa0; FONT-FAMILY: 'Times New Roman', Verdana, Arial, sans-serif; HEIGHT: 85; TEXT-DECORATION: none" >
NJoy Programming<p >Success be Yours</div >
<p > </div >
</form >
</body >
</HTML >

Program Demo(Tested In IE 7 & Firefox 2.0.0.12)

Background Image



Close Image



Place The Close and Background image withing the Images folder of the root dir

Output



Friday, April 6, 2007

Shell Command Using C#

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace ProjTesting
{
///


/// Summary description for Form1.
///

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btTriIE;
///
/// Required designer variable.
///

private System.ComponentModel.Container components = null;

public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
}

///
/// Clean up any resources being used.
///

protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

private void InitializeComponent()
{
this.btTriIE = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btTriIE
//
this.btTriIE.Location = new System.Drawing.Point(32, 32);
this.btTriIE.Name = "btTriIE";
this.btTriIE.TabIndex = 0;
this.btTriIE.Text = "Trigger IE";
this.btTriIE.Click += new System.EventHandler(this.btTriIE_Click);
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 273);
this.Controls.Add(this.btTriIE);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);

}
#endregion

///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.Run(new Form1());
}

private void btTriIE_Click(object sender, System.EventArgs e)
{


System.Diagnostics.Process Proc = new System.Diagnostics.Process();

/*System.Diagnostics namespace provides classes that allow you to interact with system processes, event logs, and performance counters.*/

/*Process Class which Provides access to local and remote processes and enables you to start and stop local system processes.*/


Proc.StartInfo.FileName = "IEXPLORE.EXE";

/*Process.StartInfo Class class which Specifies a set of values used when starting a process, StartInfo Gets or sets the properties to pass to the Start method of the Process.FileName is the Public Properties of ProcessStartInfo which Gets or sets the application or document to start.*/



Proc.StartInfo.WorkingDirectory = @"%Program Files%\Internet Explorer\";


/* WorkingDirectory this also an Public Properties of ProcessStartInfo which Gets or sets the initial directory for the process to be started.*/


Proc.StartInfo.Arguments= "http://www.xploredotnet.blogspot.com/";


/* Arguments is Public Properties Of StartInfoClass which Gets or sets the set of command line
arguments to use when starting the application.*/


Proc.Start();

/* Start Is Public Methods Of Process Members Overloaded. Starts a process resource and associates it with a Process component.*/


}
}
}




Wednesday, April 4, 2007

Create Home Page Shortcut Desktop

Imports System.IO
Public Class WebForm1
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
Private Sub InitializeComponent()

End Sub
Protected WithEvents Bt As System.Web.UI.HtmlControls.HtmlInputButton

'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region
Dim s As String
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Const fsoForWriting = 2
s = "www.Google.com"
Dim objFSO
objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Open the text file
Dim objTextStream
objTextStream = objFSO.OpenTextFile("C:\Documents and Settings\All Users\Desktop\HomePage.url", fsoForWriting, True)
objTextStream.WriteLine("[InternetShortcut")
objTextStream.WriteLine("URL=" & s)
objTextStream.WriteLine("C:\Program Files\Internet Explorer\IEXPLORE.EXE")
'Close the file and clean up
objTextStream.Close()
objTextStream = Nothing
objFSO = Nothing
End Sub

Private Sub Bt_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Bt.ServerClick
End Sub
End Class





Creative Commons License
Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.