Skip to main content

Posts

Showing posts from 2004

SmartNavigation without ASP.NET????

Tip of the day, Wanna reproduce smartnavigation behaviour for your web pages????? Was playing around with the feature provided by ASP.NET and it performs somewhat like this: <script> function TrialSaving() { StorageSpace.document.write(document.body.innerHTML); StorageSpace.document.forms[0].submit(); StorageSpace.document.body.innerHTML=""; setTimeout("tryMe()",300); return false; } function tryMe() { if(StorageSpace.document.body.innerHTML=="") setTimeout("tryMe()",300); else document.body.innerHTML=StorageSpace.document.body.innerHTML; } </script> <iframe name='StorageSpace' width=100%></iframe> Call function TrialSaving before submiting your form. And, voila, the page does not seem to refresh. U can go about add...

Smart navigation

Today early monday morning, started off with a discussion, Smart Navigation. As usual research was done. google provided some intriguing material. Looks like another controversial situation. http://www.dotnetjunkies.com/Article/5E94AB64-5CA3-4487-8678-2853E3EF850D.dcik , a good explanation of Smart navigation, and then go through this: SmartNavigation and why not to use it and then AutoPostback and SmartNavigation Together Clears Form At sometime we did enable smartnavigation for our web forms. But we did have lots of div tags in our page, and it looked like smartnavigation managed scrolls only for full body. I overcame that by disabling smartnavigation and writing javascript code of my own. Need to check as to what else smartnavigation does do. Will put up the code here after that. Until then, happy snoozing.

A redesigned search engine????

MSN Search ...Redesigned according to what they say. Looks good, but search speed i felt was slower than google, who knows... One interesting thing i did find was a "This day in history" link to Encarta. Did not know that encarta provided such a link. Should think of adding it to my blog template. The other thing i liked about this page is it does not ask me to Sign In with my passport.NET account. But I guess MS will make it a paid service some day.

Client CallBack in ASP.NET 2.0

Whidbey, a tool to bring user and developer closer, more easily. Sounds good, does'nt it? Anyway, I heard about the call back functionality they were implementing. Sounded too good. Great feature, etc. etc. Played around with it and it looked really good, useful, etc.etc. Then started the thought process. How are they doing it??? I had heard about another way, using an ActiveX object called XMLHTTP . Then some guys discussed about whether client callback worked on browsers such as Mozilla, the doubt level increased especially when a bug was reported on Visual Studio bug tracker. So I explored, it was quite simple. When I included code to get a event reference to the callback functionality ASP.NET included a script (.js) file. I got out this file and opened it in good, old TextPad..... Goodness, gracious it looked extrememly familiar. Have a look . So I guess technology is not new but just implementation has been changed, for the better????? Maybe.......... :)

Theming in Whidbey using CSS

Continuing my blog titled Themes in Whidbey . I would like to mention some great points I did find out today about Whidbey featrures. How many times have you got sick of developing Sites which have themes???? I mean every page u create has to have, maybe in ASP, something like <link href="<%=Session["ThemeFile"]%>.css"/> I have been doing since a long time. Do mention if you have a simpler method of defining a variable CSS for your page!!! Whidbey simplifies this further. Now in ASP.NET, all you will have to do is Create Themes directory, if not aldready present, Create a directory for each theme required, maybe Black, Gray,etc. Dump your CSS files into this directory. in Page_PreInit method define the Theme as Page.Theme="<Theme directory Name>". Further can be made into Page.Theme=(string)Session["ThemeType"] and viola, your theme management is take care by ASP.NET When you want to change the theme, the...

Themes in Whidbey...Is it worth it????

Theme management, how were u doing it previously??? I was using simple css files. I define classes for objects, or ids. Go ahead and just mention the styles for these classes in the CSS file. Ok, I want to change the theme??? I change the CSS style sheet. Was happy with the way things were going on. Then came along Whidbey. They even had a simple to use theme management, ok thats what they said. I rushed forward, got to learn how to use it, and went ahead and implemented it. Wow, I can change themes, on the fly, by just changing the property. Finally, some really cool way of doing this. Great they will be generating a css file automatically. Cool!!!! Something in me decided i need to have a look as to how this css file. So went ahead and executed the page. Good old IE started up, the goody good looking page opened up, and I did a view source. Searched for keyword <link,....no matches found stylesheet...no matches Wow, then how is it done??? I go to one of the text box. Wait a mi...

Wondering what happens inside those .NET classes?????????

Do you program using Whidbey???? or even VS.NET 2003???? I do, with Whidbey beta 1. Anyway somebody pointed me to a product available freely. I, the inquisitive one downloaded it. Executed it. Looked good. But what about the functionality??? It loaded up some dlls i had seen in .NET.. But what the heck he had used System.Reflection just to get the functions, something I had been doing long ago. Was about to close it when i realised that the methods mentioned were links. As usual the curious me decided to explore. Assuming that it will take me to msdn help for that method i clicked. And lo and behold it showed me, I am serious, the full code in C#. Wow, there's something I can't do. Imagine knowing the IL for .NET and using it to build a full fledged disassembler. I seriously recommended dotnet Reflector found at Lutz Roeder's Programming.NET C# VB CLR WinFX for a really serious programmer. Found at the site are various other superb tools.

List box which selects the right item according to what you type?

List box which selects the right item according to what you type???? Is it possible...I mean go to any list box, type in some string, and will the right item be selected automatically??? Not possible with ordinary listbox..What if we add javascript codes. Thought it was not possible. Tried it out, and yes!!!!! it works. Tried it to upload it to blogspot, but no these guys here dont seem to allow script tags in the html content. So what, I open a blog in another site. Check out http://uselessmortal.rediffblogs.com/ . Go ahead and comment about it :-)

A System to reduce personal data redundancy

I have a problem. A simple problem. If I am allowed to sit tight in a corner with nothing to do, I start thinking of new ideas. Now the problem is I dont know how to continue working on those ideas. The idea I got this time is quite a neat one, I mean it, a seriously neat one. How many times do, you, as a net-aholic type in your personal details. Your name, address, DOB. etc. Of course this time could have been saved to do something more useful (like reading more blogs :-) ). Now imagine you shift to a different place of residence..... Further, you decide to give up your christened name and decide to rename yourself, after being inspired by that guy/gal you saw in the theatre. How many sites do you have to update??? How many days do you have to spend????? (Unless of course you still use that old style of shopping, I mean the manual one, which includes walking). The number of days you spend can be considered to be down time(as in the time wasted on a computer while installing m...

The Technicalities of Life

Technicalities: The quality or condition of being technical. Something meaningful or relevant only to a specialist: a legal technicality. So I officially christen this blog as "The Technicalities of Life". Peer bloggers beware......................