Wednesday, February 29, 2012

Gravatar Management in AJAX (Asynchronous JavaScript and XML) Using ASP.NET


Introduction
Ajax (Asynchronous JavaScript and XML) is a new web development technique for interactive websites. With AJAX help we can develop web applications and retrieve small amounts of data from a web server. AJAX consists of a different type of technology.
  • JavaScript
  • XML
  • Asynchronous Call to the server
Gravatar
A Gravatar is associated with an email address. We can visit Gravatar.com and upload an image and associate the image with your email address. The Gravatar control is an ASP.NET AJAX control that enables you to use gravatar images on web forms. If a user has not uploaded an image to Gravatar.com then you can auto-generate a unique image for the user from the user email address. 

Four type of  auto-generated images support Gravator
  • Identicon
  • MonsterId
  • Wavatar
  • Retro
Properties
  • ClientIDMode
  • Enabled
  • EnableTheme
  • EnableViewState
Step 1 : Open Visual Studio 2010
  • Go to File->New->WebSite
  • Select ASP.NET WebSite
Step 2 : Go to Solution Explorer and right-click.
  • Select Add->New Item
  • Select WebForm
  • Default.aspx page open
Step 3 : Open the Default.aspx page and click in [Design option].
  • Drag and drop ScriptManager, TextBox
Step 4 : Go to the Default.aspx[Source] page and drag the Gravatar Control from the Toolbox.
gravator4.jpg

Step 5 :
 Now the simple code is shown for the Gravatar Control.
Code
<asp:Gravatar ID="Gravatar1" runat="server">
Step 6 : Now in the Default.aspx[Source] option register the Gravatar control code with TagPrefix.
Syntax
<%@ Register Assembly="AjaxControlToolkit"Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Step 7 : Now we define the Gravatar control's Email property.
Code
<asp:Gravatar ID="Gravatar1" runat="server"Email="raj01tripathi@gmail.com"DefaultImageBehavior="MonsterId"    />
Step 8 : Now go to the Deault.aspx[Design] option and AddExtender control BallonPopupExtender.
garvator3.jpg
Code
<asp:BalloonPopupExtenderID="Gravatar1_BalloonPopupExtender" runat="server"BalloonPopupControlID="TextBox1" CustomCssUrl=""DynamicServicePath="" Enabled="True"ExtenderControlID=""  TargetControlID="Gravatar1">
asp:BalloonPopupExtender
>
Step 9 : Now write the code in the Default.aspx[Source] option.
<head runat="server">    <title>my ajax applicationtitle>head>
<
body>    <form id="form1" runat="server">    <asp:ScriptManager ID="ScriptManager1" runat="server">    asp:ScriptManager>
<
div>
       <
asp:TextBox ID="TextBox1" runat="server">asp:TextBox>      
<asp:Gravatar ID="Gravatar1" runat="server" Email="raj01tripathi@gmail.com" DefaultImageBehavior="MonsterId"    />        <asp:BalloonPopupExtender ID="Gravatar1_BalloonPopupExtender" runat="server" BalloonPopupControlID="TextBox1"CustomCssUrl="" DynamicServicePath="" Enabled="True"ExtenderControlID=""  TargetControlID="Gravatar1">        asp:BalloonPopupExtender>    div>    form>body>
html>
Step 10 : Now press F5 and run the application.
garvator.jpg
When we click on this image then following Balloon Popup window opens.
garvator2.jpgree
reference: Davin Martyn

Download Visual Studio 11 beta and .NET Framework 4.5 beta

Downloaded it from the Microsoft Site:

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27543 

It's a 1 MB exe which you can download and run. This would start the download. It's pretty easy though.

Once you have downloaded, during the installation, you will be asked to reboot the system. And continue with the installation.

Sunday, February 26, 2012

Generate Code Snippet With C# How?


 In this content I will talk about how to make a value little. Visible Facilities allows designers to preserve thoughts of value which can be loaded at a later time. This will preserve on retyping prevents of value that are used often. I also discover it very useful when I have to demonstrate value during demonstrations. Instead of entering everything stay, I discover it far simpler to simply add the value prevent by prevent using value thoughts.

Generate an Interactive Flower Use HTML5

This is an easy program for newbie’s that reveals how to create an entertaining plant on a fabric using HTML5. We know that HTML 5 is the innovative edition of HTML. Generally HTML 5 can be used to create 3D programs. This content is designed to help with the use of HTML5 resources to create an entertaining plant on a fabric program.

An Easy Silverlight Program Employing MVVM


In the following article you will see how to apply MVVM in a Silverlight program.

MVVM
In simple words, View knows ViewModel, ViewModel knows Model, but not vice versa.



Friday, February 17, 2012

Icon Slider in Silverlight 4 using XML Data


First of all make a new project in Silverlight and add a new .xml file in the ClientBin folder using add new item and add some images in Assets folder under ClientBin folder; here is my xml file data.


Remove the Particular Permission Stage from the Website in SharePoint 2010 Using ECMAScript


Introduction                   
In this article you will see how to delete the specific permission level from the site in SharePoint 2010 using ECMAScript. I have a SharePoint site which has the following permission levels (Navigate to the SharePoint site. Click on Site Actions and then click on Site Settings. Click on Site Permissions in the Users and Permissions section. In the ribbon interface, click on Permission Levels).