Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends
Recently I am facing some some weird issue related to file upload control's ID.

before now when i was running my asp.net website
I wass getting file upload client id like ctl04_ContentPlaceHolder1_AsyncFileUpload1

but now I am getting id like ContentPlaceHolder1_AsyncFileUpload1_ctl04

I am getting ctl04 back side. and this problem stopping file upload to work

please help me its urgent.
Posted
Comments
CHill60 30-May-14 10:26am    
Post the code that is causing this problem.
Did you add or delete any controls?

1 solution

You should use scriptlet "<%%>" of handling ClientID. You can try this code.

HTML
var fileuploadID='<%=AsyncFileUpload1.ClientID%>';
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900