studio NETSOULS

Applying Web To Your Business

When searching for this I found dozens of implementations doing things like parsing each character, string manipulation, and more. But one of the best solutions i could come up is this:

   1: function isInteger(val) {
   2:  
   3:    return (val == null || isNaN(val)) ? false : 
   4:       ( ((1.0 * val) == Math.floor(val)) && (val.indexOf(".") == -1));
   5:  
   6: }
  • Currently 4 /5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

At first glance, it should be easy to inject a javascript, but it took a little bit of digging around to figure out the resolution, the key is to use ScriptManager.

   1: <asp:UpdatePanel ID="myUpdatePanel" UpdateMode="Conditional" runat="server">
   2:    <Triggers>
   3:       <asp:AsyncPostBackTrigger ControlID="btnClick" EventName="Click" />
   4:    </Triggers>
   5:    <ContentTemplate>
   6:        <asp:ImageButton 
   7:           ID="btnClick" 
   8:           ImageUrl="ClickMe.png" 
   9:           runat="server"
  10:           CausesValidation="false" 
  11:           OnClick="btnClickEvent"
  12:           ToolTip="Click Me" 
  13:           AlternateText="Click me!" />
  14:    </ContentTemplate>
  15: </asp:UpdatePanel>

We wanted to dynamically inject some JavaScript code. If my ScriptManager control has EnablePartialRendering set to true, it's a simple matter of registering the script. What i didn't realize earlier was that you don't need to the use the current page or current event, you need to call the static method on the ScriptManager class.

   1: protected void btnClickEvent(object sender, ImageClickEventArgs e)
   2: {
   3:    btnClick.Text = "I was clicked."
   4:    btnClick.Disabled = true;
   5:    ScriptManager.RegisterClientScriptBlock(myUpdatePanel, typeof(UpdatePanel),myUpdatePanel.ClientID, "alert('It worked!');",true);            
   6: }

That's it! Use the ScriptManager class, point it to the instance of your update panel, pass it a unique key and then the JavaScript you want, and it will be executed once the update panel is done rendering.

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

I have been using Justdial.com for many years to search for local businesses. It is a pretty decent search service especially when you are away from the internet - you can just call up the number and they will sms you the required information. However, if you were to use the internet, I prefer Google Local Search.

For example: You wanted to get a list of pre schools in the national capital region, would give you instant result of Pre schools and websites which contain a comprehensive list of pre-schools etc with location maps and and phone numbers.

Pre-schools in Delhi, Google Local Search

This makes your life so much simpler. I personally like the way the content is placed and the location map support.

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

Worried about fluctuations in Google PageRank may be a complete but still, the PageRank values of individual web pages on a site can give you some good idea about the relative importance of these pages in Google.

For instance, if there are two or more pages on your site with very similar content, find the one with highest PageRank and then do a redirect (301 permanent) on the other pages. This may be a slightly vague example but you should get the idea.

Brandon Thomson has created a PageRank Checker service powered by the Google App Engine that lets you calculate the Google PageRank of multiple URLs in one go.

The service can also help you find the Google PageRank of all URLs that are linked from a particular web page.

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

Feedmyapp.com the famous web 2.0 directory now has an Indian Edition. It will be highlighting web 2.0 applications from India and Indians across the world.

Its grown to become India’s most well organized list of web apps and startups.

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

About Us

studio NETSOULS is a complete IT services company, offering strategy, design, development and implementation of the total solution for your web and IT initiatives. The solutions we provide, enables businesses to leverage leading edge technology to gain sustainable competitive advantages in today's marketplace.

We specialize in designing, developing and deploying the next generation of IT solutions including e-business solutions Read more...

Tags

This will be shown to users with no Flash or Javascript.

Contact Us

My status

Quote of the Day

Men are disturbed, not by the things that happen, but by their opinion of the things that happen

- Epictetus

NutritionVista

www.NutritionVista.com

Archives


Advertisements


Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Log in