Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i made one form to locate detail on gooogle map
ane i use text file to store data
and each data are stored in new line then ,

now when i submit form then redirect to map page
then i cant not get values submited in form
and i got message like
this file has been modified outside of source editor.
do you want to reload it ??
yes, yes to all, no, no to all
in popup box in ms visual studio 2010

give me proper solution to avoid this message and to get instant change in map....
Used Code in backend is:
C#
 protected void btnSubmit_Click(object sender, EventArgs e)
    {
string path = @"F:\MIXED DATA\MapTEXT\example.txt";
        string message = txtlat.Text + "|" + txtLan.Text + "|" + txtName.Text+"<br>"+ txtNo.Text + "<br>" + txtStreet.Text + "<br>" + txtArea.Text + "<br>" + txtPostalArea.Text + "<br>" + txtCity.Text + "|" + txtName.Text;

       
        string appendText = message + Environment.NewLine;
        File.AppendAllText(path, appendText);
        Response.Redirect("Default.aspx");
        
        string readText = File.ReadAllText(path);
        Console.WriteLine(readText);}
Posted
Updated 2-Jan-12 21:26pm
v4

1 solution

Remove the text file from your VS list of files: It monitors them, so if you application changes it during a debug session, VS notices, and wants to make sure it is working with the latest version.
 
Share this answer
 
Comments
PKriyshnA 3-Jan-12 3:25am    
i moved this file in another location, after than i have problem...
OriginalGriff 3-Jan-12 3:31am    
Remove it from the VS list - look at the solution explorer. You may have to copy it back to the original location first, then remove it from the files list
AmitGajjar 3-Jan-12 3:31am    
is that file open in Visual studio then close it.
PKriyshnA 3-Jan-12 3:31am    
when i debuge again then get changes on google map..
PKriyshnA 3-Jan-12 13:29pm    
i did not yet proper solution i want use text file as a database...please help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900