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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anupam SinghRank #643 · 3.7K reputationPosted Jun 1, 2014, 11:33 PM EDT
here is what you want :
Anupam SinghRank #643 · 3.7K reputationPosted Jun 1, 2014, 10:59 PM EDT
Try :
var path = @"http://localhost/Fox/Myapp/Schedule.docx";
Textbox1.Text=path;
Ravi PatelRank #439 · 5.7K reputationPosted Jun 1, 2014, 11:14 PM EDT
its not working
Anupam SinghRank #643 · 3.7K reputationPosted Jun 1, 2014, 11:17 PM EDT
var path = "http://localhost/Fox/Myapp/Schedule.docx";
document.getElementById('your text box id').value=path;
Ravi PatelRank #439 · 5.7K reputationPosted Jun 1, 2014, 11:23 PM EDT
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)
Ravi PatelRank #439 · 5.7K reputationPosted Jun 2, 2014, 12:57 AM EDT