Labels

Thursday, July 5, 2007

Small Issues & Solutions possibly

 

Other Issues

------------------------

 

  1. If we add reference to the system dll [Shared DLLs  e.g System.Window..Forms. Oracle.daTaAccess etc ] in our Web -Proejct, then it does below.
    1. Makes an entry into Web.config, but
    2. Do not copy the referred DLL into bin. That is, these system dlls are still referred from GAC.

 

  1. But When we do this operation in Class Library projects then it does below:
    1. Adds those DLLs into an virtual folder [named as ‘Reference’] as it has no Web.config.
      1. Here the ‘localcopy’ is set to ‘false’, i.e It refers them from the shared location [GAC].
    2. Do not add them in the bin folder.

 

  1. If we add reference to other DLLs, which are not placed in GAC [ Hence not considered as shared DLLs] [ Like Crystal DLL or AJAX control Tool kit DLLs], then it does two things :

 

    1. Makes an entry in  web.config and
    2. Also  makes a local copy in the bin folder as well.

 

  1. But When we do this operation in Class Library projects, then it behaves same as when we refer shared DLLs. i.e

 

    1. Adds those DLLs into an virtual folder [named as ‘Reference’] as it has no Web.config.
      1. Here the ‘localcopy’ is set to ‘true,
    2. Also adds them in the bin folder.

 

 

Note: In case of Non-Shared DLLs, they are either kept locally in the Web-Application’s bin folder [In Web Project] or placed in virtual folder [named as ‘Reference’] with ‘localcopy’ is set to ‘true’. So now even if ur computer has upgraded the new version of dlls, it won't affect ur application unless u remove the reference and re-refer it.

 

 

  1. [Noticed in Tyrelink] :: We need to give write access to the folders if our web application is writing ito it. e.g Logfiles folder in Tyrelink.

 

  1. If ur Web- Solution has Class-Library project [BL] and Web Application then we are required to add the reference of the BL only once. After that as an when we compile the BL, the reference in Web is automatically refreshed. [Read in .Net 2.0 Book].

 

  1. ‘this’ in JS denotes page, rather than object that raised the event.

 

  1. Note:

If u need a hidden button or hidden text box then instead of getting into the visibility properties of the controls, better solution is keep them in div as : <div style="display:none"> ........</div>

 

 

Thanks & Regards,

Arun Manglick

SMTS || Microsoft Technology Practice - Bridgestone - Tyre Link || Persistent Systems

 

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

No comments:

Post a Comment