Skip to main content

Posts

Continuing with CallBack

Continuing with my previous post titled Client CallBack in ASP.NET 2.0 , I finally found, Dynamic HTML and XML: The XMLHttpRequest Object , a great article explaing everything about the XMLHttpRequest object and its applications.

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...