-
Notifications
You must be signed in to change notification settings - Fork 0
/
UploadFile.cshtml
49 lines (36 loc) · 1.31 KB
/
UploadFile.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@model JoMAR.Models.ChatModel
@{
ViewBag.Title = "UploadFile";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>UploadFile</h2>
<h2>Chatroom: @Html.DisplayTextFor(model => model.Name)</h2>
@using (Html.BeginForm("Index", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.ValidationSummary(true)
<fieldset>
<legend>Chatting</legend>
<div class="display-label right-float"></div>
<div class="display-field right-float">
<h4>Users</h4>
<ul>
<select id="lb" style="width:250px" multiple="multiple" size="10"> </select>
</ul>
</div>
<div class="display-label left-float"> MessageBoard</div>
<div class="display-field left-float">
@Html.TextArea("Messages",new { @class = "messageBoard"})
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Message)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Message)
@Html.ValidationMessageFor(model => model.Message)
</div>
<p>
<input type="file" name="file" />
<input type="submit" value="OK" />
</p>
</fieldset>
}