Showing posts with label ASP.net. Show all posts
Showing posts with label ASP.net. Show all posts

Friday, May 17, 2013

How to Show Google Map Multiple Markers Info Window in Java Script - API Google Maps v3

Introduction:In my previous post I explained How can I add a place in Google Map. Here in this article I will explain how to add multiple markers with info window in asp.net web application. Find the source code below:-

how to display,infowindow, multiple markers,api v3 google maps, Java Script,Aspnet, an Example


Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

Thursday, May 16, 2013

UI - What is jQuery?

Introduction

In this post I will explain about jQuery, what is advantage of using jQuery and why to use jQuery in our web application



What is jQuery?

jQuery is a fast, cross-browser JavaScript library that simplify the client-side scripting, event handling, animation, and AJAX interactions for rapid web development.


jquery with example

Wednesday, May 15, 2013

AdRotator ASP Control - How to rotate advertisements on Web Page?

Introduction

AdRotator control is a Rich Web Server Control and It is used to randomly display advertisements in an asp.net website. In this post I will explain how do we use AdRotator Control to make rotating ads without refreshing the page. Find the source code below :-



adrotator control,web server controls,ad server,ad management,asp rotator,  aspnet controls,rotate banner

Monday, May 13, 2013

How to read WebConfig Connection Strings & App Settings in Java Script? - Asp.Net

Introduction

Web.config is the main settings and configuration file for an ASP.NET web application. We store application level settings and connection string value in it. In this post I will explain how to read those values from web.config easily.

config web,net web application,client side, in java script,aspnet

How do I display a Progress Bar an example - AspNet

Introduction

A simple progress bar let the user know that something is happening in background. In this post I will explain how to add Ajax Progress Bar in asp.net, find the source code below:-

progress bar,progress bar in c#,a user interface,jquery progress bar,asp with ajax

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UsingUpdateProgress.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Display Progress using UpdateProgress - Sample</title>
</head>

Sunday, May 12, 2013

How to make fixed header GridView scrollable div browser compatible - Asp.Net

Introduction

I have found so many articles on GridView control of scrolling header and I tried in several projects but didn't get any good solution with the browser compatibility and some don't work. 

Here in this post I will explain how to make GridView with static header with the browser compatibility. Find the source code below:-


fixed header gridview,gridview control,display data in gridview,grid in asp,fixed header,  aspnet gridview,static header,browser compatibility,sample code

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to make fixed header GridView scrollable with Jquery - ASP.Net</title>

Wednesday, May 8, 2013

C# - Simple ways to Auto Generate Serial Number in GridView - An Example

Introduction

Sometimes we have a scenario to create a column that will auto generate the serial number, so in this post I will explain how to generate serial number in Grid View.

Simple ways to Auto Generate serial number in GridView

  •   You can do using Container.DataItemIndex in GridView

<asp:TemplateField HeaderText="Serial No">                   
                    <ItemTemplate>
                        <%#Container.DataItemIndex + 1 %>
                    </ItemTemplate>
</asp:TemplateField>



  • You can add following line of code to auto generate a column in GridView
  
<asp:TemplateField HeaderText="Serial No">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server"
                        Text='<%# (GridView1.PageSize * GridView1.PageIndex) + Container.DisplayIndex + 1 %>'>
                        </asp:Label>
                    </ItemTemplate>
</asp:TemplateField>

Download the source code click here ..

Monday, May 6, 2013

Simple ways to Auto Refresh Web Page? - AspNet

Introduction

In this post I will explain how to auto refresh web page? There are following simple ways to reload web page after some interval of time (Eg:- in 15 seconds).
  • You can simply add following line of code in between <head> </head> section to enable auto refresh in an Asp.Net web page or a HTML page.
<meta http-equiv="refresh" content="15"/>


  •  You can also add follwoing line of code in between <head> </head> section to redirect to a specific page if you put the URL inside the tag.
<meta http-equiv="refresh" content="5;url=http://www.google.com" />


  •  If you want to set the refresh web page dynamically then that can be done in Asp.Net by adding server side code in the Page_Load function to set it, as shown below:
Response.AppendHeader("Refresh", "15");