Skip to main content

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

Comments

Popular posts from this blog

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

My first problem with AJAX

I was using Callback (AJAX) to retrieve a page i had developed . Lets start all over, I was using AJAX to retrieve a part of the contents of a web page. Cool, simple, it downloaded without a pain, then I innerHTMLed it to a span tag. Worked fine, successful, clapped my hands etc.etc. Clicked on the button which had seemed to appear out of nowhere. And then, it all fell apart. The feared exclamatory symbol appeared on the status bar.... And for the newbies, thats an indication of a JavaScript error in IE. Of course, as usual i was all curses at my IE window......Anyway to make a long story short (i AM quite sleepy u know). the scripts which i seemed to be innerHTMLing to the span tag are not executed. And what i mean is anything between the script tags which have been innerHTMLed to that span tag are not executed. Of course i can see a ray of hope in the distance. I mean the distance till tomorrow morning. And just for kicks, check out a hi-fundoo flash file titled EPIC 2004 . And for...