To access an iFrame element from its parent page we can use following JQuery function. $(‘#frmiFrameTest’).contents().find(“[id*=element-id]“) frmIframeTest= Iframe Id element-id = Id of element in iFrame.
I was given asn assignment to change theb back ground image of the parent page for a pop up window which as being opened using JQuery color box pluging. The pop up page was being opened in an iFrame (html tag). In Iframe we had a div with the Id and also we had the [...]
Recently I was given a problem that UK Mobile phone numbers with spaces in the number are not being accepted by application as its convenient to write numbers like (+44 0791 452 1234 OR “0791 452 1234″) instead (+447914521234 OR 07914521234) (dummy number used for illustration purpose only). UK mobile numbers are of 11 digit [...]
How to generate XML website map for free using IIS If you want to create a sitemap for your website, it’s very very easy and free of cost. You can do it in your own time at your own computer. So as it’s on your computer its your property and you can play with it [...]
A Quick solution when trying to format a textbox with CSS, and currency format is a bit tricky in ASP.NET MVC You can’t put CSS on a Html.EditorFor like you can on a TextBoxFor like so <%= Html.TextBoxFor(x => x.CostPrice, new { @class = “textShort”, maxlength = “50″ })%> And you cant put a tag [...]
Often you want to debug a website hosted in IIS from your visal studio. Requirement: Visual Studio, Website (you want to debug) must have the same source code. Now web browser (Internet explorer, Firefox , Google chrome etc) type the URL of your website hosted in IIS (Internet Infomration Server). Open the Source code in [...]
Let me explain the following code and what i think about the topic “Blessings of Jquery “each” and Jquery selectors – asp.net mvc form validation” <script type=”text/javascript”> $(document).ready(function() { var isValid = false; $(‘input:text’).each(function() { if ($(this).val() == “0″) { $(this).val(“”); } }); $(“#btSubmit”).click(function() { $(‘input:text’).each(function() { if ($(this).val().length > 0) { isValid = true; [...]
LINQ TO SQL Classes values resets on deserializing Recently I was working on a MVC 2 Project. I used JavaScriptSerializer() to serialize my object JavaScriptSerializer().Serialize(object).  The object was a database table in “.dbml” that is “LINQ to SQL Classes”. On searilizing the object it was getting serialized OK and there was no problem at all. While Deserilaizing [...]
Unrecognized attribute ‘type’ <sectionGroup I ran across this error the other day, this is a web.config error, but the solution does not lie in the web.config file. The solution was in IIS, the settings were set to .Net 1.1 whereas the site being developed a more recent version of .NET.
Upgrading an ASP.NET MVC 1.0 Project to ASP.NET MVC 2 To upgrade an existing ASP.NET MVC 1.0 application to version 2, follow these steps: Make a backup of the existing project. Open the project file in a text editor (the file with the .csproj or .vbproj file extension) and find the ProjectTypeGuid element. As the [...]