Click here to Skip to main content
15,917,455 members

Comments by srameshsathy (Top 4 by date)

srameshsathy 27-May-14 5:50am View    
Thanks for reply.
It's a Epson lx 300 printer.
I need a Vb.net code to cut the paper.
srameshsathy 25-Nov-13 2:19am View    
ya... u r correct it seems. Can u help me to tackle this ???
srameshsathy 22-Nov-13 0:08am View    
None worked for me..
What i done is:
Controller:
[HttpPost]
public ActionResult form_edit(FormModels model)
{
model.error_msg = model.update_content(model);
ModelState.AddModelError("error", "adfdghdghgdhgdhdgda");
ViewBag.error = TempData["error"];
return RedirectToAction("Form_edit", "Form",model.error_msg);

}
AND MY VIEW:
@using (Html.BeginForm("form_edit", "Form", FormMethod.Post))
{

<table>
<tr>
<td>
@Html.DisplayTextFor(model => model.error_msg)
@Html.ValidationSummary("error")
@ViewBag.error
@Html.ValidationMessage("error")

</td>
</tr>
<tr>
<th>
@Html.DisplayNameFor(model => model.content_name)
@Html.DropDownListFor(x => x.selectedvalue, new SelectList(Model.Countries, Model.dd_value, Model.dd_text), "-- Select Product--")

</th>
</tr>
</table>

<table>
<tr>
<td>
<input type="submit" value="Submit" />
</td>
</tr>
</table>
}
srameshsathy 21-Nov-13 6:47am View    
Sorry,This not works for me.