This may seem a very basic and commonly asked question, but many of the us still have confusion in generating unique random number and strings. The Random Classs defined in .NET Framework class library is used to generate random number. Random Class is used to generate random numbers and strings and combinations of both. The Random class constructor have two overloaded forms, It takes either no value or it takes a seed value. The Random class has three public methods Next NextBytes NextDouble Next: The Next method retuns a random number. The Next method has three overloaded forms and allows you to set the minimum and maximum range of the random number. The following code returns a random number using Next:  ...
Creating a MVC Project. Step 1 : Open Visual Studio. Step 2 : Go to File => New Project. Select Visual C# => Web => ASP.NET Web Application. Name your Solution (eg. EasyCRM) and Project (EasyCRM.UI) and then click OK Select MVC Change Authentication to Individual Accounts Now you will see following screen. Creating Blank Database Step 1 : Open SQL Server. Step 2 : Connect to Database Server. Step 3 : Right click on Database to "Create New Database". Now let's just create a sample Table named Blog with following Columns [crayon-58b568d21601e976163011/] The table looks like in figure Creating DAL(Data Access Layer) Step 1 : Right Click on Solution Explorer to add new Project Step 2 : Select Vis
There are few scenarios when we need to create a dropdown in the ASP.NET MVC Razor view. To bind static items in the DropDownList [crayon-58b568d2168d1772710774/] Output : In case the requirement is to bind the DropDownList items from action method of the Controller, we need to set the items collection into ViewBag and use it as source code. CONTROLLER ACTION METHOD CODE [crayon-58b568d2168dc869353752/] RAZOR CODE TO DISPLAY DROPDOWN [crayon-58b568d2168e3082435945/] Output:
To redirect the user to another page (either external or internal), we can use Redirect method like below. [crayon-58b568d216dce331441301/] Remember that to redirect to external url, we need to provide complete url starting with http. For internal redirect, url can be provided from root of the application. To redirect the user to another action method from the controller action method, we can use RedirectToAction method. [crayon-58b568d216dd8246592349/] Above action method will simply redirect the user to AddNewPage action method. [crayon-58b568d216ddf748021189/] [crayon-58b568d216de6870672484/] Above method will redirect the user to Edit action method with id parameter value as 1, ie it will bring the record id 1 in edit mode. So the url would look like Wit
Lets learn how to work with code forst approach using entity framework in MVC applications. When to use Code- First? When you have to make your application from scratch. When you don’t have a ready made database. You have to play with database frequently, like creating and deleting tables, views and stored procedure. When you have too many tables, view and stored Procedures in database. When to use DB-First Approach? When you have to work in a project where DB is ydalrea created. You don’t have to alter DB Columns, Stored Procedures and Views. When you project is small and don’t have to be very much modular. When you don’t want to feel headache writing simple classes because DB-First Approach in Entity will write all Codes for class.
Why Visual Studio Team Services? VSTS helps us to plan better, code together and ship faster. VSTS provides many Agile tools that serves us from the stage of Idea Planning till release. Keep track and manage all the ideas with scrum board with agile tools. VSTS serves as a central repo for improving Code Quality. GIT/TFS serves as a basic centralized version control system . VSTS has tools for manual, performance and automated testing. Better Reporting tools to increase reports and productivity. Simplify continuous integration for apps. Join us a free event on Jan 21 2017 to learn more about using Visual Studio Team Services. Event Details Venue : LABA IT Training Center Time : 2:00 PM Onwards
The primary purpose of areas in MVC is to separate and manage Model, View, Controller, Themes and routing registration file into separate sections. In other words, areas serve as a technique for dividing and managing a large Application into well managed smaller modules with the separate M-V-C in each module. Why to use areas in MVC Application If you are building a CRM Application for a small Educational Consultancy with multiple business units such as Registration on Arrival, Information Gathering by Receptionist, Updates by Consular, Documentation Management, Interview Preparation, Billing, and Report Generation by different departments etc. Each of these units have their own logical components views, controllers and models. In this scenario, you can use ASP.NET MVC areas to physi...
The Cloud Power in partnership with Federation of Computer Association Nepal, Robotics Association of Nepal [RAN] and Maulik taranga is organizing one day free workshop on IOT with Azure on 19th Nov at CAN Federation Hall Khusibu-Nayabazar, Kathmandu. द क्लाउड पावर र क्यान फेडेरेसनको सहकार्यमा यही मंसिर ४ गते राजधानीमा इन्टरनेट अफ थिङ्स (आइओटी) विषयेक एक दिने वर्कशप सञ्चालन हुने भएको छ । कार्यक्रमको सर्पोटरका रूपमा माइक्रोसफ्ट रहेको छ । यस कार्यक्रममा माइक्रोसफ्टको क्लाउड कम्प्यूटिङ प्लाटफर्म ‘एज्यूर’ बारे पनि जानकारी दिइनेछ । प्रविधिको विकास चरमोत्कर्समा पुग्दा पनि नेपालमा त्यसको अनुपातमा प्रविधि क्षेत्र धेरै पछि परेको तथ्यलाई दृश्टीगत गर्दै नेपालको सबै क्षेत्रमा समुचित प्रविधिको विकास र पहुच पुर्याउनकालागि द क्लाउड पावरले काम गरिरहेको कम्पनीका सफ्टवेयर इन्जिनियर निशान अर्यालले बता
Thanks to Manish Pandey for being Trainer and Presenter for todays Workshop on Laravel.
With the increasing demand of Free Work shop on ASP.NET MVC, a free workshop on ASP.NET MCC5 was organized by Lucky It Solution. There were 18 young enthusiastic learners.