References
ASP.Net Cookies Overview
Adding parameters to query string at run time
Reflection Binding Flags Enumeration
.Net reflector
SEO is becoming more and more important issue these days, and your site root url can lose its SEO rank if there are too many different query string attached such as www.yoursite.com/?a=b&b=c and www.yoursite.com/default.aspx?wt=129. It will be nice you can keep the [...]
Read Full Post »
Posted in Programming, tagged asp.net on November 27, 2008 | Leave a Comment »
I was adding a ajax-enabled control on a page and suddenly having “… You must add a reference to assembly ‘System.Web.Extensions…” error. It complained that my website assembly does not have a reference to ‘System.Web.Extensions’ and it was true. Definitely, I added the reference to my project, but the compiled dll does not have it.
I [...]
Read Full Post »
406 control.BasePage.RegisterStartupScript(“DefaultButtonForLogin”, String.Format(@”
407 <script language=””javascript””>
408 <!–
409 function handler(e)
410 {{
411 if ((e && ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13))) || (event && event.keyCode == 13))
412 {{
413 document.forms[0].action = ‘{0}’;
414 {1};
415 return false;
416 }}
417 }}
418 if (!!document.forms[0]['{2}'])
419 document.forms[0]['{2}'].onkeydown = handler;
420 if (!!document.forms[0]['{3}'])
421 document.forms[0]['{3}'].onkeydown = handler;
422 //–>
423 </script>”,
424 secureURL,
425 [...]
Read Full Post »
Posted in Programming, tagged asp.net on November 7, 2007 | Leave a Comment »
CS1595: ‘_ASP.FormsLoginPart_ascx’ is defined in multiple places; using definition from ‘c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\recruitment_selfservice\858213b9\9a24bb64\tyrklreb.dll’
I have this error often, because some .net webcontrols have the same file name, though they belong to different namespaces. I googled this a little bit and there are a few solutions.
change webcontrol .ascx name. asp.net compiler does not like same webcontrol file [...]
Read Full Post »