如何在javascript中将1格的选定行移动到2格? [英] how selected row of 1 grid is move to 2 grid in javascript?
问题描述
萨拉姆2全部;
我在asp.net中有2个网格n我有2个在其中使用javascript.
我的问题是,如何在javascript中将1格的选定行移动到2格?
当我从gv1中选择行时,我选择movebtn,在单击btn之后,当我单击sav btn时,选定行的选定副本将在gv2中移动,然后它将在gv2数据库中保存.
请提供代码
提前谢谢.........
向所有人致敬,
我在ASP.NET中有3个网格,并且必须在其中使用Javascript.
我的问题是,如何使用Javascript将选定的行从第一个网格移动到第二个网格?
当我从GridView1中选择行时,我单击了移动"按钮,单击该按钮后,然后将选定的行复制到GridView2.复制完成后,单击保存"按钮,这会将GridView2保存到数据库.
预先谢谢.
sallam 2 all;
i hav 2 grids in asp.net n i hav 2 use javascript in it.
my problem is that how selected row of 1 grid is move to 2 grid in javascript?
when i select row from gv1 then i select movebtn ,after cliking btn selected copy of selected row move in gv2 after it when i clik sav btn then it will sav in gv2 database.
plz provide me code
thanx in advance.........
Sallam to all,
I have 3 grids in ASP.NET and I have to use Javascript in it.
My problem is that how can I move a selected row from the first grid is move to 2nd grid using Javascript?
When I select row from GridView1 then I click a "move" button, after cliking the button, the selected row is then copied to GridView2. After it has been copied across, I click the "Save" button which will save GridView2 to the database.
Thanks in advance.
推荐答案
我想我已经回答了这个问题..
继续我以前的回答,
您可以选择该行吗?如果是的话,您的做法如何.
I think I have answered the question..
In continuation to my previous answers,
Are you able to select the row? If yes how are you doing that.
plz为我提供代码
这不是这里的解决方法.
That''s not how is works around here.
当我从GridView1中选择行时,我单击了移动"按钮,单击该按钮后,将选定的行复制到GridView2.
When I select row from GridView1 then I click a "move" button, after cliking the button, the selected row is then copied to GridView2.
有两个非常简单的jQuery函数将为您完成此任务. 克隆 [ appendTo [ ^ ]函数.如果您需要有关jQuery的帮助,请阅读文档并试用.
There are two very simple jQuery functions which will do it for you. The clone[^] method, in conjunction with the appendTo[^] function. If you require help with jQuery then read the documentation and play around with it.
复制完成后,我单击保存"按钮,它将GridView2保存到数据库中.
After it has been copied across, I click the "Save" button which will save GridView2 to the database.
我建议您在ASP.NET上购买一本书.我建议这样做:
从C#2008开始ASP.NET 3.5:从新手到专业,第二版 [
I suggest you buy a book on ASP.NET. I recommend this:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition[^]
by Matthew MacDonald
这篇关于如何在javascript中将1格的选定行移动到2格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!