Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to save resource file to a drive.
Enos
Feb 9 2015 6:30 AM
601
Reply
Hi,
Am trying to save resource file to any directory but it is throwing an error. It says, V
erify that the correct file name was given.
here is my codding,
string PathSelection = "";
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Title = "Save Resource Files";
saveFileDialog1.Filter = "Save Resource Files (*.resx)|*.resx";
saveFileDialog1.FilterIndex = 1;
saveFileDialog1.RestoreDirectory = true;
if (saveFileDialog1.ShowDialog() == DialogResult.OK) //it breaks on this line
{
string path = saveFileDialog1.FileName;
//oDataSet.WriteXml(path);
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to ListBox inside using Checkbox Load in asp.net C#
how to validate a correct email