Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

XML
In a webuser control I had below line.

 <img src='<%=Users[0].URL%>' alt='<%=Users[0].Name%>' />

which I had modified by just adding an if condition as below

<% if(Users.Count !=0) { %>

 <img src='<%=Users[0].URL%>' alt='<%=Users[0].Name%>' />

<% } %>

Now my question is, will it do if I just upload usercontrol.ascx file to the server or I'll to upload its dll as well?

Since I did not modify its code behind page file, I do not think I need to do so. Please help me and let me know if I am wrong.


Thanks,
Posted
Updated 11-Sep-14 12:01pm
v2
Comments
Sergey Alexandrovich Kryukov 11-Sep-14 18:28pm    
Well, did you modify this DLL? :-)
—SA
NAPorwal(8015059) 11-Sep-14 18:31pm    
No, I just modified ascx file as mentioned above, nothing else.
Sergey Alexandrovich Kryukov 11-Sep-14 20:59pm    
Then why uploading it, if you already have it deployed? Well, copy it again, just in case you are not 100% sure...
—SA
George Jonsson 12-Sep-14 0:01am    
You can always calculate the checksum, using SHA1 or similat, for the deployed DLL and the one on your development machine.
If the checksums differ, then the two files are different.
NAPorwal(8015059) 15-Sep-14 15:06pm    
Thanks all for your time and support, I only needed to upload ascx file and it worked perfect. Thanks again :)

1 solution

Check for the recent modified time of the dll. If it matches with ur build time just move it along with ur designer. The designer file is alone changed and so it'll not affect the dll. Moving the .ascx file is the best option.
 
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