There are times when you will want to set the color of the grid lines in your GridView - however there is not to my knowledge a way of doing this declaratively. A workaround is to do this by tapping into the GridView's RowDataBound event.
Tuesday, 25 October 2011
Abstract Versus Interface in asp.net
The concept of Abstract classes and Interfaces is a bit confusing for beginners of Object Oriented programming. Therefore, I am trying to discuss the theoretical aspects of both the concepts and compare their usage. And finally I will demonstrate how to use them with C#.
Friday, 21 October 2011
JQuery syntaxes
What is jQuery?
jQuery is a library of JavaScript Functions.
jQuery is a lightweight "write less, do more" JavaScript library.
The jQuery library contains the following features:
JSON in JavaScript:
JSON in JavaScript:
JSON stands for JavaScript Object Notation that is a language independent text format which
is fast and easy to understand. That means it is really very simple and easy to
learn without sparing much time. In another words we can say that JavaScript
Object Notation is a lightweight data-interchange format that is completely
language independent but with some conventions.
How to convert XML to JSON in ASP.NET
How to convert XML to JSON in
ASP.NET
JSON is a lightweight data-interchange
format. It is particularly useful because it can be 'decoded' easily by web
page JavaScript into object form.Thursday, 20 October 2011
JSON
JSON: JavaScript Object Notation.
JSON is syntax
for storing and exchanging text information. Much like XML.
JSON is
smaller than XML, and faster and easier to parse.
What
is JSON?
how to change textbox background color whenever validation fails using asp.net(custom validator)
I have a one requirement like changing the textboxes
background whenever validation fails at that time I used the custom validator
and JavaScript function to validate textboxes and change the textboxes
background color for that write the following code in your aspx page
how to create watermark textbox using javascript
Introduction
Here I will explain how to create watermark textbox using
JavaScript.
Description:
What is an application object and where we use application object in asp.net | application object sample using asp.net
What is an application object?
Application object is used to store the information and
access variables from any page in application. Application object is same as
session object only the difference is session object is used to maintain the
session for particular user.
Monday, 17 October 2011
Simple AJAX Example
<%@ Page Language="VB"
AutoEventWireup="false"
CodeFile="Default.aspx.vb"
Inherits="_Default"
%>
Set a single select, a multiple select, checkboxes and a radio button in jquery
<!DOCTYPE html>
<html>
<head>
<style>
Get the current value of the first element in the set of matched elements in jquery
Hi in this article i explain about how to get the current value of the first element in the set of matched elements in jquery
JQuery + AJAX example
In Demo.aspx page
<%@ Page Language="VB"
AutoEventWireup="false"
CodeFile="Default.aspx.vb"
Inherits="_Default"
%>
ASPX vs ASCX (ASP.NET Page vs User Control)
A lot of web developers while learning ASP.NET get confused with the difference between an ASP.NET Page and ASP.NET User Control.
Sunday, 16 October 2011
Simple AJAX with JQuery
Code:
<script type="text/javascript" src="jquery.js"></script>
That was easy enough!
<script type="text/javascript" src="jquery.js"></script>
That was easy enough!
Saturday, 15 October 2011
How do grab the value from label control into jQuery?
jQuery:
$(document).ready(function
() {
$("#btnUpload").click(function () {
Friday, 14 October 2011
Difference between asp and asp.net?.
"ASP (Active Server Pages) and ASP.NET are both server
side
technologies for building web sites and web applications,
ASP.NET is
Thursday, 13 October 2011
What are the various ways of securing a web site that could prevent from hacking etc .. ?
What are the various ways of securing a web site that could prevent from hacking etc .. ?
What is the < machinekey element and what two ASP.NET technologies is it used for?
Configures keys to use for encryption and decryption of
forms
authentication cookie data and view state data, and for
verification of
Can we handle the error and redirect to some pages using web.config?
Yes, we can do this, but to handle errors, we must know the
error
codes; only then we can take the user to a proper error
message page,
else it may confuse the user.
How do you implement Paging in .Net?
The DataGrid provides the means to display a group of
records from the
data source (for example, the first 10), and then navigate
to the
"page" containing the next 10 records, and so on
through the data.
HttpContext of the first page. · Can you create an app domain?
Yes, We can create user app domain by calling on of the
following
overload static methods of the System.AppDomain class
What are the various security methods which IIS Provides apart from ..NET ?
The various security methods which IIS provides are
a) Authentication Modes
What is Web Gardening? How would using it affect a design?
The Web Garden Model
The Web garden model is configurable through the section of the
machine.config file. Notice that the section is the only configuration
The Web garden model is configurable through the section of the
machine.config file. Notice that the section is the only configuration
What is view state?.where it stored?.can we disable it?
The web is state-less protocol, so the page gets
instantiated,
executed, rendered and then disposed on every round trip to
the server.
The developers code to add "statefulness" to the
page by using
Wednesday, 12 October 2011
how to bind data to DataGridView in windows form
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1
how to set connection string in vb.net
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Public Class Form1
Monday, 10 October 2011
Introduction to 3-Tier Architecture in .NET
Introduction
Here I will explain about uses of 3-Tier architecture and how to create 3-tier architecture for our project in asp.net
Tuesday, 4 October 2011
page indexing and row databound in GridView
Protected Sub GridView1_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GridView1.PageIndexChanging
Monday, 3 October 2011
How to create custom paging in Repeater control?
The Repeater control in ASP.NET is used to show records from the database. The data display in the repeater control custom design. For example we cannot use custom design in grid view control, but it is possible to use
calling javascript function in vb net
Page.RegisterClientScriptBlock("SCRIPTNAME","<script language='javascript'>compute();</script>")
Redirect page to another URL (vb.net)
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="rojas.aspx.vb"
Inherits="rojas"
%>
Timeout in javascript
Timeouts are like a timer. It can allow you to execute a
section of code after a specified amount of time has passed. If you have viewed
this page for 30 seconds, you have probably noticed a working example of this.
Here is the code used :
Using timeouts in JavaScript
Now and again it can happen that you want to time some task on your web page. For example you want to display the current time value on your site. In this case you need to update your page in every seconds. Don't worry! This task is quite simple using JavaScript.
Subscribe to:
Posts (Atom)