|
Try This,
<script>
var tableElement = document.getElementById('Grid');
for (var i=0;i<tableElement.rows.count;i++)
{
}
</script>
|
|
|
|
|
it is not showing the message box
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
var gridViewCtlId = document.getElementById('<%=GdFriend.ClientID%>');
alert(gridViewCtlId.rows.length);
|
|
|
|
|
when u binding grid with data use to set Attributes
gridManList.Attributes["Count"] = dt.rows.count;
after that u can find out eaisly.
function count(id)
{
var grid=document.getElementById(id);
var integer=grid.Count;
alert(integer);
}
Devjit Das
|
|
|
|
|
InsDev wrote: gridManList.Attributes["Count"] = dt.rows.count;
it has a compilation error.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
put ur code here.
Devjit Das
|
|
|
|
|
error is cannot implicitly convert from int to sting
GridView1.Attributes["count"] = GridView1.Rows.Count;
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
what is this u r not able to convert int to string. some sort of thing u should able to find out and solve urself. ok .....
GridView1.Attributes["count"] = GridView1.Rows.Count.ToString();
Devjit Das
|
|
|
|
|
still not showing the messagebox
<script language="javascript" type="text/javascript">
function abc()
{
var d = document.getElementById("<%=GridView1.ClientID %>");
var int1= d.count;
alet(int1);
return false;
}
</script>
GridView1.Attributes["count"] = GridView1.Rows.Count.ToString();
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
on which event u call this function. u have to call this function on any event after the grid has fill with data.ok go on it will work.
Devjit Das
|
|
|
|
|
Wohhhhhhhhh Thanks.It is working now
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
try it urself first.just not to worrying and keep patience. ok .
Devjit Das
|
|
|
|
|
ok Thanks....
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
u can implement also this
document.getElementById(gridid).rows.length;
will count only the display row.
Devjit Das
|
|
|
|
|
not showing the message box
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
try it ur self it will work . ok..
Devjit Das
|
|
|
|
|
hi....Inside thescript u'll write following code.I think it will work
var r="";
r = document.getElementById('GridId');
for (var i=0;i<r.rows.count;i++)
{
}
<div="" class="ForumSig">Rajendran
|
|
|
|
|
code is incomplete?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
i think that u r not working any where.
Devjit Das
|
|
|
|
|
Sonia Gupta wrote: can i calculate that the gridview contains how many rows (in javascript)?
Yes, alert(<%GridView1.Rows.Count%>);
|
|
|
|
|
Hi
is there any way to capture user ip address and his location
from our website.
suppose i developed a website called www.mywebsite.com
if any user who opens this website i want his ip and location.
Any help appreciated
Thanks
ngrj.
|
|
|
|
|
from this code u will get the ip address
string add = System.Net.Dns.GetHostName();
System.Net.IPHostEntry myIPs = System.Net.Dns.GetHostByName(add);
and for location use globalization.
Devjit Das
|
|
|
|
|
Check the request object you will find every thing that you want to know but rememebr one thing first check is it null or empty then use i don't know exact method name but can definaety say you will get in request object
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hai all,
i have a gridview(gvattendance) ,in that i maintain 7 days attendance of the perticular Employee by using radiobuttonlist in each and every column depending on weekno:1,2,......
,after this i saved the data.
now i had some problem for updating and editing?
for Editing i need to display the saved data of the employee (Who is already inserted above) in the same gridview(gvattendance) and after that ,i had to done updating?
Thanks
Subbu.
|
|
|
|
|
use the same query which u bind with gridview after the updation call the query again.
Devjit Das
|
|
|
|