0
처리기에서 .aspx fle 요소 중 하나에 CSS를 추가 할 수 있다는 것을 알고 싶습니다. asp.net 처리기에서 CSS 추가
이
내 핸들러 :Private Sub UploadWholeFile(ByVal context As HttpContext, ByVal statuses As List(Of FilesStatus))
For i As Integer = 0 To context.Request.Files.Count - 1
Dim file = context.Request.Files(i)
file.SaveAs(ingestPath & Path.GetFileName(file.FileName))
Thread.Sleep(1000)
Dim fname = Path.GetFileName(file.FileName)
statuses.Add(New FilesStatus With {.thumbnail_url = "Thumbnail.ashx?f=" & fname, .url = "Upload.ashx?f=" & fname, .name = fname, .size = file.ContentLength, .type = "image/png", .delete_url = "Upload.ashx?f=" & fname, .delete_type = "DELETE", .progress = "1.0"})
Next i
End Sub
그리고 내 Default.aspx 페이지에서 템플릿 파일에 실제로 아래있는 버튼이 있습니다
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td><img src="img/paperclip.png"/></td>
<td class="imagename"><span>{%=file.name%}</span></td>
{% if (file.error) { %}
<td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
{% } else if (o.files.valid && !i) { %}
<td class="start" style="visibility:hidden">{% if (!o.options.autoUpload) { %}
<button class="btn btn-primary">
<i class="icon-upload icon-white"></i>
<span>{%=locale.fileupload.start%}</span>
</button>
{% } %}</td>
{% } else { %}
<td colspan="2"></td>
{% } %}
<td class="cancel">{% if (!i) { %}
<button class="btn btn-warning">
<i class="icon-ban-circle icon-white"></i>
</button>
{% } %}</td>
</tr>
{% } %}
</script>
지금 내가 변경하려면를 이미지 버튼. 그래서 어떻게 처리기에서합니까?
나는 사용자가 클릭 할 때, 이미지의 클라이언트 측에있는 버튼을 변경 한 경우 그것은 더 쉬울 것 btn-warning
<button type="submit" class="btn btn-primary start">
<i class="icon-upload icon-white"></i>
<span>Start upload</span>
</button>
(즉 진짜처럼 그것은 당신이 계신 모양) 나는 하나 개의 버튼 두 buttons.On 클릭이 맞아요 당신이있어 수 나는 다른 것을 바꿀 필요가있어.이 경우 어떻게 수정해야합니까? – coder
대신 btn 경고 버튼을 대체하기 위해 답을 업데이트했습니다. – msigman
@ msigman- 내가 필요한만큼이나 고마워. 환호 :) – coder