Geeks With Blogs

News
kazim mehdi
Stylecop great tool from Microsoft to enforce code style rules. Sometimes we like to break 1 or more of its rules and very much like Complier should not complain about it anymore. its easy by adding following attribute in front of element that is going to break the Rule. In the following code its class. [SuppressMessage("StyleCop.... ......

There are two ways that I found to this but I found the second one better for readability. 1. Test Run Configuration file 2. DeploymentItemAttribute I am interesting in the “DeploymentItemAttribute” because its more readable gives flexibility to add either on the Test Class level so that more than 1 test can get the files or at Test Method level. I ......

DECLARE @RegLoc VARCHAR(100) select @RegLoc='SOFTWARE\Microsoft... NT\CurrentVersion' EXEC [master].[dbo].[xp_regread] @rootkey='HKEY_LOCAL_MACHINE', @key=@RegLoc, @value_name='ProductName' The above code will return the installed version of windows on which the current instance of Sql Server is running. references: http://www.mssqlcity.com/Ar... ......

I have to update the windows service.exe and related dll by using console on remote computer. I tried net start <servicename> but it not allowed to query or issue command on the remote computer. then I tried sc & PsService from SysInternals. sc \\<ServerName> stop <ServiceName> PsService \\<ServerName> stop <ServiceName> ......

SCENARIO I have page that was hosted inside the iframe and I want to redirect the parent window when a user click a button inside the child page. For that I added the following code in the Button’s click event as I have to execute some server side code before redirecting. Page.ClientScript.RegisterS... RedirectKey, string.Format("window.top.l... ......

1. Set EnableScriptGlobalization=true on the script manager <asp:ScriptManager runat="server" EnableScriptGlobalization="... /> 2. Use the Sys.CultureInfo.CurrentCulture command either inside the alert or through Firebug console to check the CultureInfo at the client side 3. use Number.parseLocale instead of pareFloat so that it get correct ......

Add add_endRequest handler to the Page request manager as followed

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


$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 ......

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 ......

call the parent javascript function using parent.

 

parent.update();

where update() is the name of the fuction that exist on the page that host the iframe.



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