| Author: Vivek 09 Oct 2008 | Member Level: Gold | Rating: Points: 2 |
Check presence of these special chars either clientside or at Server side....
At ClientSide Call your JavaScript Function on Click of Upload.
|
| Author: Palanivel 09 Oct 2008 | Member Level: Silver | Rating: Points: 4 |
Hi
You cant assign value to File Upload Control, so you take the value of FIle Upload control,replace special character then place the resultant value into hidden field. in code behide use the Hidden Field Value. This is the very simplest way to perform.
|
| Author: D.Jeya kumar(JK) 09 Oct 2008 | Member Level: Diamond | Rating: Points: 3 |
Hi,
Check the chars values on click of the button of the file upload control
do some thing like this
var reply = new RegExp(/\$|\/|\^|-/, "g"); specialchars = mytextarea.innerHTML.match(re);
Regards JK
|
| Author: @@@ Hyderabadi Biryani @@@ 09 Oct 2008 | Member Level: Diamond | Rating: Points: 3 |
Hi I would like to go with JK answer, Simple replace the file and inform the new filename to the user and for this Regular expression is the right choice.
Thanks -- Vj http://dotnetvj.blogspot.com http://oravj.blogspot.com
|
| Author: anantha kumar 09 Oct 2008 | Member Level: Bronze | Rating: Points: 1 |
var reply = new RegExp(/\$|\/|\^|-/, "g"); specialchars = mytextarea.innerHTML.match(re);
|