Pages

Subscribe:

Ads 468x60px

Monday, October 15, 2012

How to Go back from current webpage in asp.net suing c#

In this web Programming tutorial we will learn that how we can go back from Current web page to previous one by clicking on the HTML button.
 

How to print a web page using javascript.

In this web Programming tutorial we will learn that how we can add Printing functionality on our web page using javascript in a asp.net or simple html page. see the below code and just copy and paste it.
 
Code to use in HTML part you want to print.
  
// Content Will goes here you want to print.

how to reboot or Restart your computer from web page in asp.net using c#

In this web-healer.blogspot.com's web programming tutorial we will learn that how we can Restart our computer by clicking on a button from our website. So below is the dream code just copy and paste it. and use it in your button's onClick event.
 System.Diagnostics.Process.Start("shutdown.exe", "-r -t 0");

how to shutdown you computer from website in asp.net using c#

In this web-healer.blogspot.com's web programming tutorial we will learn that how we can shutdown our computer by clicking on a button from our website. So below is the dream code just copy and paste it. and use it in your button's onClick event.
System.Diagnostics.Process.Start("shutdown.exe", "-s -t 0")

how to sow date and time on a asp.net page using c#

In this web-healer.blogspot.com's web programming tutorial we will learn that how we can show simple date and time on our web page in asp.net using c#. just copy and paste the below code.
 if (!Page.IsPostBack)
        {
            lbl_date.Text = DateTime.Now.ToLongDateString();
            TxtDateTo.Text = DateTime.Today.ToString("MM/dd/yyyy");
        }  

how to call a javascript function from server side page load event in asp.net using c#

In this web programming tutorial we will learn that how we can call a javascript function from server side in asp.net using c#. see the below simple code in which we are trying to call a radiobutton click event that is defined in Client side, but we will call it on page load event in asp.net using c#. Javascript Function in head section
 
Code for Function call in .CS file on Server side in page load event.
   protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {    
         RBAllHis.Attributes.Add("onclick", "others()");
        }
    }       
 

Saturday, October 13, 2012

import to excel in asp.net using c#

In this web programming tutorial we will learn that how we can import our Gridview data into excel file by click on a link button from our webpage in asp.net using c#.
  protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Response.ClearContent();
        Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls");        
        Response.ContentType = "application/excel";
        StringWriter sw = new StringWriter();
        HtmlTextWriter htw = new HtmlTextWriter(sw);     
        this.ClearControls(GridView1);
        GridView1.RenderControl(htw);       
        Response.Write(sw.ToString());
        Response.End();
    }
  private void ClearControls(Control ctrl)
    {
        for (int i = ctrl.Controls.Count - 1; i >= 0; i--)
        {
            ClearControls(ctrl.Controls[i]);
        }

        if (!(ctrl is TableCell))
        {
            if (ctrl.GetType().GetProperty("SelectedItem") != null)
            {
                LiteralControl literal = new LiteralControl();
                ctrl.Parent.Controls.Add(literal);
                try
                {
                    literal.Text = (string)ctrl.GetType().GetProperty("SelectedItem").GetValue(ctrl, null);
                }
                catch
                {

                }

                ctrl.Parent.Controls.Remove(ctrl);
            }

            else

                if (ctrl.GetType().GetProperty("Text") != null)
                {
                    if (ctrl.Visible == true)
                    {
                        LiteralControl literal = new LiteralControl();
                        ctrl.Parent.Controls.Add(literal);
                        literal.Text = (string)ctrl.GetType().GetProperty("Text").GetValue(ctrl, null);
                        ctrl.Parent.Controls.Remove(ctrl);
                    }
                }
        }
        return;

    }

how to clear all gridview elements in aps.net using c#

In this simple web Programming tutorial we will learn that how we can clear all Controls available in a gridview by just one click instead clearing one by one. like as we clear a form's text fields or other form elements. just copy the below code in your .CS file. Function call.
        this.ClearControls(GridView1);
        GridView1.RenderControl(htw);
Method to clear Gridview fields.
 private void ClearControls(Control ctrl)
    {
        for (int i = ctrl.Controls.Count - 1; i >= 0; i--)
        {
            ClearControls(ctrl.Controls[i]);
        }

        if (!(ctrl is TableCell))
        {
            if (ctrl.GetType().GetProperty("SelectedItem") != null)
            {
                LiteralControl literal = new LiteralControl();
                ctrl.Parent.Controls.Add(literal);
                try
                {
                    literal.Text = (string)ctrl.GetType().GetProperty("SelectedItem").GetValue(ctrl, null);
                }
                catch
                {
                }
                ctrl.Parent.Controls.Remove(ctrl);
            }
            else
                if (ctrl.GetType().GetProperty("Text") != null)
                {
                    if (ctrl.Visible == true)
                    {
                        LiteralControl literal = new LiteralControl();
                        ctrl.Parent.Controls.Add(literal);
                        literal.Text = (string)ctrl.GetType().GetProperty("Text").GetValue(ctrl, null);
                        ctrl.Parent.Controls.Remove(ctrl);
                    }
                }
            }
        return;
    }


how to define session as string in asp.net using c#

In this simple web programming tutorial we will learn that how we can define a Session as string in asp.net using C# to assign it to a string veriable. see the written below code and just copy and paste it.

  string data = Session["Data_var"] as string;

How to find the Previous Page Control's value on a current page in asp.net using c#

In this web Programming tutorial we will learn that how we can find or access a control like label, Dropdown, radiobutton, textbox etc from a previous page and its value to use in current page from gridview in asp.net using c#.
See the below code and just copy and paste the code and have fun.
  
  protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    {
     if (e.Row.RowType == DataControlRowType.DataRow)
        {
            if (!empty)
            {                
                Label lblcharges = e.Row.FindControl("lbl_charges") as Label;  
             }
         }  
   }

Control Function method .CS file of Current page to access the control's Value.

   private Control FindControl(string controlID, ControlCollection controls)
    {
        foreach (Control c in controls)
        {

            if (c.ID == controlID)

                return c;
            if (c.HasControls())
            {
                Control cTmp = this.FindControl(controlID, c.Controls);

                if (cTmp != null)

                    return cTmp;
            }

        }
        return null;
    }

  

Format String into Money Format in asp.net using c#

In this programming Tutorial we will learn that how we can format amount string into money. below is the code just copy and paste and use it.

string charges = "125.35";
lbl_charges_total.Text  = string.Format("{0:###,###,##0.00}", charges);

Friday, October 12, 2012

how to add new row in gridview in asp.net using c#

In this web programming tutorial we will learn how we can add new column in a Gridview when there is no record and we want to show a proper message that there is no data against particular search in asp.net using c#. see the below code and copy and past.
          
              int columncount = GridView1.Rows[0].Cells.Count;
              GridView1.Rows[0].Cells.Clear();
              GridView1.Rows[0].Cells.Add(new TableCell());
              GridView1.Rows[0].Cells[0].ColumnSpan = columncount;
              GridView1.Rows[0].Cells[0].Text = "No Record Found ";
              GridView1.Rows[0].Cells[0].HorizontalAlign = HorizontalAlign.Center;
              GridView1.Rows[0].Cells[0].ForeColor = System.Drawing.Color.Maroon;
          

Friday, October 5, 2012

Free Download µTorrent 3.2.1 Full Version

Download


Features that make Torrent so popular.
Tiny

Tiny

µTorrent is less than 800 KB (smaller than a digital photo!). It installs ultra-fast with a light footprint on your computer, and runs super-efficiently.
Easy

Easy

Simple and straightforward – that's µTorrent. With its purpose-built interface, downloading torrents is a snap.
Accessible

Accessible

Access µTorrent from anywhere with µTorrent Remote. Easily access your home clients securely (using ultra-private authentication and key-exchange).
Innovative

Innovative

Since µTorrent is offered by the team who invented the BitTorrent open source protocol, you know you will always have access to the latest and greatest technologies.
Fast

Fast

Expertly designed for fast downloads. Avoids hogging valuable system resources, runs quietly in the background, and doesn't interfere with your work, play etc.
Cuttingedge

Cutting Edge

Incorporating groundbreaking µTP technology, µTorrent maximizes bandwidth and reduces congestion - so you have the smoothest, quickest downloads possible and don't make your internet connection slow to a crawl.
Intelligent

Intelligent

µTorrent is instinctively smart. It auto-adjusts bandwidth usage based upon your network and the Internet. Use Skype, play games, stream video etc., all without interference.
Plug n Play

Plug-n-Play

µTorrent is a snap to install on your home network. In most cases, it's plug-n-play. We also use UPnP and NAT-PMP technologies to prepare your router for torrent access.
Download

Wednesday, October 3, 2012

Free Download Internet Download Manager v6.05 build 11 Full Version

Internet Download Manager v6.05 build 11. Fixed compatibility problems with different browsers including IE 9.0  Final, Mozilla Firefox 4, Google Chrome. Improved FLV grabber to save videos from  Online Video players Such as  on YouTube, WOW! Google Video, MySpace TV and other popular Live Video Streaming sites..


Internet Download Manager V6.05 Build 11. (IDM) is a such tool which increases download speeds by up to 8 times, resume and schedule downloads. Comprehensive error recovery and resume capability will restart broken or interrupted downloads due to lost connections, network problems, computer shutdowns, or unexpected power outages. Simple graphic user interface makes IDM user friendly and easy to use.Internet Download Manager has a smart download logic accelerator that features intelligent dynamic file segmentation and safe multipart downloading technology to accelerate your downloads. Unlike other download managers and accelerators Internet Download Manager segments downloaded files dynamically during download process and reuses available connections without additional connect and login stages to achieve best acceleration performance. Internet Download Manager supports proxy servers, ftp and http protocols, firewalls, redirects, cookies, authorization, MP3 audio and MPEG video content processing. IDM integrates seamlessly into Microsoft Internet Explorer, Netscape, MSN Explorer, AOL, Opera, Mozilla, Mozilla Firefox, Mozilla Firebird, Avant Browser, MyIE2, and all other popular browsers to automatically handle your downloads. You can also drag and drop files, or use Internet Download Manager from command line. Internet Download Manager can dial your modem at the set time, download the files you want, then hang up or even shut down your computer when it's done. Other features include multilingual support, zip preview, download categories, scheduler pro, sounds on different events, HTTPS support, queue processor, html help and tutorial, enhanced virus protection on download completion, progressive downloading with quotas (useful for connections that use some kind of fair access policy or FAP like Direcway, Direct PC, Hughes, etc.), built-in download accelerator, and many others. Version 6.05 adds IDM download panel for web-players that can be used to download flash videos from sites like YouTube, MySpaceTV, and Google Videos. It also features complete Windows 7and Vista support, YouTube grabber, redeveloped scheduler, and MMS protocol support. The new version also adds improved integration for IE and IE based browsers, redesigned and enhanced download engine, the unique advanced integration into all latest browsers, improved toolbar, and a wealth of other improvements and new features.

Download From he following Link Directly.

Click On the Image to downlaod


Click Here to download

Monday, October 1, 2012

Download Free Adobe Photoshop 7.0 For Free

Adobe photoshop is the best software for Graphics designing and photo editing either for photography or web designing or Template designing or Making logos or any other thing related to photography. photo shop provide best and easy way to do all this. below is the link to download free registered adobe photo shop shoftware to download. just download it and install it. and have fun. In order to download Adobe Photoshop  click on below picture link.

Click here to download Photoshop