小编hic*_*cay的帖子

Asp.net中的CheckBox控件(c#)

码:

   <asp:CheckBox ID="CheckBox1" runat="server" 
    oncheckedchanged="CheckBox1_CheckedChanged" />
Run Code Online (Sandbox Code Playgroud)

C#

protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{

}
Run Code Online (Sandbox Code Playgroud)

我在表单中添加了复选框.

选中复选框后,复选框下方应显示一些信息(TextBox,Label等).

我怎样才能做到这一点?

c# asp.net checkbox

2
推荐指数
1
解决办法
5万
查看次数

'NoneType'对象没有属性'title'

码:

class trafikformu(db.Model):

    title = db.StringProperty()

class QueryHandler(webapp.RequestHandler):
    def get(self,id):
        v = form.get_by_id(int(id))
        self.response.out.write(v.title) # AttributeError
Run Code Online (Sandbox Code Playgroud)

该行self.response.out.write(v.title)给出了这个错误:'NoneType' object has no attribute 'title'.

我怎么解决这个问题?

python google-app-engine

1
推荐指数
1
解决办法
1343
查看次数

标签 统计

asp.net ×1

c# ×1

checkbox ×1

google-app-engine ×1

python ×1