Monday, 16 April 2012

How can we send encypted data using querystring in asp.net

We usually pass value through query string of the page and then this value is pulled from Request object in another page.

FirstForm.aspx.cs

Response.Redirect(“SecondForm.aspx?item1=” + TextBox1.Text);

SecondForm.aspx.cs

TextBox1.Text = Request. QueryString["item1"].ToString();

After Encryption Send data using query string in asp.net

Sunday, 8 April 2012

How can we change the forcolor of link button when mouse over button in asp.net


//css file.

body
{
background-color:Black;
}
.simple
{
color: #000080;
}
.simple:hover
{

color: #FF6600;
}


Tuesday, 3 April 2012

How can we implement for and foreach loop in c#

For Loop:-

  int[] myname = new int[1];
        int count = 0;
        for (int i = 0; i < myname.Length; i++)
        {
            count += myname[i];
        }

Friday, 30 March 2012

How can we store in multiple table and show in messagebox using vb.net


Imports System.Data
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object,
 ByVal e As System.EventArgs) Handles Button1.Click
    Dim ds As New DataSet
    Dim dt As New DataTable
    Dim dr As DataRow
    Dim idCoulumn As DataColumn
    Dim nameCoulumn As DataColumn
    Dim i As Integer

    idCoulumn = New DataColumn("ID", Type.GetType("System.Int32"))
    nameCoulumn = New DataColumn("Name", Type.GetType("System.String"))

How can we add record using dataset and add record from gridview coloumn using vb.net



 Dim idcoloumn As New DataColumn
    Dim id1coloumn As New DataColumn
    Dim dt As New DataTable

    Dim dr As DataRow
    Dim dr1 As DataRow

Thursday, 29 March 2012

In program how can we use dataset in vb.net


    Sub Main()
 'Here is  Two DataTables.
 Dim table1 As DataTable = New DataTable("doctors")
 table1.Columns.Add("name")
 table1.Columns.Add("id")
 table1.Rows.Add("sohan", 1)
 table1.Rows.Add("Waris", 2)

Wednesday, 14 March 2012

In asp.net how can we send sms

SENDING SMS IN ASP.NET

Introduction:
                In this article we will see how to send sms from our web application using ozeki-Ng-SMS-Getway.
Pre-Requesite:
1)      For sending sms from our asp.net web application we required third party sms-getway which will deliver our messages to user. You can download this Getway from here http://www.ozekisms.com/index.php?owpn=112.
2)      Mobile Phone whith SIM card and Datacable. Which will be used for sending our sms.