Geeks With Blogs

News
kazim mehdi April 2011 Entries
execute javascript function after even after ajax call

Add add_endRequest handler to the Page request manager as followed

Sys.WebForms.PageRequestManager.getInstance().add_endRequest(<javascript name function>);

Posted On Thursday, April 28, 2011 6:02 PM

checkout multiple files from Perforce using powershell
$p4= "C:\Program Files\Perforce\p4.exe"# need to be changed $path="C:\dev\www"$oldValue... need to be changed Write-Host "Searching for : $oldValue"Write-Host "Replaced value: $newValue"$count=0dir $path -Recurse -Include *.aspx, *.ascx| ForEach-Object{ $text=Get-Content $_.FullName; if ($text -match $oldValue) { &$p4 edit $_.FullName $text=$text -replace $oldValue,$newValue set-content $_.FullName -value $text $count++ }}Write-Host ......

Posted On Friday, April 1, 2011 3:38 PM

Replacing an attribute value of a specific html tag in multiple files
I have to replace align=”right” to align=”left” of all <td> in all files in the whole project. Consider the following html <table> <tr> <td align="right" style="border: 1 solid black"> cell1 </td> <td style="border: 1 solid black" align="right"> cell2 </td> <td id="td01" align="right" style="border: 1 solid black"> cell3 </tr></table> Work breakdown: How to replace in single file how to replace in multiple files How to replace in single ......

Posted On Friday, April 1, 2011 3:24 PM

Copyright © kazim sardar mehdi | Powered by: GeeksWithBlogs.net