Click here to Skip to main content
15,894,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Save DataTable into Database Pin
Brij17-Feb-10 21:44
mentorBrij17-Feb-10 21:44 
GeneralRe: Save DataTable into Database Pin
.NET- India 17-Feb-10 21:49
.NET- India 17-Feb-10 21:49 
GeneralRe: Save DataTable into Database Pin
<<Tash18>>17-Feb-10 21:55
<<Tash18>>17-Feb-10 21:55 
GeneralRe: Save DataTable into Database Pin
Brij17-Feb-10 22:05
mentorBrij17-Feb-10 22:05 
Questionhow selected index of gridview/table is call in javascript on client-side? Pin
diyaa_0817-Feb-10 20:40
diyaa_0817-Feb-10 20:40 
AnswerRe: how selected index of gridview/table is call in javascript on client-side? Pin
rakeshs31217-Feb-10 20:47
rakeshs31217-Feb-10 20:47 
AnswerRe: how selected index of gridview/table is call in javascript on client-side? Pin
Brij17-Feb-10 21:47
mentorBrij17-Feb-10 21:47 
GeneralRe: how selected index of gridview/table is call in javascript on client-side? Pin
diyaa_0817-Feb-10 22:27
diyaa_0817-Feb-10 22:27 
sallam 2 all;
i hav 2 grids when i select n move gv1's record to gv2 selected row is moved thru btn, bt the problem is that when i want to move another selectedrow from gv1 to gv2 the previous moved record is removed n new selected row is appeared.
i'm working in javascript.

Now ,the requirement is that write grid's selected index on client-side in javascript. how it is done, i hav no idea about it.
My code is as follows
var gridview=document.getElementById("<%= gvPracticeFacility.ClientID %>");
var gridview1=document.getElementById("<%= gvPracticesAssignedFacilities.ClientID %>");

var tr = document.createElement("tr");

var cell1 = document.createElement("td");
var celln = document.createElement("td");
var cell2 = document.createElement("td");
var cell3 = document.createElement("td");
var cell4 = document.createElement("td");
var cell5 = document.createElement("td");
var cell6 = document.createElement("td");
var cell7 = document.createElement("td");


var i =parseInt(document.getElementById("<%= hdnfldSelectedRow.ClientID %>").value);


cell1.innerHTML = gridview.rows[i].childNodes[0].innerHTML;
cell2.innerHTML = gridview.rows[i].childNodes[1].innerHTML;
cell3.innerHTML = gridview.rows[i].childNodes[2].innerHTML;
cell4.innerHTML = gridview.rows[i].childNodes[3].innerHTML;
cell5.innerHTML = gridview.rows[i].childNodes[4].innerHTML;
cell6.innerHTML = gridview.rows[i].childNodes[5].innerHTML;
cell7.innerHTML = gridview.rows[i].childNodes[6].innerHTML;
tr.appendChild(cell1);
tr.appendChild(cell2);
tr.appendChild(cell3);
tr.appendChild(cell4);
tr.appendChild(cell5);
tr.appendChild(cell6);
tr.appendChild(cell7);
gridview1.firstChild.appendChild(tr);

how i persist it in client-side?
if i use Viewstate then where n hiow i use viewstate?
plz tell me where i'm wrong.......!
Thanx in Advance......!
GeneralRe: how selected index of gridview/table is call in javascript on client-side? Pin
Brij18-Feb-10 1:53
mentorBrij18-Feb-10 1:53 
QuestionSession,Cache Problem Pin
sjs4u17-Feb-10 19:44
sjs4u17-Feb-10 19:44 
AnswerRe: Session,Cache Problem Pin
rakeshs31217-Feb-10 19:48
rakeshs31217-Feb-10 19:48 
GeneralRe: Session,Cache Problem Pin
sjs4u17-Feb-10 20:02
sjs4u17-Feb-10 20:02 
AnswerRe: Session,Cache Problem Pin
Pranay Rana17-Feb-10 20:23
professionalPranay Rana17-Feb-10 20:23 
GeneralRe: Session,Cache Problem Pin
sjs4u17-Feb-10 22:20
sjs4u17-Feb-10 22:20 
QuestionArchitecture Pin
Ramkumar_S17-Feb-10 19:38
Ramkumar_S17-Feb-10 19:38 
AnswerRe: Architecture Pin
Brij17-Feb-10 20:11
mentorBrij17-Feb-10 20:11 
AnswerRe: Architecture Pin
farogh haider18-Feb-10 0:39
farogh haider18-Feb-10 0:39 
QuestionPossibility to run more than 1 application..???? Pin
<<Tash18>>17-Feb-10 19:19
<<Tash18>>17-Feb-10 19:19 
AnswerRe: Possibility to run more than 1 application..???? Pin
Dinesh Mani17-Feb-10 19:41
Dinesh Mani17-Feb-10 19:41 
GeneralRe: Possibility to run more than 1 application..???? Pin
<<Tash18>>17-Feb-10 20:04
<<Tash18>>17-Feb-10 20:04 
GeneralRe: Possibility to run more than 1 application..???? Pin
Dinesh Mani18-Feb-10 18:08
Dinesh Mani18-Feb-10 18:08 
QuestionCrystal Report : Load Report Failed, Access Denied Pin
NTheOne17-Feb-10 17:42
NTheOne17-Feb-10 17:42 
AnswerRe: Crystal Report : Load Report Failed, Access Denied Pin
Dinesh Mani17-Feb-10 18:54
Dinesh Mani17-Feb-10 18:54 
GeneralRe: Crystal Report : Load Report Failed, Access Denied Pin
NTheOne17-Feb-10 20:21
NTheOne17-Feb-10 20:21 
Question$20,000.00 Challenge to test the login of new web site security system. Pin
HighSecurity17-Feb-10 16:13
HighSecurity17-Feb-10 16:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.