- First you have to declare it with board rate 9600 Serial.begin(9600); - Then we check is serial port is available. If available then we write data to it. if (Serial.available()>0) { Serial.Write(byte data); }
For generating the random rows from the data set first you have to generate the random numbae and this number is pass to the dataset CODE: SqlConnection con = new SqlConnection("Data Source=NIRAV-PC;Initial Catalog=Student;Integrated Security=True"); con.Open(); string str = "select * from StudentDetail"; SqlCommand cmd =new SqlCommand(str,con); SqlDataAdapter sda = new SqlDataAdapter(cmd); DataSet ds =new DataSet(); sda.Fill(ds); Random RandomNumber = new Random(); ...
For logout in your web site you have to clear all the session ,so write following code in "Logout" button click event: protected void btnSend_Click(object sender, EventArgs e) { Session.Abandon(); Session.Contents.RemoveAll(); System.Web.Security.FormsAuthentication.SignOut(); Response.Redirect("LoginPage.aspx"); } See Also : how to crack IDM How to change name of start button in xp how to connect to facebook without Internet connec... How to customize send to menu. How to hide folder without any software. Follow Me On Facebok -- /\/ir@\/ <(.'.)>
Comments
Post a Comment