last day (16 days later) » 
06:00 - 10:0010:00 - 11:00

6:02 AM
0
A: Input array is longer

DeepYou will have to add the columns in you datatable dt.Columns.Add(); for more information : https://msdn.microsoft.com/en-us/library/hfx3s9wd(v=vs.110).aspx

 
but i add columns in my jquery .. i bind gridview in jquery
 
the exception is thrown in the asp.net web method, there you need to add the columns in the datatable before inserting the data into it., the columns defined in jquery will not add any column information in the datatable you have defined in webmethod
 
check my update code i add columns but still same error occur @Deep
 
you are adding columns info after pushing the data in table. this is why same error is there
 
now i add return dt at the end but same error occur
 
6:02 AM
i meant before adding row into the datatable First Step dt.Columns.Add("ID",typeof(int)); dt.Columns.Add("OName",typeof(string)); dt.Columns.Add("RegNo",typeof(string)); dt.Columns.Add("Speed",typeof(string)); Second Step dt.Rows.Add(dq);
 
i am done with this but still error check update
 
Hey
 
thr
error occur when i try this Unable to cast object of type 'System.Collections.Generic.List1[<>f__AnonymousType65[System.Int32,System.Stri‌​ng,System.String,System.String,System.String]]' to type 'System.IConvertible'.Couldn't store <System.Collections.Generic.List1[<>f__AnonymousType65[System.Int32,System.Stri‌​ng,System.String,System.String,System.String]]> in ID Column.
 
could you try once with table.Rows.Add(1, "khan", "AJ-24", "124");
dt.Rows.Add(1, "khan", "AJ-24", "124"); in place of dt.Rows.Add(dq);
 
when i try this
DataTable dt = new DataTable();
//dt.Columns.Add("ID", typeof(int));
//dt.Columns.Add("OwnerName", typeof(string));
//dt.Columns.Add("RegNo", typeof(string));
//dt.Columns.Add("MileageAccumlation", typeof(string));
//dt.Columns.Add("MaxSpeed", typeof(string));
//dt.Rows.Add(dq);
dt.Rows.Add(1, "khan", "AJ-24", "124");
return dt;
ERROR OCCUR
Input array is longer than the number of columns in this table.
?????????
 
6:06 AM
dont comment the columns
dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
dt.Columns.Add("RegNo", typeof(string));
dt.Columns.Add("MileageAccumlation", typeof(string));
dt.Columns.Add("MaxSpeed", typeof(string));
//dt.Rows.Add(dq);
dt.Rows.Add(1, "khan", "AJ-24", "124");
did it help?
 
when i try this
DataTable dt = new DataTable();
dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
dt.Columns.Add("RegNo", typeof(string));
dt.Columns.Add("MileageAccumlation", typeof(string));
dt.Columns.Add("MaxSpeed", typeof(string));
// dt.Rows.Add(dq);
dt.Rows.Add(1, "Khan", "AJ-24", "124");
return dt;
and then when i click on button .. no error occur in webmethod ..
but when i check console by press F12
this shows error
ailed to load resource: the server responded with a status of 500 (Internal Server Error)
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
??????
 
okk
so you first issue was due to 2 things
not column definition added
and dq being a list you can not add that directly to datattable
you will have to iterate over the dq and add the rows one by one
 
so what should i do
how
 
dq is a list
you can use for loop
int index;
 
dq show data like this .. [0] = { ID = 1, OName = "Khan", RegNo = "AJ-24",Speed = "124" } [1] = { ID = 2, OName = "Shah", RegNo = "AL-91",Speed = "95" }
 
6:15 AM
for(index == 0; index < dq.length; index++)
{
dt.Rows.Add(dq[index]);
}
 
but i use for loop in jquery . for (var i = 0; i < result.d.length; i++) {
$("#GridView1").append("<tr><td>" +
result.d[i].ID+ "</td> <td>" +
result.d[i].OName + "</td> <td>" +
result.d[i].Reg No+ "</td> <td>" +
result.d[i].Speed+ "</td></tr>");
}
so why i use in webmethod
 
see web method give response to jquery (client side)
you are returning datatble to populate grid correct?
in jquery you can only iterate on data
if the data is a list
but providing the data is the responsibility of web method
 
ok so i use this like this . DataTable dt = new DataTable();
for (index == 0; index < dq.length; index++)
{
dt.Rows.Add(dq[index]);
}

return dt;
 
here also you will have to first fill the datattable with result of linq exoression
 
but this show error.. Error 3 Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Error 4 'System.Collections.Generic.List<AnonymousType#1>' does not contain a definition for 'length' and no extension method 'length' accepting a first argument of type 'System.Collections.Generic.List<AnonymousType#1>' could be found (are you missing a using directive or an assembly reference?)
??
 
6:22 AM
okk this is because the result of the linq expression is not a enumerable list
 
then?
 
foreach (var c in dq)
{
dt.Rows.Add(c);
}
sorry i dont have a .net ide installed on my system , so i can test my suggestion before telling you
 
its ok you tell me i test then i tell you
ok now i have this
DataTable dt = new DataTable();
foreach (var c in dq)
{
dt.Rows.Add(c);
}

return dt;
 
it worked?
 
this show same error
Input array is longer than the number of columns in this table. :(
my whole webmethod...
 
6:28 AM
you missed the columns again
 
[WebMethod]
public static DataTable search_data(DateTime fromdate, DateTime todate, string regiondrop)
{

try
{



TrackDataEntities1 ts = new TrackDataEntities1();

var dq = (from vv in ts.tblVe
join rv in ts.tblRe on vv.ID equals rv.ID
join re in ts.tblReg on rv.RID equals re.RID
where
re.Region == regiondrop
&& re.StartDate <= fromdate
&& re.EndDate >= todate
orderby
vv.ID,
rv.OwnerName
select new
{
ID=rv.ID,
OName = rv.OName ,
RegNo = rv.RegNo,
Speed = rv.Speed ,
}).ToList();
DataTable dt = new DataTable();
oh ho
 
DataTable dt = new DataTable(); dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
dt.Columns.Add("RegNo", typeof(string));
dt.Columns.Add("MileageAccumlation", typeof(string));
dt.Columns.Add("MaxSpeed", typeof(string)); foreach (var c in dq)
{
dt.Rows.Add(c);
}
 
now i try this
DataTable dt = new DataTable();

dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
dt.Columns.Add("RegNo", typeof(string));
dt.Columns.Add("MileageAccumlation", typeof(string));
dt.Columns.Add("MaxSpeed", typeof(string));
dt.Rows.Add(dq);
foreach (var c in dq)
{
dt.Rows.Add(c);
}
// dt.Rows.Add(1, "Junaid Ali Khan", "AUJ-249", "3509", "124");
return dt;
but this show error
Unable to cast object of type 'System.Collections.Generic.List1[<>f__AnonymousType65[System.Int32,System.Stri‌​ng,System.String,System.String,System.String]]' to type 'System.IConvertible'.Couldn't store <System.Collections.Generic.List1[<>f__AnonymousType65[System.Int32,System.Stri‌​ng,System.String,System.String,System.String]]> in ID Column.
??????
 
checking
if you print c
what value it gives
an object?
 
when i debug breakpoint come at this line . dt.Rows.Add(dq); and this dq show data but when i again press f5 then breakpoint directly come at catch ..
 
6:40 AM
ohhh
dt.Rows.Add(dq); remove this
 
when i debug and when breakpoint comes at for
this record is in c .. c = { ID = 1, ownername = "Junaid Ali Khan", RegNo = "AUJ-249", MileageAccumlation = "3509", MaxSpeed = "124" }
 
okk so you will have to do this
 
and then i agin press f5 then breakpoint come at catch and show error
Unable to cast object of type '<>f__AnonymousType6`5[System.Int32,System.String,System.String,System.String,Sys‌​tem.String]' to type 'System.IConvertible'.Couldn't store <{ ID = 1, ownername = Junaid Ali Khan, RegNo = AUJ-249, MileageAccumlation = 3509, MaxSpeed = 124 }> in ID Column. Expected type is Int32.
 
dt.Rows.Add(c.ID,c.ownername,c.RegNo,c.MileageAccumlation ,c.MaxSpeed );
but why you have 5 values now in C
u have only 4 column defined
 
check this link
 
6:47 AM
okk
 
now i have 5 columns..
 
try with
dt.Rows.Add(c.ID,c.ownername,c.RegNo,c.MileageAccumlation ,c.MaxSpeed );
 
so i remove for loop or not?
 
no
this is inside loop
 
ok when i try this show no error
but when i check console error occur
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
and gridview not display
 
6:50 AM
hmm let me check
can u send screenshot of console
 
yes
check this
are u thr
???????????????
@Deep
 
7:10 AM
sru just went out
but back now
what is the value of dt??
still there??
 
ye4e
 
if you can check what is there in dt when it returns the value back to jquery
 
check link
 
and in the response tab what are you getting for your ajax call
 
7:16 AM
its not displaying dt.Rows
can you check that
whats the value there
 
in rows
dt.Rows = {System.Data.DataRowCollection}
in dt when i click small search bar
 
you can see the rows there correct?
wiht the vaues you have added
 
this display row ..
yes
 
now you have the records in a dattable
but
the ajax call is expecting dataType json
i think this is hwy you can see 500 server error
 
7:22 AM
got it
now use this method
 
ok so i remove datatype:json?
which method
 
public string DataSetToJSON(DataTable dt)
{

Dictionary<string, object> dict = new Dictionary<string, object>();

object[] arr = new object[dt.Rows.Count + 1];

for (int i = 0; i <= dt.Rows.Count - 1; i++) {
arr[i] = dt.Rows[i].ItemArray;
}

dict.Add(dt.TableName, arr);


JavaScriptSerializer json = new JavaScriptSerializer();
return json.Serialize(dict);
}
this will convert datatable to string
change the response type of your Web Method to string from DataTable
 
and where i call this DataSetToJSON ?
in webmethod?
 
yes
 
or i just paste this?
 
7:25 AM
do like this before return dt
string result = "";
result = DataSetToJSON(dt);
return result;
 
means i remove datatable like this ? public static DataTable search_data(DateTime fromdate, DateTime todate, string regiondrop)
{
to public static string search_data(DateTime fromdate, DateTime todate, string regiondrop)
 
yes
 
ok when i try thi s.. DataTable dt = new DataTable();

dt.Columns.Add("ID", typeof(int));
dt.Columns.Add("OwnerName", typeof(string));
dt.Columns.Add("RegNo", typeof(string));
dt.Columns.Add("MileageAccumlation", typeof(string));
dt.Columns.Add("MaxSpeed", typeof(string));

foreach (var c in dq)
{
dt.Rows.Add(c.ID, c.ownername, c.RegNo, c.MileageAccumlation, c.MaxSpeed);
}

result = DataSetToJSON(dt);
return result;
error:Error 3 An object reference is required for the non-static field, method, or property 'chart_project.WebForm1.DataSetToJSON(System.Data.DataTable)'
can i write static like this?
public static string DataSetToJSON(DataTable dt)
 
yeah
 
check this
gridview still not display :(
and also not a single error is display
 
7:36 AM
yeah thats fine
in the console
there is network tab
 
could you check that and look for your ajax call
what response you got
it will display
 
how
 
in the network tab you will see many calls
are you on the network tab now?
 
yes
check plz
 
7:40 AM
now click the search data button
you will see few calls recorded here
 
ok then
u mean 100ms 200ms?
 
send me the screenshot
 
where is search data button
i did not fine
find
 
in your page
 
i see filter search bar
 
7:42 AM
not in console
 
i am in network tab
 
searchData
you are in network tab right now correct?
 
yess
check image
 
yeah i can see
now you will have to fire the ajax call
 
how
 
7:44 AM
that means search data on you html page
got it??
 
yes yes
 
did you got any calls recorded on the network tab?
 
gud
status 200 shows your call was successful
now click on this record
 
on 200?
 
7:49 AM
yeah
in the right side of the console, you will get the details of the call
 
yes i got this when i click on search_data in network
D:"{"":[[1,"Junaid Ali Khan","AUJ-249","3509","124"],[2,"Shah","AL-91","222","95"],[3,"mgheer","AL-95",‌​"123","106"],[4,"Rahiqal","AL-99","266","19"],null]}"
 
this is the response correct?
 
yes
so why gridview not display when there is data also ? :/
?????
 
because data is not in the json object format yet
 
ok then ?
 
7:55 AM
now in you success call back
 
yes
 
success: function (result) {
console.log(result);
check the value
 
which
can i write console.log(result)>>
??
 
yes
in jquery
 
ok and can i gridview code?
from jquery ?
this code
$("#GridView1").empty();
if (result.d.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>Owner Name</th><th>Reg No</th><th>Mileage Accumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < result.d.length; i++) {
$("#GridView1").append("<tr><td>" +
result.d[i].ID + "</td> <td>" +
result.d[i].OwnerName + "</td> <td>" +
result.d[i].RegNo + "</td> <td>" +
result.d[i].MileageAccumlation + "</td> <td>" +
result.d[i].MaxSpeed + "</td></tr>");
 
7:58 AM
yes
 
when i click on search button .. when i check console i got this
Object
d
:
"{"":[[1,"Junaid Ali Khan","AUJ-249","3509","124"],[2,"Nauman Shah","AVL-991","2262","95"],[3,"M Sagheer","AVL-995","1923","106"],[4,"Rashid Iqbal","AVL-997","2616","109"],null]}"
__proto__
:
Object
__defineGetter__
:
__defineGetter__()
__defineSetter__
:
__defineSetter__()
__lookupGetter__
:
__lookupGetter__()
__lookupSetter__
:
__lookupSetter__()
constructor
:
Object()
hasOwnProperty
:
hasOwnProperty()
isPrototypeOf
:
isPrototypeOf()
propertyIsEnumerable
:
propertyIsEnumerable()
toLocaleString
 
okk
 
can i remove gridview code or not
 
nope
 
ok then?
 
8:01 AM
dict.Add(dt.TableName, arr);
 
? where
 
change this to dict.Add("response", arr);
in web method
 
dict?
after return result?
 
in this method
 
this show error
 
8:03 AM
DataSetToJSON
 
Error 3 The name 'dict' does not exist in the current context
Error 4 The name 'arr' does not exist in the current context
in webmethod or in DataSetToJSON?
ok added then ?
 
now check the value of console after you hit the search button
we should be able to finish this in 2-3 step now
there?
 
8:41 AM
yes
 
okk
 
when i hit search button
value is
Object
d
:
"{"response":[[1,"Junaid Ali Khan","AUJ-249","3509","124"],[2,"Nauman Shah","AVL-991","2262","95"],[3,"M Sagheer","AVL-995","1923","106"],[4,"Rashid Iqbal","AVL-997","2616","109"],null
 
so hopefully now you have get some object like
 
yes
then?
 
ok
in the console.log(result.d.response)
 
8:44 AM
when i add this
console.log(result.response);
 
sorry i had type
it was result.d.response
 
when i add this .. console.log(result.d.response);
then console show undefiend
 
are you able to get this console.log(result.d);
 
yes now this show
{"response":[[1,"Junaid Ali Khan","AUJ-249","3509","124"],[2,"Nauman Shah","AVL-991","2262","95"],[3,"M Sagheer","AVL-995","1923","106"],[4,"Rashid Iqbal","AVL-997","2616","109"],null]}
?
 
okk
 
8:50 AM
ok then?
 
this is an object correct
so now you can use thi to populate the grid
 
like this?
$("#GridView1").empty();
if (result.d.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>Owner Name</th><th>Reg No</th><th>Mileage Accumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < result.d.length; i++) {
$("#GridView1").append("<tr><td>" +
result.d[i].ID + "</td> <td>" +
result.d[i].OwnerName + "</td> <td>" +
result.d[i].RegNo + "</td> <td>" +
result.d[i].MileageAccumlation + "</td> <td>" +
result.d[i].MaxSpeed + "</td></tr>");
}
}
 
small chnage
 
which change
 
you have data inside result.d.response
 
8:52 AM
ye
 
replace result.d to result.d.response
 
no only result.d
ok
when i add responce
console show undefined..
no only result.d
where i add responce
 
if (result.d.response.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>Owner Name</th><th>Reg No</th><th>Mileage Accumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < result.d.response.length; i++) {
$("#GridView1").append("<tr><td>" +
result.d.response[i].ID + "</td> <td>" +
result.d.response[i].OwnerName + "</td> <td>" +
result.d.response[i].RegNo + "</td> <td>" +
result.d.response[i].MileageAccumlation + "</td> <td>" +
result.d.response[i].MaxSpeed + "</td></tr>");
}
}
did it work
 
this show Cannot read property 'length' of undefined
success: function (result) {
console.log(result.d);
$("#GridView1").empty();
if (result.d.response.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>Owner Name</th><th>Reg No</th><th>Mileage Accumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < result.d.response.length; i++) {
$("#GridView1").append("<tr><td>" +
result.d.response[i].ID + "</td> <td>" +
result.d.response[i].OwnerName + "</td> <td>" +
result.d.response[i].RegNo + "</td> <td>" +
result.d.response[i].MileageAccumlation + "</td> <td>" +
 
hmm got the problem
give me 2 min
 
8:59 AM
sure
 
9:10 AM
which problem
 
yeah
make these chnages
 
which
 
var final = JSON.parse(result.d).response;
if (final.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>Owner Name</th><th>Reg No</th><th>Mileage Accumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < final.length; i++) {
$("#GridView1").append("<tr><td>" +
final[i].ID + "</td> <td>" +
final[i].OwnerName + "</td> <td>" +
final[i].RegNo + "</td> <td>" +
final[i].MileageAccumlation + "</td> <td>" +
final[i].MaxSpeed + "</td></tr>");
}
}
else {
$("#GridView1").hide();
$("#Label1").text("No Data");
this will work i have tested this part in my local
 
so i remove this or not
$("#GridView1").empty();
 
keep this as well
 
9:17 AM
this show
Cannot read property 'ID' of null
function Getdataa(obj) {
//alert('1');
$.ajax({
type: "POST",
url: "WebForm1.aspx/search_data",
data: "{'fromdate':'" + obj.fromdate + "','todate':'" + obj.todate + "','regiondrop':'" + obj.regiondrop + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
cache: false,
success: function (result) {
console.log(result.d);
$("#GridView1").empty();
var final = JSON.parse(result.d).response;
if (final.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>OwnerName</th><th>RegNo</th><th>MileageAccumlation</th><th>MaxSpeed</th>");
 
okk this is because one null value is coming in the record
 
{"response":[[1,"Junaid Ali Khan","AUJ-249","3509","124"],[2,"Nauman Shah","AVL-991","2262","95"],[3,"M Sagheer","AVL-995","1923","106"],[4,"Rashid Iqbal","AVL-997","2616","109"],null]}
where is null value
at the end?
 
yes
let me give you a check for that
 
hmm
 
sorry my mistake
you have array inside array
which need to be selcted with index
use this
$("#GridView1").append("<tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td> <td>" +
final[i][3] + "</td> <td>" +
final[i][4] + "</td></tr>");
let me know in case you see any issue
but this will work
 
9:25 AM
so i remove for loop
for (var i = 0; i < final.length; i++) {
this]
 
no inside that only
 
Cannot read property '0' of null
when i try this
this error occur
 
show me the code
 
console.log(result.d);
$("#GridView1").empty();
var final = JSON.parse(result.d).response;
if (final.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>OwnerName</th><th>RegNo</th><th>MileageAccumlation</th><th>MaxSpeed</th>");

for (var i = 0; i < final.length; i++) {
$("#GridView1").append("<tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td> <td>" +
final[i][3] + "</td> <td>" +
final[i][4] + "</td></tr>");
}
}
else {
$("#GridView1").hide();
$("#Label4").text("No Data");
 
works fine for me
chekc this plunker
 
9:31 AM
my code is right?
 
yes this one only i used
 
this is complete code
$(function () {
$('[ID*=search_data]').on('click', function () {
var fromdate = $('[ID*=fromdate]').val();
var todate = $('[ID*=todate]').val();
var regiondrop = $('[ID*=regiondrop] option:selected')[0].value;
var GridView1 = $('[ID*=GridView1]');
var obj = {};
obj.fromdate = fromdate;
obj.todate = todate;
obj.regiondrop = regiondrop;
Getdataa(obj);
});
});


function Getdataa(obj) {
//alert('1');
$.ajax({
type: "POST",
url: "WebForm1.aspx/search_data",
data: "{'fromdate':'" + obj.fromdate + "','todate':'" + obj.todate + "','regiondrop':'" + obj.regiondrop + "'}",
 
could you tell me one thing
 
YES
 
whats the value of console.log(JSON.parse(result.d).response)
 
9:34 AM
WHERE I CHeck this value
i think in console?
 
yes
 
check this
if this work your side then why can not work at my side :( ugh
 
console.log(JSON.parse(result.d).response)
you didnt print this
 
where
like this ?
console.log(JSON.parse(result.d).response)
 
in placewhere you have console.lod(result.d)
yes
 
9:41 AM
i wil check
check this
success: function (result) {


var final = JSON.parse(result.d).response;
console.log(JSON.parse(result.d).response)
$("#GridView1").empty();
if (final.length > 0) {
$("#GridView1").append(
"<tr><th>ID</th><th>OwnerName</th><th>RegNo</th><th>MileageAccumlation</th><th>MaxSpeed</th></tr>");

for (var i = 0; i < final.length; i++) {
$("#GridView1").append("<tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td> <td>" +
final[i][3] + "</td> <td>" +
final[i][4] + "</td></tr>");
still same error
 
okk
for (var i = 0; i < final.length; i++) {
if(final[i] !== null)
{
$("#GridView1").append("<tr><td>" +
final[i][0] + "</td> <td>" +
final[i][1] + "</td> <td>" +
final[i][2] + "</td> <td>" +
final[i][3] + "</td> <td>" +
final[i][4] + "</td></tr>");
}
}
make this change
 
now there is no error
result in console is
Array[5]0: Array[5]1: Array[5]2: Array[5]3: Array[5]4: nulllength: 5__proto__: Array[0]
but stil gridview not display :(
gridview code
<asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="None" onpageindexchanging="GridView1_PageIndexChanging"
onselectedindexchanged="GridView1_SelectedIndexChanged"
AutoGenerateColumns="False" AllowPaging="True" OnRowCommand="GridView1_select"
onrowdatabound="GridView1_RowDataBound">
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#7C6F57" />
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
 
ooops
your gridview is an asp grid view
 
yes
 
i thought its an html element
like this
<div id="GridView1"></div>
 
9:49 AM
so i change like thi s?
 
you can
but this will display only a table on you page
 
<div ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="None" onpageindexchanging="GridView1_PageIndexChanging"
onselectedindexchanged="GridView1_SelectedIndexChanged"
AutoGenerateColumns="False" AllowPaging="True" OnRowCommand="GridView1_select"
onrowdatabound="GridView1_RowDataBound">
<AlternatingRowStyle BackColor="White" />
<EditRowStyle BackColor="#7C6F57" />
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
 
nope
remove all this
just <div id="GridView1"></div>
 
<asp:BoundField DataField="ID" HeaderText="ID"/>
<asp:BoundField DataField="OwnerName" HeaderText="OwnerName"/>
<asp:BoundField DataField="RegNo" HeaderText="RegNo"/>
<asp:BoundField DataField="MileageAccumlation" HeaderText="MileageAccumlation"/>
<asp:BoundField DataField="MaxSpeed" HeaderText="MaxSpeed"/>
this also ?
 
yes
 
9:52 AM
what about this
i have to add link button.. <asp:LinkButton ID="lbViewChart" Text="View Chart" CssClass="lbViewChart" runat="server" />
 
what does this do?
 
is this possible to add asp gridview
 
let me check that
give me some time
 
when user click on button then highchart display and i am done with this so i have to add
and thank you so much for this help
you are great
 
06:00 - 10:0010:00 - 11:00

  last day (16 days later) »