Category: HowTo
-
MVC and auto persisting values
When you have a textbox in HTML (let’s say <input name=”FirstName” type=”text” /> ) And it binds to “FirstName” Property of a Model,and in HttpPost Action you do modify the value and return the same view,the value shown in the textbox is the posted one,not the modified one. ( The first thought is that HttpPost…
-
Redirect and Ajax Redirect in MVC
In the sample example I will have various methods to perform redirects from main page to “About” page of a simple MVC site. In my opinion,there are only 3 cases – 2 goods and one bad – to perform redirection with or without Ajax. First case: A sample redirect and a sample link: The…
-
MVC Browser history provider for azure–trying an implementation for 3 hours
first,implement IBrowserUserHistoryRepository – that means implement: public void Save(IEnumerable<BrowserUserHistoryData> history) Azure have PartitionKey/RowKey – I have to add a new class. Also or connectiing,I have to put connectionString="UseDevelopmentStorage=true;" / I tried to add a bulk history : tableHistory.ExecuteBatch(batchOperation); The result was: Unexpected response code for operation : 0 Magic: <add key="TableStorageEndpoint" value="http://127.0.0.1:1002/"/>…
-
Browser history–part 5–conclusions
This is the part 5 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again - finally Nuget deployment Browser history–part…
-
Browser history 4–NuGet again
This is the part 4 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again – finally Nuget deployment Browser history–part…
-
Browser history 3–trying to Nuget
This is the part 3 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again – finally Nuget deployment Browser history–part…
-
Browser history -2
This is the part 2 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again – finally Nuget deployment Browser history–part…
-
MVC browser history
This is the part 5 of 5 of my implementing of a MVC Browser history MVC browser history – idea Browser history –2 – implementing,small bugs Browser history 3–trying to Nuget – modifications in order to can be transformed from an application to a component Browser history 4–NuGet again – finally Nuget deployment Browser history–part…
-
String Truncate in MVC
I always wanted a string truncate – i.e.,if you have a long string,to have “show less” and “show more”. So I have decided to do it . 1. See in action first: And after click: 2. How can you use in your MVC projects: Add in your project the \Views\Shared\DisplayTemplates\StringTruncate.cshtml file ( in this folder!)…
-
Clearer as Nuget package
It was not so difficult to make Clearer as NuGet package. Just analyzing MVC Sitemap package done the trick. So the package looks like: You can install from http://nuget.org/packages/Clearer or download a sample application http://clearer.codeplex.com ( What he does ? In every application there are some variables that are set by the ASP.NET application(…