Thursday, December 9, 2010
Wednesday, November 10, 2010
In classic web pages whenever we wanted to update some information in the page they needed complete page refresh. This one take more bandwidth as all the items have to be fetched again. After some years Ajax methods came which enabled to make partial page refresh or to refresh the required parts of page so that less bandwidth is consumed. This method was a hit and all developers used Ajax technologies and methods in their application.
Now as the recent one Reverse Ajax is rocking in the field. What is this Reverse Ajax? Here in ajax method we made calls to the server for checking for the required information in specific amounts of time. If updated information is available at that moment then it is useful, if not calling to the server will be waste one. If we repeatedly check server for late updates or in large gap if we check the server for updates then both are useless. In this Reverse Ajax whenever server gets updated information it will send an request to the browser to check for updates. After it as browser queries the server, updated information will be served. This saves huge bandwidth and time.
In this Reverse Ajax 3 scenarios are there.
- Piggyback technique
Tuesday, November 9, 2010
This is one of the problem which i have encountered personally. Whenever we install visual studio 2008 and also update it to service pack 1, we face some error which shows
"the visual studio language support for c# has not been installed. code-editinig intellisense will not be available. Markup intellisense for sever controls may not work"
By this error intellisense will not work and c# coding becomes like normal text as no intellisense support will be there. At this point of moment follow the below instructions.
Go to start-> Programs -> Microsoft visual studio 2008 -> Visual Studio Tools -> Visual studio 2008 command prompt.
In that command prompt enter "devenv/resetskippkgs" and press enter.
After doing this intellisense with c# support will work correctly.
Thursday, October 7, 2010
Till now we are knowing making video and audio calls from Gmail. When video and audio chat was introduced it made a new revolution , Google reached many peoples. Now they have moved another one step forward. In this year they have made an option to call from Gmail to another person cell phone.
This one is good , revolutionary one also it charges some prices. Right now calls withing U.S and Canada are free. Here below is the blog in which you can get more information.
|Photo from : Google Blog|
Monday, October 4, 2010
Always when it comes to the part of uploading files, photos and videos there arises some confusion of how doing this. In one way we can use BLOB type in database and then store the images or videos in that. But this is not the good way. In another type we store all the uploaded files in one folder and save the path location.
We are using built-in file upload control in asp.net. But how to use that for video upload?
Because video upload includes transfer of files continuously for some amount of time, means streaming. In that time add
HttpPostedFile attFile = FileUpload2.PostedFile;
int attachfilelength = attFile.ContentLength;
int attachfilelength = attFile.ContentLength;
if (attachfilelength > 0)
.....// rest code goes here
This will make the continuing streaming and will upload video files also.
Note: This method will take time and will be somewhat slow.
Wednesday, September 29, 2010
These days we use Ajax technologies in every page for the faster action, to make network traffic less, to refresh the needed parts of the page. We are using Ajax in .net, html, php, java etc.. Among this we are using AjaxPro which is also ajax, but here the codes are precompiled into dll file. Just we have to use this AjaxPro.
Why we have to use AjaxPro?
There are two methods by which we can use this AjaxPro.
Now lets have a look at the second method:
- First we have to place AjaxPro2.dll and its refresh file in the bin folder.
- In webconfig file add the following code , inside the
from appcode and function from the appcode class file as ajax.add(name).
here ajax is the class file and add is the function and pass the parameters.
- In codebehind of aspx page add “using System.Text;” & “using AjaxPro”
- Call the appcode class file as normally in the apsx code behind file.
- In page_load event of the aspx page code behind insert the following code :
AjaxPro.Utility.RegisterTypeForAjax(typeof(ajax));Here “ajax” is the appcode classfile name where the corresponding stored
procedures are there.
- In appcode class file add” using AjaxPro” namespace.
- On top of each function in classfile add [AjaxMethod] sentence.
Monday, September 27, 2010
Whenever we open a webpage or visit a website we see one icon at the starting in the address bar. That icon is know as "Fav-Icon" or logo/symbol for that company or page. This favicon is useful for recognizing pages, creating bookmarks etc...
we can add this fav-icons easily in webpages. Here are the couple of steps which describes how to adding fav-icons.
At first we have to create the icon images in order to display. You can create using adobe photoshop or in online you can use http://www.favicon.cc/ this website in order to create icon images.
After creating the icon images, place that image in root folder of the pages and within ...tag insert the following code
"link href="flower.ico" rel="shorcut icon" type="image/ico"
and in href give link to icon image.
After this when you run the page, image will display in address bar.
Here we can do this asp.net also. There also we can follow the same procedure, in link tag add the following property
rel="shortcut icon" href="<%=ResolveUrl("~/minto1.ico")%>"
in resolve url link to the image file.
Instead of placing same code in all files you can simply place it in master pages within ...tag. In all pages that will be reflected.