It renders a html table (saved in Template column) from database , with header footer body and so on .. But this renders a very small table on the top left corner of the application , i want to render that html table on the entire screen of view .
From your question description, I understood you wanted to show raw HTML content from database (retrieved in your model CMSFC.Models.Page). If this is correct then I suggest you use HtmlHelper.Raw
Method (String) (System.Web.Mvc) as:
@Html.Raw(Model.Template)
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Okay , now is quite better , but still the output position is in the top left corner , can you help me with that , how to center it , or have the entire page ?!
Okay , now is quite better , but still the output position is in the top left corner , can you help me with that , how to center it , or have the entire page ?!
Can you provide HTML Template value and code of your View?
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
did you try to set the position of table where you created it?
if not you can try to set it as you want in your page.
it is possible that it is just showing you the table as you design it.
so if you had design it to display in the top left. it is just showing you there.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Response.Write("<span id='Label1'' style='height:16px;width:120px;Z-INDEX: 102; LEFT: 288px; POSITION: absolute; TOP: 144px; background-color: yellow'>Hello , this is demo text</span>");
you can try to adjust the height and width according to your requirement.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
How to change the position of response.write();
Sep 06, 2017 08:49 AM|ddgg|LINK
So this is the view :
<pre>@model CMSFC.Models.Page
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
Response.Write(Model.Template);
}
</pre>
It renders a html table (saved in Template column) from database , with header footer body and so on .. But this renders a very small table on the top left corner of the application , i want to render that html table on the entire screen of view .
All-Star
31362 Points
7055 Posts
Re: How to change the position of response.write();
Sep 06, 2017 10:22 AM|kaushalparik27|LINK
From your question description, I understood you wanted to show raw HTML content from database (retrieved in your model CMSFC.Models.Page). If this is correct then I suggest you use HtmlHelper.Raw Method (String) (System.Web.Mvc) as:
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
43 Points
106 Posts
Re: How to change the position of response.write();
Sep 06, 2017 10:36 AM|ddgg|LINK
Okay , now is quite better , but still the output position is in the top left corner , can you help me with that , how to center it , or have the entire page ?!
All-Star
31362 Points
7055 Posts
Re: How to change the position of response.write();
Sep 06, 2017 10:44 AM|kaushalparik27|LINK
Can you provide HTML Template value and code of your View?
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
43 Points
106 Posts
Re: How to change the position of response.write();
Sep 06, 2017 10:45 AM|ddgg|LINK
This is the view :
And this is the Layout view :
HTML template value differs , but i want that to render in the entire page , not in a small piece.
Contributor
2990 Points
1210 Posts
Re: How to change the position of response.write();
Sep 07, 2017 05:54 AM|Deepak Panchal|LINK
Hi ddgg,
did you try to set the position of table where you created it?
if not you can try to set it as you want in your page.
it is possible that it is just showing you the table as you design it.
so if you had design it to display in the top left. it is just showing you there.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to change the position of response.write();
Sep 07, 2017 07:21 AM|ddgg|LINK
Hi ,
No , i didnt do any styling/css , can you provide me a little help , how can i show a table/or a div in the entire page.
Contributor
2990 Points
1210 Posts
Re: How to change the position of response.write();
Sep 14, 2017 03:13 AM|Deepak Panchal|LINK
HI ddgg,
please try to refer code below.
you can try to adjust the height and width according to your requirement.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.