TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bruno LSB
NA
212
2.2k
MVC c# @Html.TextBoxFor and @value = "@Session["Tel"]"
Feb 1 2021 5:37 PM
Hello,
In a form I manage to run the following code with this line:
<input id="Tel1" name="Tel" type="text" value="@Session["Tel"]@Request.Form["Tel"]" class="form-control" />
How to replace this line with this one:
@Html.TextBoxFor(model => model.Tel, new { @value = "@Session["Tel"]@Request.Form["Tel"]", @class = "form-control" })
@ Html.TextBoxFor does not accept value ("@Session["Tel"]@Request.Form["Tel"]") !
how to escape # ?
thank you
Reply
Answers (
2
)
How to use IHttpClientFactory or HttpClient to call multiple API's?
asp.net web API using restful services in production