Posts

How to save .EXE File DATabase in Binary Format

private void SetFileFromDB(string tableName, string binFieldName, string idFieldName, string idFieldValue, string filepath)         {             try             {                 StringBuilder strBuilder = new StringBuilder();                 strBuilder.Append(" SELECT ");                 strBuilder.Append(binFieldName);                 strBuilder.Append(" FROM ");                 strBuilder.Append(tableName);            ...

How to Get Registry

---------------Set Registry Key--------------------------------  public static bool GenRegKey(string strKeyValue)         {             string strKeyName = "AK_ECDRKEY";             Microsoft.Win32.RegistryKey key;             if (!CheckRegKeyExistsOrNot(strKeyName))             {                 try                 {                     key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(strKeyName);               ...

How to Create RDLC Report in .NET

   private DataTable ViewReport()     {         ReportBAL objBaseReport = new ReportBAL();         objBaseReport.GVSerialNumber = txtGiftVoucher.Text.Trim();         if (objBaseReport.GVSerialNumber == "")             objBaseReport.GVSerialNumber = "0";         objBaseReport.ShopId = Convert.ToInt32(ddlShop.SelectedValue);         objBaseReport.FromDate = txtFromDate.Text;         objBaseReport.ToDate = txtToDate.Text;         objBaseReport.IsDateChk = true;         DataSet ds = objDAL.ReportGiftVoucher(objBaseReport);         return ds.Tables[0];     } private void BindReport() ...
3 tier architecture example in asp.net with C# Introduction Here I will explain about uses of 3-Tier architecture and how to create or implement 3-tier architecture for our project in asp.net  Description 1.     What is the use of 3-tier architecture and why we go for that architecture?   2.     First we need to know what 3-Tier architecture is.   3.     How to create 3-Tier architecture for our project?   Uses of 3-Tier Architecture     1.     To make application more understandable.   2.     Easy to maintain, easy to modify application and we can maintain good look of architecture. 3.     If we use this 3-Tier application we can maintain our application in consistency manner.    Basically 3-Tier architecture contains 3 layers 1.     Application Layer or Presentation Layer   2. ...