Hi All ,
I want to assign folder path to textbox in javascript suppose
var path = "http://localhost/Fox/Myapp/Schedule.docx";
then Textbox1.text= http://localhost/Fox/Myapp
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anupam SinghPosted Jun 2, 2014, 3:33 AM
here is what you want :
Ravi PatelPosted Jun 2, 2014, 4:57 AM
Ravi PatelPosted Jun 2, 2014, 3:23 AM
var path = "http://localhost/Fox/Myapp/Schedule.docx";
i want like this
document.getElementById('your text box id').value= "http://localhost/Fox/Myapp"
i am not getting how to remove file name ( Schedule.docx) from fullpath ( http://localhost/Fox/Myapp/Schedule.docx)
Anupam SinghPosted Jun 2, 2014, 3:17 AM
var path = "http://localhost/Fox/Myapp/Schedule.docx";
document.getElementById('your text box id').value=path;
Ravi PatelPosted Jun 2, 2014, 3:14 AM
its not working
Anupam SinghPosted Jun 2, 2014, 2:59 AM
Try :
var path = @"http://localhost/Fox/Myapp/Schedule.docx";
Textbox1.Text=path;