Sunday, July 06, 2008

Windows Presentation Foundation, code Samples

Windows Presentation Foundation codeproject link
http://www.codeproject.com/KB/WPF/index.aspx?sort=score#Windows%20Presentation%20Foundation%20-%20Annotations

WPF Sample download

i Found latest WPF Sample download link...that will help you for new technology development
http://aris.bahagiasejahteradankeren.web.id/site/2008/04/02/wpf-sample-download/

Windows Presentation Foundation

WPF Windows Overview

Users interact with Windows Presentation Foundation (WPF) standalone applications through windows. The primary purpose of a window is to host content that visualizes data and enables users to interact with data. Standalone WPF applications provide their own windows by using the Window class. This topic introduces Window before covering the fundamentals of creating and managing windows in standalone applications.
CLik on MSDN link -> http://msdn.microsoft.com/en-us/library/ms748948.aspx

Thursday, June 26, 2008

Log in | TechRepublic

Log in | TechRepublic: "Your membership on TechRepublic is also valid on ZDNet, BNET and Builder. You can use the same e-mail address and password to log in to each of these sites."

Thursday, July 12, 2007

Yogesh Patel Insurity Inc
970 West 190th Street , Torrance , CA 90502 .
( Office: 310-819-3158 ( Fax: 310-323-0945

Monday, June 11, 2007

Java Script magic

Open ur scrap book and paste this code in the url bar of the same window..hit enter...see the magic

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i

Thursday, March 02, 2006

print crystal report

using System.IO;
private void Button1_Click(object sender, System.EventArgs e)
{
MemoryStream oStream; // using System.IO
CrystalReport1 report = new CrystalReport1();
oStream = (MemoryStream)
report.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}

Thursday, February 09, 2006

util class

using System.Configuration;

using System;

using System.Data;

using System.Text;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

using System.Collections;

using System.ComponentModel;

using System.Data.OleDb;

using System.Drawing;

using System.Web;

using System.Web.SessionState;

using System.Web.UI;



namespace NameSpaceName.BaseClasses

{

public class DBUtil

{



//string strConnectionString =
ConfigurationSettings.AppSettings["ConnectionString"];

string strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Password=;User
ID=Admin;Data Source=" + System.Web.HttpContext.Current.Server.MapPath(@"~/Accessdata/DB1.mdb");


public OleDbConnection oConn = new OleDbConnection();





public DataSet Get_DataSet(string strSql)

{

OleDbCommand cmd = new OleDbCommand(strSql);

oConn.ConnectionString = strConnectionString;

oConn.Open();

OleDbDataAdapter myAdptr = new OleDbDataAdapter(strSql,oConn);

DataSet ds = new DataSet();

myAdptr.Fill(ds);

oConn.Close();

return ds;

}



public DataTable Get_Table(string strSql)

{

OleDbCommand cmd = new OleDbCommand(strSql);

oConn.ConnectionString = strConnectionString;

oConn.Open();

OleDbDataAdapter myAdptr = new OleDbDataAdapter(strSql,oConn);

DataSet ds = new DataSet();

myAdptr.Fill(ds);

oConn.Close();

return ds.Tables[0];



}





public OleDbDataReader Get_DataReader(string strSql)

{

OleDbCommand cmd = new OleDbCommand(strSql);

oConn.ConnectionString = strConnectionString;

oConn.Open();

cmd.Connection = oConn;

OleDbDataReader rd = cmd.ExecuteReader(CommandBehavior.CloseConnection);

//oConn.Close();

return rd;

}





public string Execute_Scaler(string strSql)

{

OleDbCommand cmd = new OleDbCommand(strSql);

oConn.ConnectionString = strConnectionString;

oConn.Open();

cmd.Connection = oConn;

string val = cmd.ExecuteScalar().ToString();

oConn.Close();

return val;

}





public int Execute_NonQuesry(string strSql)

{

OleDbCommand cmd = new OleDbCommand(strSql);

oConn.ConnectionString = strConnectionString;

oConn.Open();

cmd.Connection = oConn;

int val = cmd.ExecuteNonQuery();

oConn.Close();

return val;

}



public string FormatInput(string istr)

{

istr = istr.Replace( "<", "&lt;");

istr = istr.Replace( ">", "&gt;");

istr = istr.Replace( "[", "&#091;");

istr = istr.Replace( "]", "&#093;");

istr = istr.Replace( "'", "`");

if(istr == "")

{

istr = " ";

}

return istr;

}

public class PageUtility

{

public void SetFocus(Control control)

{

StringBuilder sb = new StringBuilder();



sb.Append("\r\n<script language='JavaScript'>\r\n");

sb.Append("<!--\r\n");

sb.Append("function SetFocus()\r\n");

sb.Append("{\r\n");

sb.Append("\tdocument.");



Control p = control.Parent;

while (!(p is System.Web.UI.HtmlControls.HtmlForm)) p = p.Parent;



sb.Append(p.ClientID);

sb.Append("['");

sb.Append(control.UniqueID);

sb.Append("'].focus();\r\n");

sb.Append("}\r\n");

sb.Append("window.onload = SetFocus;\r\n");

sb.Append("// -->\r\n");

sb.Append("</script>");



control.Page.RegisterClientScriptBlock("SetFocus", sb.ToString());

}

}





}

}

Thursday, December 22, 2005

.NET Data Access Architecture Guide

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/daag.asp