How to view saved password of wifi on android device?


Install ES File Explorer then navigate to data/misc/wifi folder and you will find a file named wpa_supplicant.conf. Tap on the file to open it up and make sure you use ES File Explorer 's built-in text/HTML viewer for the task. In the file you should be able to see the network SSID and their passwords next to it.

Required:

Rooted Android Device and root privilege to ES File Manager.

Root Es File Manager

File Explore In Es File Manager

View Password

Now, you can see the ssid and password saved on your android.

Print Crystal Report from own button in asp.net c#


C# code to print crystal report in asp.net from print button

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Data; 
using SoftHMS.GUI.MISC; 
using SoftHMS.Layer.Business; 

namespace SoftHMS.GUI.Pharmacy.PharmacyReports 
{ 
public partial class breakageReport : System.Web.UI.Page 
{ 
DataSet ds = new DataSet(); 
CrystalDecisions.CrystalReports.Engine.ReportDocument doc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

protected void Page_Load(object sender, EventArgs e) 
{ 
DateTime TodayDate = DateTime.Now; 
string todaydate = SoftHMS.GUI.NepDate.getNepaliDate(TodayDate).Replace("/", "-"); 
if (!Page.IsPostBack) 
{ 
txtFromDate.Text = todaydate; 
txtTodate.Text = todaydate; 
} 
if (Request.QueryString["act"] == "Print") 
{ 
BreakageBLL obj = new BreakageBLL(); 
string doclocation = Server.MapPath("~/Pharmacy/cryBreakage.rpt"); 
doc.Load(doclocation); 
string fromDate = Request.QueryString["fromdate"].ToString(); 
string toDate = Request.QueryString["todate"].ToString(); 
//obj.FromDate = Convert.ToDateTime(fromDate); 
// obj.ToDate = Convert.ToDateTime(toDate); 
ds = obj.GetBreakageDetailsforReport(); 
doc.SetDataSource(obj.GetBreakageDetailsforReport()); 
BreakageReportViewer.ReportSource = doc; 
doc.SetParameterValue("nepdate", todaydate); 
doc.SetParameterValue("fdate", fromDate); 
doc.SetParameterValue("tdate", toDate); 
BreakageReportViewer.DataBind(); 
} 
} 

protected void Button1_Click(object sender, EventArgs e) 
{ 
string fromDate = txtFromDate.Text; 
string toDate = txtTodate.Text; 
//Response.Redirect("breakageReport.aspx?act=print&fromdate=" +fromDate+ "&todate="+ toDate+""); 
Response.Redirect("breakageReport.aspx?act=Print&fromdate=" +fromDate + "&todate=" + toDate + ""); 
} 
//Print Button
protected void btnPrint_Click(object sender, EventArgs e) 
{ 
try 
{ 
if (ds.Tables.Count < 1) 
{ 
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Report is not generated. Please generate report first to print.')", true); 
// doc.PrintToPrinter(1, true, 0, 0); 
} 

else 
{ 
//Print Code
doc.PrintToPrinter(1, true, 0, 0); 
//ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Report is not generated. Please generate report first to print.')", true); 
}
} 
catch (Exception ex) 
{ }
} 
} 
}

How to use Android as a Webcam


camera to webcam
Requirements:
  • Android Mobile
  • Google or Firefox Browser
Steps to Follow:-
Step 1: Download and install IP webcam for Android and PC.
Step 2: Run App on your android device and change the settings of the device according to your requirements. You could change the video quality, which camera to use, rear and main, username, password, etc.
Step 3: After changing the settings, click on Start Server.
Step 4: An IP address would start showing on the bottom of the App of your android phone.
Step 5: Run IP Webcam application on PC and fill the IP address and Port under Camera Feed URL. Now click on AutoDetect.
Now your device’s Camera is synced with your PC which you can use to replace with your bad quality webcam. 

Method To Accept All Pending Friend Requests At Once


Facebook is one of the biggest social media platform ever. We make friends on Facebook and do chat, share thoughts and memories through status, images and videos. Facebook is place where not only we make friends but many users play games, many developers, marketer, small business depends on Facebook. Just because Facebook is the easiest way to convey the message to the short period of time. We can easily reach millions of people through pages and groups. If you want to accept all pending friend requests on a single, follow these steps.
  • First of all, click the below-given link and open it into the browser in which you have opened your Facebook account.
https://www.facebook.com/reqs.php
  • After opening above given link in the browser. All Pending request will visible there. 
  • Now Click F12 to open console box or even you can open it by doing right through Inspect Element
  • Copy below-given code and paste it in the console box. It will look like as shown below.
accept-confirm-all-facebook-friend-request-script

javascript:for( i = 0;i<document.getElementsByName("actions[accept]").length;i++){document.getElementsByName("actions[accept]")[i].click();}void(0);

  • After pasting the above-given code. Press Enter and wait for some time until all pending request will not get confirmed. 
  • Now Scroll down and make sure all request are accepted. In case, their is a See more options then click on it.
  • Again run the same script in the console to accept the request of pending request.
  • accept-confirm-all-facebook-friend-request-script
  • Follow the same process until all the request will not get accepted. 
accept-confirm-all-facebook-friend-request-script-run
I hope you like this trick to accept all pending friends request. If you face any issue or want to suggest regarding this topic must leave your precious comment.

Source: Online

How to show alert box in ASP.NET after data inserted successfully using C#


Write this line after your insert code:

ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Data has been inserted successfully.')", true);