由买买提看人间百态

topics

全部话题 - 话题: datalist
(共0页)
c*o
发帖数: 70
1
来自主题: DotNet版 - Nested Datalist layout!!
Anyone know how to align the second checkbox in the 2 column rows to the
second checkbox of the 3 column rows? See the following picture:
http://www.geocities.com/audricawang/datalist.txt
The bold texts are a VS.net Repeater, in which I have the nested Datalist to
show checkboxes. I have tried almost every property of the datalist, but I
failed.
Thankssssssssssssssssssssssssss!
k****i
发帖数: 1072
2
来自主题: DotNet版 - Nested Datalist layout!!
you might need to add style property to the datalist,or,
add a blank 3rd column in the datalist
r****y
发帖数: 26819
3
It was reported that radio button list had a bug when use in Repeater.
http://support.microsoft.com/default.aspx?scid=kb;en-us;316495
Selection cannot be excluded.
I tried it with datalist and seems the same.
Any suggestions? Thanks.
f*****e
发帖数: 5177
4
attach a selected event handler to each radio button.
in the event handler, go through the rows of datalist and clear any other
radio buttons other than the fired one.
d*s
发帖数: 699
5
来自主题: JobHunting版 - 问一道之前版上M家面经的题
import mpi4py as MPI
size = MPI.COMM_WORLD.size; rank = MPI.COMM_WORLD.rank
datalist = [0 for ii in xrange(size)]
datalist[rank] = data;
stat = MPI.status()
non-block情况:
for id in xrange(size):
if id==rank: continue
MPI.Isend(data, dest=id)
ii=0
while ii if MPI.Iprobe(source=MPI.ANY_SOURCE, status=stat):
tmp = MPI.Irecv(source=stat.source)
datalist[stat.source] = tmp
ii+=1
block情况麻烦一些,只想出按顺序发送接收的笨办法:
for id in xrange(rank-1):
datalist[id] = MPI.Recv(tag=id)
for id in ... 阅读全帖
d**********6
发帖数: 4434
6
来自主题: JobHunting版 - 贡献yahoo developer面筋
由于在同一个城市,直接就跳过电面来onsite。职位描述很杂,javascript, php, c/c
++, c#, ios/android 什么都要,但问了几个问题全是javascript的,如下:
1. 一个function,大概如下:
function dataList(){
var data = getdatafromserver();
var ret = [];
for(d in data){
ret.push(d.name + "-" + d.description)
};
return ret;
}
问这个function干嘛,有什么问题,有什么改进,还有code coverage问题。code
coverage问题我没怎么听懂,似乎是问如何监控return结果。
2. 有一个页面上面有一个滚动条,要求根据用户设置的favorite球队载入他们的最近
比赛的比分。后台可以调用yahoo sport的api, 有getTeams, getScore等function。
我一开始的办法是把数据都读取存储在页... 阅读全帖
r******r
发帖数: 346
7
来自主题: CS版 - 问个jsf的问题
在jsf里面要显示一个table,每行这么排的:
| c1 | c2 | c3 | c4 |
| | c5 |
用datatable怎么实现?或者有没有sample code怎么用datalist实现?
j****n
发帖数: 107
8
要求从数据库读取数据,之后自动生成动态表格并输出。
我现在已经可以取得所有数据,不知道如何在web form中
输出。
以前都是用datagrid列表,但是这次表中要加入图片,需要
做成象HTML的TABLE一样,大table中可包含若干小table.
不知道datagrid或datalist能否实现这种功能.
我现在可以用response.write生生写出这么一个table来,
但是这样太过违背.net的原则,总觉得非常不好。
刚刚接触.net,求高手指点。很急!
r****y
发帖数: 26819
9
Datalist cannot do auto-paging.
Gridview cannot do repeatcolumn.
For tables, gridview is enough. But for image gallery shown in multiple
columns, I cannot find a good control.
If gridview can do repeatcolumn when there's only one template column, that
would be perfect.
r****y
发帖数: 26819
10
Thanks. This works. I hope they could have made GroupName effective.
gw
发帖数: 2175
11
package unmar;
import java.io.File;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.namespace.QName;
import javax.xml.transform.stream.StreamSource;
public class Demo {
public static void main(String[] args) throws Exception {
JAXBContext jc = JAXBContext.newInstance(MyWrapperForList.class,
Expense.class);
//UNMARSHALLING
Unmarshaller unm... 阅读全帖
gw
发帖数: 2175
12
这里还有一个错误不知道如何修正
MyWrapperForList wrapper1 = new MyWrapperForList(
data);
//wrapper.setData(dataList.cList);
JAXBElement jaxbElement = new JAXBElement<>(
new QName("List"), MyWrapperForList.class, wrapper1);

// Marshalling and saving XML to the file.
m.marshal(jaxbElement, "src/unmar/nub1.xml");
gw
发帖数: 2175
13
这个是我搞错了,那个文件名应该是file,虽然可以unmarshal,但结果不是真正想要的
datalist,有点奇怪
这个教程的例子也不行。
http://www.java2s.com/Code/Java/XML/UnmarshallwithJAXB.htm
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import... 阅读全帖
(共0页)