Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

following

Access server side variable in javascript
Tuesday, 31 January 2012 09:31
Add following javascript function to aspx page


function check() {
alert("this is check value " + '<%= checkvalue %>');
}


Add following variable declaration on server side i.e aspx.cs

public string checkvalue ="indrnilhafa";

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/OMJIbSmkUX4/14581

 
Fetch hyperlinkfield value on rowbound event
Tuesday, 31 January 2012 09:29
Add following as column to your grid view





Write following code on rowcommand event

HyperLink hyp = (HyperLink)Gridview1.Rows[Gridview1Row.RowIndex].Cells[columnEmployeeIndex].Controls[0];
emp = string.IsNullOrWhiteSpace(hyp.Text) ? 0 : Convert.ToInt32(hyp.Text);

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/NxJVM6tw4uk/14579

 
Server side evaluation of Grid View row.
Monday, 30 January 2012 07:31
Following is grid view code for aspx page.



Width="100%" OnRowDataBound="gv_RowDataBound">


































































Following code evaluates each row of grid:

protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{

Label lblStudentName = ((Label)e.Row.FindControl("lblStudentName"));
Image imgControl = ((Image)e.Row.FindControl("imgControl"));

lblStudentName.Text = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "StudentName"));
imgControl.ImageUrl = (Convert.ToBoolean(DataBinder.Eval(e.Row.DataItem, "Present")) ? "Images/Checkmark.png" : "Images/Cross.png");
}
}

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/P3QQaXrJRl8/14541

 
Use of DATEPART() Function in sql server
Monday, 26 December 2011 23:51
The DATEPART() function is used to return a single part of a date/time, such as year, month, day, hour, minute, etc.

Syntax
DATEPART(datepart,date)

The following SELECT statement:

SELECT DATEPART(yyyy,OrderDate) AS OrderYear,
DATEPART(mm,OrderDate) AS OrderMonth,
DATEPART(dd,OrderDate) AS OrderDay,
FROM Orders
WHERE OrderId=1


OUTPUT
OrderYear OrderMonth OrderDay
2008 11 11

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/QjclBoUKIHc/14349

 
Re: Resizing Image in C#
Monday, 19 September 2011 09:59
Hi All,
Please check out the following links.....
http://mindstick.com/Articles/b1984687-85b1-469f-b874-c6b0fd4f1d48/?Resizing%20Image%20in%20C#

Thanks !!!!

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/Vbty0QQMrkY/13637

 
Start
Prev
1


Page 1 of 2
Taxonomy by Zaragoza Online