sunny


{ City } chandigarh
< Country > india
* Profession * software programmer
User No # 43355
Total Questions Posted # 2
Total Answers Posted # 3

Total Answers Posted for My Questions # 4
Total Views for My Questions # 7606

Users Marked my Answers as Correct # 13
Users Marked my Answers as Wrong # 9
Questions / { sunny }
Questions Answers Category Views Company eMail

Can we make a class with class with same;suppose public class abc { public class abc { } }

1 ASP.NET 2519

suppose we have two object;obj1 and obj2 can we assign obj2 to one1; and if yes; then after assigning suppose we delete obj2 then obj1 will retain obj2 value or not.

3 ASP.NET 5087




Answers / { sunny }

Question { TCS, 5771 }

How to get the row index on checking a Checkbox in a ListView


Answer

on ListView_itemDataBound event

Label lblsno = (Label)e.item.Cells[1].FindControl
("lblsno");
int count = grdorderdetail.Rows.Count;
for (int i = 0; i <= count; i++)
{
lblsno.Text = (i + 1).ToString();
}

Is This Answer Correct ?    11 Yes 2 No

Question { 3037 }

What are three ways that you can use a compare validator?


Answer

There are three ways to use compare validator.

1> When you want to compare value of two control.

2> when you want to compare value with condition.suppose

age must be greater then 18.

3> when you want to compare datatype check.

Is This Answer Correct ?    1 Yes 0 No


Question { 5388 }

what is the difference between delete and truncate?


Answer

Truncate is more faster than delete.

in sql you need to write statement: truncate table

table_name

truncate delete all record from table.it remain only

structure of table.

Is This Answer Correct ?    1 Yes 7 No