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;








0















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










share|improve this question



















  • 6





    What is your question?

    – Evan M
    Mar 22 at 14:01

















0















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










share|improve this question



















  • 6





    What is your question?

    – Evan M
    Mar 22 at 14:01













0












0








0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer



























      0














      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






      share|improve this answer

























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 14:18









        Ali AlpAli Alp

        967




        967





























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript