Natty,
Had to make slight modifications and it worked!
The actual problem was if you do server.transfer to a page which is having an asp.net validations control the WebUIvalidation s.js is not loaded some times and it displays an error stating to reinstall the js file by running aspnet_regiis -c command.
The possible solution for this problem is add this code from where you are performing server.transfer .
//ASP.NET bug fix which causes script file not to bind with page
string sEnvVersion=Env ironment.Versio n.ToString();
//From 1.0.3705.288 To 1_0_3705_288
sEnvVersion = Regex.Replace(s EnvVersion,"[.]","_");
//Register the client script
RegisterClientS criptBlock("Blo ckID","<script language=\"java script\" src=\"/aspnet_client/system_web/"+sEnvVersi on+"/WebUIValidation .js\"></script>");
Cheers
nitc3
"Natty Gur" <na***@dao2com. com> wrote in message news:#v******** ******@tk2msftn gp13.phx.gbl...
RegisterClientS ideScriptBlock( "BlockID","<scr ipt language="javas cript"
src="/aspnet/scripts.js"></script>");
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!