How to make Browser button for save file in ASP.net C# language
How to make Browser button in ASP.net C# language
It is very useful to save file in a specific location.It is quite easy to make browse button using C#.net. You have to follow these steps;
// In C#.net
SaveFileDialog sd = new SaveFileDialog();
sd.ShowDialog();
txtPath.Text = sd.FileName;
Save , Run and enjoy.................................................................
It is very useful to save file in a specific location.It is quite easy to make browse button using C#.net. You have to follow these steps;
- First create your button with id=Browse
- Double click on Button
- Event handler of that button would be created and displays in front of you
- paste this code in the event handler
// In C#.net
SaveFileDialog sd = new SaveFileDialog();
sd.ShowDialog();
txtPath.Text = sd.FileName;
Save , Run and enjoy.................................................................
BY Hafiz Muhammad Umar Hayat
Hafizmohemmedumar@gmail.com

Comments
Post a Comment