Tuesday, December 23, 2008

Resume Tip for Techies

Recently I found a nice article in ComputerWorld, mentioning the resume tip for Tech guys/gals.

Main tips from the article.

1. Drop the Details

2. Abolish your objective

3. Get your resume in search shape

4. Highlight the right certification.

5. Balance tech and business.

Have a look at the entire article, here.

Monday, December 1, 2008

5 Strategies MSFT got Right

For a long time, I’s thinking how Microsoft (MSFT) became a Software Giant.

Last day I got an article, captioned “5 Strategies Microsoft got Right”. I'm replicating the same. The original article can be find here.

A) Software is King

Microsoft was among the first companies to see software as the business, not just an add- on sale to hardware. It acted on that insight in a big way.

B) Outsource Your Sales Force

How did Microsoft grow so big so fast? In large part it was the company’s partner strategy. Today, more than 90% of Microsoft products are sold by somebody else. OEM partners such as HP sell most copies of Windows and large reseller partners such as CompuCom sell most copies of Microsoft’s enterprise software, including Exchange, SQL Server, and SharePoint. In fact, you’d have a difficult time trying to call Microsoft to order a product directly.

C) Developers, Developers, Developers!

More than any other software company, Microsoft courts developers, lavishing them with powerful tools, free training, and low-cost support. Visual Basic enabled a whole generation of developers to create custom line-of-business applications on top of Office. Now Visual Studio is the tool of choice for serious corporate developers. Microsoft has been rewarded for this generosity by a torrent of third-party applications and custom solutions that have made Windows indispensable on the corporate desktop. Robust developer support for products such as the Office suite and SQL Server has also helped Microsoft products to flourish where competitors once had the field to themselves.

D) Technology for the Masses 

Microsoft has consistently figured out how to make powerful technologies once exclusive to big business—business intelligence, intranets, systems management—accessible to smaller IT shops at a fraction of the cost. In the process, Microsoft has created and captured new customers en masse.

E) The Long View

Microsoft has always taken the long view. It routinely invests billions of dollars in expansive ventures such as Xbox, MSN, and Dynamics with an eye to far-off opportunities and threats. Once engaged, it very rarely retreats. The company will sustain breathtaking losses to gain a foothold in a market (think of Xbox) and endure hits to its image to change a business model that isn’t working (think of MSN). Microsoft continually looks inward and studies how it can improve itself. But despite some long false starts and outright failures (LAN Manager, Windows Mobile, and WebTV), Microsoft has assembled the industry’s largest portfolio of enterprise and consumer software—the least of which generates revenue in the hundreds of millions of dollars.

Ok. Wait. If they are following strategies, there might be some lessons. What do they learned from these strategies ? What are they ? Lessons per strategies, as follows, respectively:

1) Question the rules. Change the game.

2) Create win-win partner situations to grow fast.

3) Don’t neglect your customers’ most important need: a better price.

4) Make it easy for partners to customize your product.

5) Business isn’t a sprint; it’s a marathon. Be persistent.

Thursday, November 27, 2008

Directions on Microsoft

Recently, I saw a web-portal dedicated for Software-Giant, Microsoft – http://www.directionsonmicrosoft.com.

What is Directions on Microsoft?

Directions on Microsoft is the only INDEPENDENT organization in the world devoted exclusively to tracking Microsoft. We've studied Microsoft since 1992. Nobody knows the company better.

Our team of Microsoft experts [analyst bios] provides clear, concise, and actionable analysis of shifts in Microsoft strategy, Microsoft product and technology roadmaps, delivery schedules, organizational changes, marketing initiatives, and licensing and other policies so you can quickly assess how they impact your business.

Thousands of companies worldwide—including corporate purchasers of Microsoft products, system integrators, software vendors, hardware manufacturers, network operators, venture capitalists, and financial analysts—trust Directions on Microsoft for accurate and unbiased Microsoft research and analysis to guide their strategic decisions

Take a look.

RSS Link :- http://www.rssmixer.com/mixes/10639-directions-on-microsoft.rss

Monday, November 24, 2008

Cross-Thread operation not valid

The contents of this post has been move here. Please check the link to view the post.

Sorry for the inconvenience.

Thanks!

Tuesday, November 4, 2008

RSS using Repeater control

All of a sudden, I got craze of RSS and googled for some fine articles. Though got some fine ones, I’s looking for some professional ones. Alas, I got one from MSDN, using the Repeater Control.

Ok! I’ll tell you how to implement. Just follow me.

Step 1: Create an ASP.NET website

Step 2: Add a page names, RSS.aspx.

Step 3: Now add a Repeater control to RSS.aspx.

Now, switch to the source-view of RSS.aspx and clear all the tags except <%@ Page%> tag.

RSS.aspx (source-view)

   1: <%@ Page Language="C#" ContentType="text/xml" AutoEventWireup="true" CodeFile="RSS.aspx.cs" Inherits="RSS" %>
   2:  
   3: <asp:repeater ID="Repeater1" runat="server">
   4:     <HeaderTemplate>
   5:         <rss version="2.0">
   6:             <channel>
   7:                 <title>ASP.NET News</title>
   8:                 <link>http://www.aspnetnews.com/headlines/</link>
   9:                 <description>This is the syndication feed foe aspnetnews.com</description>
  10:     </HeaderTemplate>
  11:     <ItemTemplate>
  12:         <item>
  13:             <title><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "title")) 
%></title>
  14:             <description><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "Description")) 
%></description>
  15:             <link>http://www.aspnetnes.com/story.aspx?id=<%
   1: # DataBinder.Eval(Container.DataItem, "ArticleID") 
%></link>
  16:             <author><%
   1: # FormatForXML(DataBinder.Eval(Container.DataItem, "Author")) 
%></author>
  17:             <pubDate><%
   1: # String.Format("{0:R}", DataBinder.Eval(Container.DataItem, "DatePublished")) 
%></pubDate>
  18:         </item>
  19:     </ItemTemplate>
  20:     <FooterTemplate>
  21:             </channel>
  22:         </rss>
  23:     </FooterTemplate>
  24: </asp:repeater>




RSS.aspx (code-behind)




   1: using System.Data.SqlClient;
   2:  
   3: protected void Page_Load(object sender, EventArgs e)
   4:     {
   5:         string provider = @"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=test;Data Source=.\sqlexpress";
   6:         string sql = "SELECT TOP 5 ArticleID, Title, Author, Description, DatePublished FROM Article ORDER BY DatePublished DESC";
   7:  
   8:         SqlConnection connection = new SqlConnection(provider);
   9:         SqlCommand command = new SqlCommand(sql, connection);
  10:  
  11:         connection.Open();
  12:  
  13:         Repeater1.DataSource = command.ExecuteReader();
  14:         Repeater1.DataBind();
  15:  
  16:         connection.Close();
  17:     }
  18:  
  19: protected string FormatForXML(object input)
  20:     {
  21:         string data = input.ToString();
  22:         data = data.Replace("&", "&amp;");
  23:         data = data.Replace("\"", "&quot;");
  24:         data = data.Replace("'", "&apos;");
  25:         data = data.Replace("<", "&lt;");
  26:         data = data.Replace(">", "&gt;;");
  27:  
  28:         return data;
  29:     }




Table Structure



Monday, November 3, 2008

http://172.30.19.134:8080/ssssportal.war/exceedlimit.jsp

Yesterday night, I got insane for an hour. Around 3:30am, I’s browsing internet. Suddenly, my net connection got disconnected. I reconnected it however. When I fire up my browser, what I saw was painful.

By browser loads a message mentioning- “Please wait while your request is being redirected”.

Woooh…!!!

I got afraid, every time when i load a website, I’s welcomed by that message. Also, the page is being redirected to a link as below: http://172.30.19.134:8080/ssssportal.war/exceedlimit.jsp

Today, when I load the link again, I’s pretty relieved. The link took me to the BSNL server, my ISP. And the error caused, because my usage exceeds 1 GB. Ya! a kind of protection mechanism. For past few months, BSNL was encountering several billing issues. Even I’ve have billing dispute thrice with BSNL. Its good that they are introducing certain mechanism to retain their customers.

At least for some time, I’s thinking whether my computer is being hacked by somebody.

Saturday, November 1, 2008

Auto-Display site in IE7-mode using IE8

Its simple. Just embed this meta tag. IE8 automatically loads the page in IE7 compatibility mode, without needing to switch it manually.

   1: <meta http-equiv="X-UA-Compatible" content="IE=7"


Thursday, October 30, 2008

New Logo for .NET

 

msNET_new_logo

Hey…Hey…

Check out this, the new logo for Microsoft .NET Framework.

Tuesday, October 28, 2008

RSS Syntax

For a long time, I’s looking for creating RSS feeds using ASP.NET. I got a couple of examples after Googling. Everything was explained nice. But, it lacked something. None of them explained the basic syntax of RSS feeds. At last, I got the syntax from MSDN library.

Yap! I'm really a fool. Because, there’s a working example on MSDN. Still I didn’t searched MSDN initially. I’s wondering how Google made internet everyone’s biggest weakness.

Here is the syntax:

<rss version=”2.0”>

<channel>  

      <title>website’s name</title>

      <link>website’s link</link>

      <description>website description</description>

      <item>

            <title>news-item title</title>

            <link>news-item link</link>

            <description>news-item description</description>

            <author>news-item author</author>

            <pubDate>news-item published date</pubDate>

     </item>

     <item>

            ---

            --- NEXT ITEM Details

            ---

      </item>  

</channel>

</rss>

Saturday, October 18, 2008

IE8 beta 2 bug

After the release of IE8 beta 2, there were many articles posted in Internet, both praising and cursing the beta release.

In ZDNet, I saw an article about the beta release. What surprised me that, the very first comment is cursing the beta release. What he mentioned was as follows:

“Clik on the down-arrow of your vertical scroll-bar few times. Afterwards, click-and-hold the scroll-bar and move it up-down (vertically). This will give a distorted effect to the textbox(s) and the button(s), in the page”.

What he’s saying was right…!!!

Here’s the screenshot:

 

I agree with him. But, I approached this problem/bug in a different manner. After the release of IE7 and Vista, Redmondians are taking extra-care to make their product bug-free as possible. Then, how did this happened ?

The way I thought was right, there is a compatibility-view button. If you find the rendering of a page inaccurate, then you can click on that button, so that that particular page will be rendered in IE7 mode; thus fixing the bug. Also, all the pages from that domain will be rendered in IE7 mode.

I don't know, how many Linux fan-boys and Microsoft-haters enjoyed this bug; without knowing, Remondians are know as “The King of Softwares

Wednesday, October 15, 2008

Life without walls

For last few months, I’s on the client-side for a project maintenance. Due to which I’ve extra privilege than the other employs in the company. The company norms wont allow us to set customized wallpapers and screensavers. But, I can bypass all the privilege, since I'm a guest for them.

My PC always have some variety of wallpapers and screensavers.

Last week, I set Microsoft’s courtesy wallpaper, captioned ‘Life without walls. When I reached office today, I’s surprised to see that most of them have changed their wallpapers to ‘Life without walls’. (I don't know, how company officials treat it).

Ha…Ha…Ha…

I really appreciate the magic and the logic behind the wallpaper. Keep it up, Redmondians.

Windows Mail Error Code

Last week, I wrote about Windows Live Wave 3 beta review. However, you may get various error code, at time. Might during installation, or while using.

Recently I’ve  gone through a Knowledge Base article from Microsoft, which has all the error code(s), along with their reason.

Read Knowledge Base Article.

Friday, October 10, 2008

Failed with 0x80070643 – Fatal Error during installation

Hi, this content has been moved to Failed with 0x80070643 – Fatal Error during installation. Please visit the link: Failed with 0x80070643 – Fatal Error during installation to view the article.

Sorry for any inconvenience.

Thanks.

Thursday, October 9, 2008

Difference between Windows and Linux

Im a Microsoft fan boy. I don't like Linux, I must say frankly. The main point I like in Windows is the ease of use and learn. Anyway, its my personal opinion and I don't want anyone to join/fight with me.

Recently, I find an article in ZDNet, titled as ‘10 difference between Windows and Linux’. It explain the top 10 difference between Windows and Linux.

Read it here.

Wednesday, October 8, 2008

Wave from Windows Live Wave 3

Wow has started again with Windows Live Wave 3.

I like it the best. It’s the best windows Client from Microsoft ever. Ya! Im a Microsoft fan. But, it doesn't means that I’ll accept their every dull releases. I’s weird when I first used Vista Ultimate. I feel like, it’s the worst careless product from Microsoft. But, the giants solved it, as usual via Service Pack 1.

But, its time to speak about Windows Live Wave 3. Though its a beta release, I really like it on the first half an hour use itself. The most I liked among are; of course Windows Hotmail availability @ desktop itself. Because, I got some loading delay on IE8 Beta2; which I’s able to overcome easily. Also, it supports Yahoo! mail (plus only sadly) and Gmail.

Then comes, ability to support multiple weblogs including blogger and wordpress.

Oh! the best I like is it RSS Feed support. Because, I’s actually looking for a Desktop RSS Reader. Right now, I’s using NewzCrawler. Honestly, I’s not satisfied with Google Reader. I actually don't like the interface. Very sluggish. Also, they tried to make it just like Gmail. Its true that its fast and light-weight. I don't know how many of them cares about fast and light-weight services, when they are having a fast broadband connection. At least, I care about the look and feel, of a service which MS delivered to the world with maintaining Quality in all perspectives.

I’ve also installed Photo-Gallery and Movie Maker. But, didn't worked on it, since I'm am not a Media person.

I prefer daily ready-to-use services. WLW3 gave me a WOW in all perspectives.

Wait! I'm (and I’ll be) writing this blog from Live Writer.

Monday, October 6, 2008

Byepassing Password Criteria from ASP.NET Membership

If you ever seen an annoying comment like 'Password must me 7 characters long, and containg atleast 1 non-alphanumeric character. You can remove by making some slight changes in the web.config file. Below sample, removes the Q&A and E-Mail from Create-User Wizard. Also, asks for password of 4 characters long, and that too without any non-aplhanumeric character.

<authentication mode="Forms" />
   <membership defaultProvider="MyProvider">
      <providers>
      <add name="MyProvider" type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer" requiresUniqueEmail="false"
requiresQuestionAndAnswer="true"
minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" />
      </providers>
   </membership>

Free movie streaming

Recently, I find some cool links for streaming movies. If u've installed Real Player 11, then you can save them easily to your PC after streaming.

http://ashmagic.com

http://artkerala.com

http://www.allhindi.tv/

http://hindimoviesonline.net/

http://hindistick.com

Saturday, October 4, 2008

Running CheckDisk in bat file

For a long time, I's searching for a solution to run check-disk, using a bat file.
The real problem is that when i try to run the check-disk on C: drive, a yes/no question is always asked. I actually dont know know how to by-pass that in the bat file.
However, I got the solution, as well and as follows:

echo y chkdsk C: /f /r

Thursday, October 2, 2008

RegisterClientScriptBlock and RegisterStartupScipt

The main difference between RegisterClient ScriptBlock and RegisterStartupScipt is as follows :

RegisterClientScriptBlock : Registers the script, after the <form> tag opening, but before any page-controls are rendered.

RegisterStartupScipt : Registers the script after all the page-controls are rendered, but before the closing <form> tag.

Wednesday, October 1, 2008

WIndows Live Wave 3 download link




Redmondians have released its app-kit - Windows Live Wave 3. The reviews are positive.

Here is the direct download link, Windows Live Wave 3 (130 MB)


Friday, September 26, 2008

Microsoft Offers Support for Vista SP1 (All Languages)

Hi,
Redmondians are limited time unlimited support till March 18, 2009 for Vista SP1 users. Support includes telephone-support, e-mail support and net-chat support.

Explore more at Vista SP1 Support


Tuesday, September 23, 2008

Desktop RSS Reader

Oops...!!!

Ive been searching a long for a Desktop RSS reader for Vista. Finally I got one. Its NewzCrawler.

Initially, I tried to use, Omea Reader. But, soon gave up, when i was unable to subscribe to ceratin feeds from http://www.asp.net site. My one of the fav site.

I's getting an error when i tried to subscribe to feeds from the asp.net site. I sent the error message along with a screenshot to e-mail id found in their website. But, I didnt get any respose from their support team.

I dont know why, enterprises behave in this way to a feedback mail. Is that so because, my mail went straight to junk folder. Might be. Couple of weeks back, I found a bug in http://forums.asp.net site & reported this in their complaint section via mail. Within an hour, I got a reply mail from the suppport team of asp.net site. See, how fast the reply is, if you really care about your bussiness.

Pretty good features are: it has an Outlook like 3-pane inerface and flagging. The best I like is the ability to download a webpage into the NewzCrawler itself. It will be automatically saved can be viewed at any time, by selecting the respective feed.

So, download and enjoy the feeds.

Oh! forgot to say one thing. I know everyone uses Google Reader. But, the tedious interface forced me to switch to Desktop RSS Readers. Ive tried almost 10 Desktop RSS Readers. The most I liked was Omea Reader & NewzCrawler.

Happy subscribing...

Friday, September 19, 2008

Full Game Download Links

By Profession, I'm a Software Engineer. But, I've one more Passion too. Ya, I'm a Gamer. Recently, I find a site with full game download links. Hope, it helps some gamers, like me.

http://fullgame.webnode.com/game-/action/productscbm_601235/15/

Enjoy, every moment of life.

Wednesday, September 17, 2008

Rapidshare Link

Today, I find a pretty good link for downloads, especially from Rapidshare.
Rapidraja Blogspot


The update does not apply to your system



If you got such an error dialogue-box when you try to install an update, manually. There is one possible reason for that. You might have installed that update already. Or your Windows-Update service have already downloaded the update for you.

To confirm it, you can navigate as follows :
Start -> Control Panel -> Programs and Features -> View Installed Update [left-menu].

No cross-check the update version listed with the version you're trying to install.


Monday, September 15, 2008

Cookies in ASP.NET Membership

Following are the default cookies used in ASP.NET Membership service.

a) ASP.NET_SessionId -> Session Cookie
b) .ASPXAUTH -> Authentication Cookie
c) .ASPXROLES -> Role Cookie


Sunday, September 14, 2008

Installer encountered an error : 0x80070422

 

Hi. This content has been moved to Installer encountered an error – 0x80070422. Please follow the link: Installer encountered an error – 0x80070422 to view it.

Sorry for an inconvenience.

Thanks.

Thursday, September 11, 2008

Password Protecting Single File

Password protecting comes under the section of ASP Membership & Security. ASP.Membership & Security can be employed to protect a file-access from an unauthorized user. By default, we can protect aspx pages only. However, we can add additional file-extension using the IIS Configuration Manager.

Below code segment protects secret.aspx from unauthorized uesrs. A '?' denotes anonymous/unauthorized users; whereas a '*' represents all user.



web.config

<configuration>
   <location path="Secret.aspx">
      <system.web>
         <authentication mode=”Forms” />
         <authorization>
            <deny users="?"/>
         </authorization>
      </system.web>
  </location>
</configuration>



Absolute Expiration Policy

If you have strict security requirements, you can use an absolute expiration policy rather than a sliding expiration policy.

web.config

<configuration>
   <system.web>
      <authentication mode=”Forms”>
         <forms slidingExpiration=”false” timeout=”1” />
      </authentication>
   </system.web>
</configuration>

SMTP Settings in web.config


<configuration>
   <system.net>
      <mailSettings>
         <smtp>
<network host="SMTP_IP_or_ServerName" userName="User_ID" password="Password" defaultCredentials="true"/>
         </smtp>
      </mailSettings>
   </system.net>
</configuration>

Upload Large File

The default file-upload size in asp.net is 8MB. If you try to upload more than 8MB, the web-server throws an exception. However, you can increase the upload size by setting the maxRequestLength attribute of System.Web in the web.config


<System.Web>
   <httpRuntime maxRequestLength="409600" />


The above sample segment has a capacity to upload a file of 400MB.


Wednesday, September 10, 2008

Disable Debug & Trace in One-Step

For security and performance reasons, don’t put websites into production with debug enabled, custom errors disabled, or trace enabled.

On your production server, add thefollowing element inside the system.web section of your machine.config file:

<deployment retail=“true”/>

Adding this element disables debug mode, enables remote custom errors, and disablestrace. You should add this element to the machine.config file located on all of your productionservers.

Difference between Control-State and View-State

Control State is similar to View State except that it is used to preserve only critical state information. For example, the GridView control uses Control State to store the selected row. Even if you disable View State, the GridView control remembers whichrow is selected.

Series of Events raised when requesting an ASPX page

Following are the series of events that are raised when an ASPX page is requested :

a) PreInit
b) Init
c) InitComplete
d) PreLoad
e) Load
f) LoadComplete
g) PreRender
h) PreRenderComplete
i) SaveStateComplete
j) Unload

Large File Download using HTTPHandler

The below mentioned code-segment prompts you with an Open-Save-Cancel window. If you need a Save-Dialogue box instead of Open-Save-Cancel window, just include the below code:

Response.AddHeader("Content-Disposition", "inline; filename=" + file.Name);

instead of

Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);

Complete Code:

// Page-Load
protected void Page_Load(object sender, EventArgs e)
{
   DownloadFile();
}

// File Download Function
private void DownloadFile()
{
   string filepath = Server.MapPath("samplefile.doc");

   FileInfo file = new FileInfo(filepath);
   if (file.Exists)
   {
      Response.ClearContent();
      Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
      Response.AddHeader("Content-Length", file.Length.ToString());
      string fExtn = GetFileExtension(file.Extension.ToLower());
      Response.ContentType = fExtn;
      Response.TransmitFile(file.FullName);
      Response.End();
   }
}

// Gets File Extension
private string GetFileExtension(string fileExtension)
{
   switch (fileExtension)
   {
      case ".htm":
      case ".html":
      case ".log":
         return "text/HTML";

      case ".txt":
         return "text/plain";


      case ".doc":
         return "application/ms-word";

      case ".tiff":
      case ".tif":
         return "image/tiff";

      case ".asf":
         return "video/x-ms-asf";

      case ".avi":
         return "video/avi";

      case ".zip":
         return "application/zip";

      case ".xls":
      case ".csv":
         return "application/vnd.ms-excel";

      case ".gif":
         return "image/gif";

      case ".jpg":
      case "jpeg":
         return "image/jpeg";

      case ".bmp":
         return "image/bmp";

      case ".wav":
         return "audio/wav";

      case ".mp3":
         return "audio/mpeg3";

      case ".mpg":
      case "mpeg":
         return "video/mpeg";

      case ".rtf":
         return "application/rtf";

      case ".asp":
         return "text/asp";

      case ".pdf":
         return "application/pdf";

      case ".fdf":
         return "application/vnd.fdf";

      case ".ppt":
         return "application/mspowerpoint";

      case ".dwg":
         return "image/vnd.dwg";

      case ".msg":
         return "application/msoutlook";

      case ".xml":
      case ".sdxl":
         return "application/xml";

      case ".xdp":
         return "application/vnd.adobe.xdp+xml";

      default:
         return "application/octet-stream";
   }
}



Response.TransmitFile() vs Response.WriteFile()

TransmitFile() method sends the file to the client without loading it to the application memory on the server. So, It is ideal to use for large files.

WriteFile() method loads the file being download to the server's memory before sending it to the client. It is ideal for small and medium size files.

Saturday, September 6, 2008

Remote-Desktop Connection Tool (Light weight)

I finally find a light-weight Remote Desktop Conncting tool - TeamViewer. Its is far-far better than VNC, atleast I believe. Its a handy tool, to help your friends and relatives lost in trouble-pool. Feel it.

Here is the download link.
http://www.teamviewer.com/download/TeamViewer_Setup.exe

Monday, September 1, 2008

Hiding Custom-Validator, on entering data in form

While using Custom-Validator, you may have noticed that once you get the error-message of Custom-Validator, the message won't dissappear even if you enter data into the missing field. That means, Custom-Validator dont behave like other Validators.

However, you can overcome this scenario using the JavaScript class library provided by the Microsoft. Just include the code-segment before the closing tag. Thats all.

<script type="text/javascript">
// ValidatorHookupControlID function is contained within
// Microsoft's Validation Script

ValidatorHookupControlID("<%= TextBox1.ClientID %>", document.getElementById("<%= CustomValidator1.ClientID%><%= CustomValidator1.ClientID%>"));

ValidatorHookupControlID("<%= TextBox2.ClientID %>", document.getElementById("<%= CustomValidator1.ClientID%><%= CustomValidator1.ClientID%>"));
</script>


Accessing Server-Controls in Client-Side

You can access the server-controls, on the client-side using JavaScript as below. Please note that your VS Intellisence may not recognize this. So you won't get a drop-down.

In the JavaScript script tag, just include the code as below:

<script type="text/javascript">
function show_textbox_value
{
var tbox_value = document.form1.<%= TextBox1.ClientID%>.value;
alert(tbox_value); // alerts the value of TextBox
</script>
}
...
...
...
<body>
<form id="form1" runate="server">
<asp:TextBox ID="TextBox1" runat="server ></asp:TextBox>
</form>
</body>

The above sample alerts the value inside the TextBox, when the function show_textbox_value(), is called.

Saturday, August 30, 2008

IE 8 Beta 2 Ready - for Download

At last, Microsoft start hitting the Internet again with the beta 2 release of the next-gen browser - Internet Explorer 8.

You can download, here.

Some of the notable features that's included are as follows:

a) Accelerators

They are known as Activities in beta 1. The technology allows users to find the defenition of a word, mapping an address or posting a blog-entry, that are available on vieweing page, instead of a new page.

b) Web-Slices

Brings the user’s favorite data (sports scores, weather reports, stock quotes, etc.) directly into the Favorites Bar. Changes and updates are retrieved and users are visually notified of the updated information status.

c) Visual Search Suggestion

In the Instant Search box, as users type a search term, they will receive real-time search suggestions from their chosen search provider, as well as results from the users’s own Favorites and browsing history.

d) Suggested Sites

These are recommendations about other, related sites that might be of interest. This feature must be enabled by the user; it’s not on by default.

If Beta 1 was meant for Designers, Beta 2 was meant for Users.
Happy Browsing...!!!

Friday, August 22, 2008

Increasing Torrent speed

Hi,

I know everyone is struggling to peak-up their torrent speed. Here is a complete solution.

I've gone thru this video very recently.


video


Now, Im getting a download speed of 300kbps. My cousin has a speed of 600kbps.


This is the screens for the basic menu-settings done on my uTorrent

Connection :


Bittorrent:
Queueing:
Go thru the video, and begin a perfect downloading.
This is my download status.


I hope every1 likes it.

Cheers...!!!

Note: This is a video sample from Metacafe. You can find more related videos here

Saving Flash videos from web-page

I know, lot of people Googles for a tool to save the flash video from web-page. Some tools may be trial version, or some may be annoying, by installing ActiveX plugin in ur IE.

A complete solution is available for this. Just download and install Real Player 11 GOLD. Afterwards, whenever you mouse-over a flash video, a small tag pop-ups above the flash-file prompting you to save/download. If u dont, see a prompt, just right-click the flash video, where you see a download option.

This works for, IE7, too. But, not for firefox 3.0(i dont know about the lower version, since IE is my default browser).

Download:
http://rapidshare.com/files/138772418/Real_Player_11.0.9.372_Gold_Premium.rar

YOUTUBE Video download link

Load this URL and enter the youtube video URL. That's all.

http://www.techcrunch.com/get-youtube-movie/

Note: Sometimes you may get invalid URL. In such a situation, check whether you have your country domain attached along with your youtube URL. That means, for India, you'll be having a URL like http://in.youtube***********. To download the video, just remove the country-domain from ur youtube URL & the URL looks like, http://youtube*****

Thats all, Happy Downloading...!!!

Thursday, August 14, 2008

Embedding Conncetion-String in web.config

<?xml version='1.0' encoding='utf-8'?>
<configuration>
<connectionStrings>
<clear />
<add name="Name"
providerName="System.Data.ProviderName"
connectionString="Valid Connection String;" />
</connectionStrings>
</configuration>

Encrypting ConnectionString in web.config

To work-out this sample you need to include System.Web.Configuration namespace.

Code:

using System.Web.Configuration;

// Open web.config file
Configuration config = WebConfigurationManager.OpenWebConfiguration("~");

// Get the ConnectionString section
ConnectionStringsSection section = config.GetSection("connectionStrings") as ConnectionStringsSection;

// Toggle Encryption
if (section.SectionInformation.IsProtected)
{
section.SectionInformation.UnprotectSection();
Response.Write("Connection String Encryption Removed");
}
else
{
section.SectionInformation.ProtectSection("DataProtectionConfigurationProvider");
Response.Write("Connection String Encrypted");
}

// Save changes to web.config file
config.Save();

Note:
Include this code in a Page-Load or in a Button-Click. The code sample toggles encryption-decryption. This is a code sample from MSDN.

Tuesday, August 5, 2008

unable to SHUTDWON computer after HIBERNATION in Vista

Recently, I encountered a problem in my Vista Ultimate with SP1.

Scenario

Due to power-failure, i's forced to hibernate my Vista system. Once the power comes back, I rebooted my system. It seems to work as normal. I dont find anything strange. But, when I gave a SHUTDOWN command from Start -> Shutdown. I's surprised by the way Vista behaved.

Every display was as usual. I got a screen showing 'Logging Off', then a 'Shutting Down' screen. And my LCD monitor got OFF and showed 'No Signal'. But, I noticed that my PC is not powered-off completely. Instead I can see the light of the SMPS lite & can hear my CPU fan running.

All I've to do is to turn-off the power manually. I googled for sometime & everyone had enountered the same issue (mostly during SLEEP than HIBERNATE). But I cant find a clear answer.

I also noticed that START -> RESTART is working fine. But, START-.SHUTDOWN has still problem. My situation turned pathethic. I even tried restoring to a previous settings. But everything was in-vein. As a temporary solution, i created a batch file which calls the 'shutdown.exe' from the System32 folder of the Windows directory (as 'shutdown -s'). To my luck, it worked fine.

Solution

Finally, I got a solution to sove this. I got this as a trial-and-error method. I manually shutdown the PC using shutdown.exe utility of Vista OS.

For this I created a batch file, with following contents inside it.



OR

Just type

shutdown -s

in your console screen or in your RUN window.

You'll get a warning that your PC will shutdown after 1 minute.


Note: This method may fail for first time (sometimes). If its failed, then restart the machine & try it again. It will work. Guranteed!

Saturday, August 2, 2008

Is 'Cuil' cool ?

August 1, 2008 - A milestone was laid my installing Cuil into the Internet Search Industry. Though Google rules the search-industry, lets here what Cuil has to say.

"We'd indexed 12billion web-pages, which is larger than any existing search engine (including Google)"

This was how Google came to the internet search industry, years back. They made a large set of indexes (via distributed servres) globally. And with the help of their powerful search algorithm, they clipped the web-pages, faster than anyone.

The exact idea was implemented the Cuil team. Oh! forgot to introduce the Cuil team- consisting of former Google engineers and others who worked at eBay, Altavista & IBM.

Holding 12billion index is not a bad thing.

First time when i used Cuil, i's doubted whether I'm using Wikipedia. Because no spelling suggestion is available. Later only I came to know that their searching mechanism is quite new. A new approach, but partially similar to Wikipedia.

I tried searching 'ASP.NET Official Forum'. My expectation was to get http://forums.asp.net, but I got some other search links. What I noticed here ia that, each search result is embedded in a box along with a screenshot.

Then, I tried another way searching the same thing, by making a small mistake, like this 'ASP.NET Oficial Forum'. Wow! to my surprise, I got the official asp.net forums link as the first result, along with a screenshot.

I dont know why that spelling-mistake has pushed-up the original link & why the original search-term hides the original link.

If you know the exact search-term, you'll have the exact result. But, what I felt was that the results are based on contents & relevance, rather than popularity and audience traffice.

That's why I mentioned, that I felt like Wikipedia. I've thought a long time, that if the wikipedia's search is powered by google, then how easy it will be to find an article in Wikipedia. Also, this would have prevented Google from releasing Knol, to beat Wikipedia. Anyway, its a monopoly, i justed mentioned my doubt, thats all.

The search result in Cuil is limited to few pages, as comapired with Google.

There I stopped & loaded Google. I dont find any better search engine than Google.

Might Cuil have some different approach than google. But, all it lies on how the end-user understands it, how they suits it.

Will the black background of Cuil, can corrupt Google ?

How far will Cuil be in our browser.

Will Cuil strike at the right Chord ?

Lets show continues...!!!

My Best Sites & Forums

The best sites, forums, blog that I like the most.

Official

MSDN (C#)

ASP.NET Forum

MSDN (ASP.NET Developer Center)

MSDN (C# Developer Center)

MSDN Developer Center

Other Links

DotNETSlackers

EggHeadCafe

CodeProject

Certification

CertRead

Best Sites for Technical NewsLetter(s)

I found some nice portals where you can subscribe for newsletter, about IT World, Technical Papers, and so on...

CNet
ZDNet
TechRepublic
CodeProject

Wow was there, long before...

Linux fan-boys, Microsoft-haters and Apple fruit's done a lot to pull down Vista's image.

If you listen to the way, how The Mighty Empire answered to Vista haters; you'll defenitely say Wow...

Yes, Wow was there long before, but took 1 year to realize it.

Read this article. and feel the Wow...

Microsoft looks to 'Mojave' to revive Vista's image

Thursday, July 31, 2008

The Wow has started

Hi,

Since the release of Windows Vista, everyone believed there is a Wow! in Windows Vista Family.
Everyone stopped searching for Wow! as soon as Vista's first release is buggy, slow & a headache. Wow of Vista changed into How. Yes! How to uninstall Vista.

But, Microsoft continually boasted that their Operating System is Wow.

All the Linux fan-boys, Microsoft-hater's, Apple fruit's struggled their best to pull down Vista from everyone's mind. As usual, everyone stopped searching for Wow. Even I know peoples, who hates Vista, still having only 256MB of RAM in their PC.

On March 2008, Redmondian's released Vista SP1, shutting everyone's rotten mouth. Those who'd downgraded to XP, start upgrading to Vista.

From my personal experience, I've upgraded from Windows XP Sp3 to Vista Ultimate, after the release of Vista SP1. SP1 had made Vista a lot stable, than its first release. Till now, I've never encountered any compatibility issue. I could install & use apps, just like XP.

I start enjoying Vista. What about those who shout at Vista ? Let them shout, without realizing the Wow inside Vista.

The Wow has started for me.

Oh! I forget to say onething, Im not dual-booting Vista & XP. Only Vista Ultimate.

Saturday, July 19, 2008

Is Windows Defender WoW!

I's wondering when Redmondians released Windows Defender. What they are going to do when Symantec, McAfee, Grisoft rules the PC & Internet Security world. But, Good News come on the other side.

Atlast, Microsoft prooved that Windows Defender has something to do with your PC security. A massive amount of Password Stealing have been detected and removed by Redmindians Defender. A 2 Million pasword stealing have been clobbered by Defender.

Read original article, here

Friday, July 18, 2008

ASP.NET Tip & Tricks site

Hey,
While i's fishing in internet, i found a site. It contains tips, tricks, notes; a worthy handbook like site, I must say. Its worth bookmarking.

http://defaultdotaspx.com/

Free e-book download link

Hi,
I find some cool places where you can download free e-book (technical). Pick any link as you like :

a) http://www.free-ebooks-download.org/

b) http://ebook-engine.com/

c) http://www.freebookspot.com/

d) http://www.ebooksboard.com/

e) http://www.pdfchm.net/

f) http://www.certready.blogspot.com/

g) http://congloi.info/

h) http://www.funkytype.com/downloadfree/ebooks-magazine/

i) http://knowfree.net/

j) http://www.freebookspedia.com/

k) http://knowfree.net

Saturday, June 7, 2008

Why 'Did u Say .NET ?'

Hi ,

I am poisoned with .NET. Bill Gates is my Passion. Microsoft is my Weakness. But my weakness is my biggest strength.

Im a software professional.

There are only 2 weakness in my life - C# and ASP.NET. You wont understand, how passionate im with .NET. No one can ever realise it.

I spend my free time with Visual Studio. The best & the biggest editor build by any company in the world.

Im not a genuis, but i know how to ride Visual Studio wisely. I know how to solve problems.

Yes! How to
dodge-the-codes.

I post only those things that are worked-out by me. Those i feel to be a common problem. Those which im passionated to. Those i feel common peoples need.

And Im always listening you, to hear... -
.NET

Yes!
Did you say .NET...
 
Best viewed in Internet Explorer 8.