Geeks With Blogs
Daily dotnet {notes on codes}
Here is the function function getQuerystring(key, default_) { if (default_ == null) default_ = ""; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^&#]*)"); var qs = regex.exec(window.location.... if (qs == null) return default_; else return qs[1]; } *taken from http://www.bloggingdevelope... ......

Here is a common method that you can use anywhere, private void ResetFormControlValues(Control parent) { foreach (Control c in parent.Controls) { if (c.Controls.Count > 0) { ResetFormControlValues(c); } else { switch (c.GetType().ToString()) { case "System.Web.UI.WebControls.... ((TextBox)c).Text = ""; break; case "System.Web.UI.WebControls.... ......

Often we may need an auto incremental column for index on gridview, we can achieve this by adding a Template field: <asp:TemplateField HeaderText="Index"> <ItemTemplate> <%# Container.DataItemIndex + 1 %> </ItemTemplate> </asp:TemplateField> ......

<script type="text/javascript"> $(document).ready( function() { $("input[id$='btnOK']").cli... { $("#form1").validate({ rules: { txtName: { required: true }, txtEmail: { required: true, email: true }, txtPostalAddress: { required: true, maxlength: 50 } }, messages: {}, onsubmit: true }); }); $("input[id$='Button1']").c... ......

use this piece of code, else we suffer....:) <script src='<%=ResolveUrl("~/_s... ) %>' type="text/javascript">&... ......

HEHE it's a stupid problem, for those who care place the following on the load event of the master page or default Response.AppendHeader("Cach... "no-cache"); //HTTP 1.1 Response.AppendHeader("Cach... "private"); // HTTP 1.1 Response.AppendHeader("Cach... "no-store"); // HTTP 1.1 Response.AppendHeader("Cach... "must-revalidate"); ......

1) Turn off Tracing unless until required Tracing is one of the wonderful features which enable us to track the application's trace and the sequences. However, again it is useful only for developers and you can set this to "false" unless you require to monitor the trace logging. How it affects performance: Enabling tracing adds performance overhead ......

The typical program of Hello World in c is somewhat like //HelloWorld.c #include <stdio.h> main() { printf("hello,world\n"); } To compile in linuc, we use cc HelloWorld.c and to run ./a.out The output of the program is hello, world Now in Page 6, chapter1, we have two exercises Exercise1-1 : Run the "hello, world" program on your system. Experiment ......

The computing industry can never forget the genious "Dennis Ritchie", the maker of C and UNIX. Till recent I have seen most people respecting and fearing C, some relate it with pointers, some say it's the magic for geeks and kernel developers. Not going much, I think to take a peep into "The C Programming Language" book and carry on the exercises. I ......

Copyright © Prasenjit | Powered by: GeeksWithBlogs.net