Asp .NET MVC Hide Row and update DB values Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Convert Linq Query Result to DictionaryWhy does the CheckBoxFor render an additional input tag, and how can I get the value using the FormCollection?Read data from SqlDataReaderHow to hide a column (GridView) but still access its value?Validation failed for one or more entities while saving changes to SQL Server Database using Entity FrameworkHow to hide any row in gridview based on any valuekendo mvc grid filterable can't hide row properlyUpdate a SQL column if value is trueASP .Net MVC and WCF Identity (Claims) IntegrationSynchronizing the table on multiple pages in ASP .NET MVC
lm and glm function in R
Putting Ant-Man on house arrest
Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?
Is my guitar’s action too high?
Why "Go Out and Learn"
Trying to enter the Fox's den
How do I overlay a PNG over two videos (one video overlays another) in one command using FFmpeg?
Are Flameskulls resistant to magical piercing damage?
Is it OK if I do not take the receipt in Germany?
What were wait-states, and why was it only an issue for PCs?
How to get a single big right brace?
Has a Nobel Peace laureate ever been accused of war crimes?
A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?
Why did Israel vote against lifting the American embargo on Cuba?
Should man-made satellites feature an intelligent inverted "cow catcher"?
Is Vivien of the Wilds + Wilderness Reclimation a competitive combo?
Is there a verb for listening stealthily?
Why do C and C++ allow the expression (int) + 4*5?
Marquee sign letters
What is the definining line between a helicopter and a drone a person can ride in?
Why isn't everyone flabbergasted about Bran's "gift"?
Can gravitational waves pass through a black hole?
Would I be safe to drive a 23 year old truck for 7 hours / 450 miles?
BV functions and wave equation
Asp .NET MVC Hide Row and update DB values
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Convert Linq Query Result to DictionaryWhy does the CheckBoxFor render an additional input tag, and how can I get the value using the FormCollection?Read data from SqlDataReaderHow to hide a column (GridView) but still access its value?Validation failed for one or more entities while saving changes to SQL Server Database using Entity FrameworkHow to hide any row in gridview based on any valuekendo mvc grid filterable can't hide row properlyUpdate a SQL column if value is trueASP .Net MVC and WCF Identity (Claims) IntegrationSynchronizing the table on multiple pages in ASP .NET MVC
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a database (SQL Server) with clients and a MVC plataform, and i want a row to be "hidden" on the web platform with validation at a specific value in the "status" column (True / false) in the database.
Exemple: if the status value is True, the row appears, if it is false, it hides the row.
Thanks
c# asp.net asp.net-mvc
add a comment |
I have a database (SQL Server) with clients and a MVC plataform, and i want a row to be "hidden" on the web platform with validation at a specific value in the "status" column (True / false) in the database.
Exemple: if the status value is True, the row appears, if it is false, it hides the row.
Thanks
c# asp.net asp.net-mvc
6
What is your question?
– Evan M
Mar 22 at 14:01
add a comment |
I have a database (SQL Server) with clients and a MVC plataform, and i want a row to be "hidden" on the web platform with validation at a specific value in the "status" column (True / false) in the database.
Exemple: if the status value is True, the row appears, if it is false, it hides the row.
Thanks
c# asp.net asp.net-mvc
I have a database (SQL Server) with clients and a MVC plataform, and i want a row to be "hidden" on the web platform with validation at a specific value in the "status" column (True / false) in the database.
Exemple: if the status value is True, the row appears, if it is false, it hides the row.
Thanks
c# asp.net asp.net-mvc
c# asp.net asp.net-mvc
edited Mar 22 at 14:02
Pedro Santos
asked Mar 22 at 13:59
Pedro SantosPedro Santos
12
12
6
What is your question?
– Evan M
Mar 22 at 14:01
add a comment |
6
What is your question?
– Evan M
Mar 22 at 14:01
6
6
What is your question?
– Evan M
Mar 22 at 14:01
What is your question?
– Evan M
Mar 22 at 14:01
add a comment |
1 Answer
1
active
oldest
votes
If you want to save some traffic on your website In the controller before returning the View(model) line filter the model by the status and if you need the data to be available in client then just make a custom html table in the view file and populate it with razor syntax while not adding the rows which their status is false
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301249%2fasp-net-mvc-hide-row-and-update-db-values%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you want to save some traffic on your website In the controller before returning the View(model) line filter the model by the status and if you need the data to be available in client then just make a custom html table in the view file and populate it with razor syntax while not adding the rows which their status is false
add a comment |
If you want to save some traffic on your website In the controller before returning the View(model) line filter the model by the status and if you need the data to be available in client then just make a custom html table in the view file and populate it with razor syntax while not adding the rows which their status is false
add a comment |
If you want to save some traffic on your website In the controller before returning the View(model) line filter the model by the status and if you need the data to be available in client then just make a custom html table in the view file and populate it with razor syntax while not adding the rows which their status is false
If you want to save some traffic on your website In the controller before returning the View(model) line filter the model by the status and if you need the data to be available in client then just make a custom html table in the view file and populate it with razor syntax while not adding the rows which their status is false
answered Mar 22 at 14:18
Ali AlpAli Alp
967
967
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55301249%2fasp-net-mvc-hide-row-and-update-db-values%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
6
What is your question?
– Evan M
Mar 22 at 14:01