Beyond Web Logs

Discuss technology, web development, networks and more ...

Recent posts

Tags

First time here? At BeyondWebLogs we discuss technology, web development, personal development, networks and more. You can subscribe to the RSS feed so that you keep up to date with the latest content. Now, on with the regular content...

Techniques and strategies to improve and optimize ASP.NET web application performance

An extremely useful article of how to improve and optimize ASP.NET web application performance. 

Some important techniques discussed in the article are:

  • ASP.NET pipeline optimization
  • ASP.NET process configuration optimization
  • Things you must do for ASP.NET before going live
  • Content Delivery Network
  • Caching AJAX calls on browser
  • Making best use of Browser Cache
  • On demand progressive UI loading for fast smooth experience
  • Optimize ASP.NET 2.0 Profile provider
  • How to query ASP.NET 2.0 Membership tables without bringing down the site
  • Prevent Denial of Service (DOS) attack

Here is the link:
http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by Waqas on Wednesday, August 20, 2008 4:56 PM
Permalink | Comments (0) | Post RSSRSS comment feed

MySQL Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

This means that mysql cannot find the table it uses to store usernames. It may be corrupt or deleted. 

To resolve it;

Goto mysql data folder e.g. D:\wamp\bin\mysql\mysql5.0.51a\data\mysql and make sure you have these three files user.frm user.MYI AND user.MYD 

if they are missing you can download them from here and replace all 3 files.

Restart wamp and your icon should go white :)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by Waqas on Sunday, August 17, 2008 9:27 PM
Permalink | Comments (0) | Post RSSRSS comment feed

Register .NET Assembly using C# with no dependency on gacutil

You can use following .NET code to register .net assembly with no dependency on GacUtil

using System.EnterpriseServices.Internal; 
... 
Publish p = new Publish(); // for GAC Installation 
p.GacInstall(file); // for gac installation 
... 
p.GacRemove(file); // for gac removing 
... 
p.RegisterAssembly(file); // for registering assembly for interop 
... 
p.UnRegisterAssembly(file); // to unregister assembly

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by waqas on Saturday, August 16, 2008 3:28 AM
Permalink | Comments (0) | Post RSSRSS comment feed

how to take care of: maximum connections reached remote desktop connection

When you've reached maximum number of connections using your remote desktop connection, for whatever reason, there is a simple solution to take care of this error. All you have to do is log in using a console command [to follow] and then open that computer's task manager, go to users, and then log off enough users that the remote desktop connection lets you log back on.

Here's the command:

mstsc -v:0.0.0.0 /f -console

[of course you'll replace the 0.0.0.0 with the ip address of your remote server]

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: How To | Tips n Tricks
Posted by muneeb on Tuesday, August 05, 2008 1:14 PM
Permalink | Comments (1) | Post RSSRSS comment feed

Create custom pop up box using javascript with lightbox effect

Here is the sample HTML and Javascript that you guys can use to create a pop up box with dim background using 100% javascript.  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Custom LightBox example</title>
  <script type="text/javascript">

  function showBox()
  { 
    var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;

    var layer = document.createElement('div');
    layer.style.zIndex = 2;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'black';
    layer.style.opacity = '.6';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
    document.body.appendChild(layer); 
   
    var div = document.createElement('div');
    div.style.zIndex = 3;
    div.id = 'box';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '200px';
    div.style.left = (width / 2) - (400 / 2) + 'px'; 
    div.style.height = '50px';
    div.style.width = '400px';
    div.style.backgroundColor = 'white';
    div.style.border = '2px solid silver';
    div.style.padding = '20px';
    document.body.appendChild(div); 
   
    var p = document.createElement('p');
    p.innerHTML = 'Some text';
    div.appendChild(p);
   
    var a = document.createElement('a');
    a.innerHTML = 'Close window';
    a.href = 'javascript:void(0)';
    a.onclick = function()
    {
      document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box'));
    };
     
    div.appendChild(a);
  }
  </script>   
</head>

<body style="height:2000px">

  <a href="javascript:void(showBox())">Toggle box</a>
     
</body>
</html>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by Waqas on Tuesday, July 29, 2008 8:29 PM
Permalink | Comments (0) | Post RSSRSS comment feed

How to modify the width and height of a Sharepoint Page Viewer web part dynamically

You can use following javascript code to dynamically adjust width and height of the page viewer webpart.
Just put it in each asp.net page that you want to display in a page viewer, and the problem will be solved:

Javascript code:

function resizeMe(that) {
window.resizeTo(document.body.scrollWidth, document.body.scrollHeight);
}
window.attachEvent("onload", function() {
window.setTimeout("resizeMe()", 100);
});

Alternatively, window.resizeTo(window.screen.availWidth, window.screen.availHeight); can also be used.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by Waqas on Tuesday, July 29, 2008 4:57 PM
Permalink | Comments (0) | Post RSSRSS comment feed

How to convert documents in PDF for free

Following are some of the useful tips to convert your documents in PDF for free:

1. Using MS Office 2007:

If you have MS office 2k7, you can use Save as PDF plug-in which comes for "free"

http://www.microsoft.com/downloads/details.aspx?FamilyId=F1FC413C-6D89-4F15-991B-63B07BA5F2E5&displaylang=en

2. Using cutepdf Writer:

Another one is the cutepdf writer. You can save as PDF from any application. The basic writer is free and does not create any water marks etc. works like a charm and a friend of mine has been using this for a few years now.
http://www.cutepdf.com/Products/CutePDF/writer.asp
(you will need to install both the files, the writer and the converter. check it out!)

3. Online using Internet:

www.pdfonline.com

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Tips n Tricks
Posted by waqas on Sunday, July 27, 2008 12:52 AM
Permalink | Comments (0) | Post RSSRSS comment feed