Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Button1_Click(object sender, EventArgs e)
- {
- try
- {
- using (System.IO.StreamWriter writer = new System.IO.StreamWriter(@"D:\IDs.txt", true)) //(Server.MapPath("~/data.txt")
- {
- writer.WriteLine(idNum.Text);
- //writer.WriteLine(HttpContext.Current.Request.UserHostAddress);
- }
- Button1.Text = "נשלח בהצלחה";
- Button1.Enabled = false;
- //Response.Redirect("FormConfirmationPage.html");
- Response.Redirect("Default.aspx");
- }
- catch
- {
- // There was an error in writing to the file but I couldn't care less.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement