public partial class About : System.Web.UI.Page { public string newcontnt = ""; public string oldcontent = ""; protected void Page_Load(object sender, EventArgs e) { newcontnt = Request.QueryString["newcon"]; oldcontent = Request.QueryString["oldcon"]; writetofile(newcontnt, oldcontent); } private void writetofile(string newcontnt, string oldcontent) { string text = File.ReadAllText(@"\\192.168.7.103\testdata.txt"); string textn = newcontnt; string texto = oldcontent; text = text.Replace(texto, textn); File.WriteAllText(@"\\192.168.7.101\testdata.txt", text); Response.Redirect("http://localhost/test61.html"); } }
in this code its showing network name not found error
\\IP\SharedFolderPath\FileName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)