要定义Labelfor属性

时间:2015-08-24 07:43:33

标签: asp.net-mvc

如何为下面提到的代码定义 <span class="gender-span"> @Html.RadioButtonFor(m => m.Tagged, (int)TaggingType.All, new { @class = "radio-style", @name = "tag", @id = "track" }) <label for="track">@Resources.Track</label> 属性:

def SaveToDatabase(endpoint, data):
    #data= {"user_id": msg['username'], "room_id": 1, "message": msg['payload']}
    req = urllib2.Request(endpoint)
    req.add_header('Content-Type', 'application/json')
    urllib2.urlopen(req, json.dumps(data))

我想使用@ Html.Labelfor属性。现在请帮我解决这个问题                                         

0 个答案:

没有答案