How to edit default Coreadmin panel .net in Rider? - c#

I want to save some text in my database in .net 6. Because of that i want to edit the Coreadmin panel.
The way i first got this panel was by:
add this in my program: dotnet add package CoreAdmin
add this in program.cs before "var app = builder.Build();": builder.Services.AddCoreAdmin();
add this in program.cs before "run.app()": app.MapDefaultControllerRoute();
Then i got the Coreadmin panel, which i want to customize little bit. I thought maybe there was some codgenerator to use for this, but cant figure it out.
To understand the problem better:
It is like Identity, login and register. You have to install the view by yourself to customize it. Which can look something like this:
dotnet aspnet-codegenerator identity -dc assignment_4.ApplicationDbContext --files "Account.Login".
Then it will pop up a view for the login interface.

Related

Adding in Profiles to ASP .NET MVC Project after its created

So a while back I created just a basic ASP .NET MVC Application with Visual Studio, not thinking I was going to take it too serious. Well, fast forward 3 months, and I am still looking for a job and started to code a bunch over the past 2 weeks. One of the features that I want to add are user profiles, and I know there is a an option to create the project with a 'user profile' feature built in. Unfortunately, I didn't remember to check this box, and I was wondering if there is a way to add it in after the project is already created, or would I have to build my own user system and handle the storage and security myself? Thanks for any answers or input!
It depends on your requirements to use existing template or build your own users system. To add asp.net identity to your project check this ms tutorial.
Adding ASP.NET Identity to an Empty or Existing Web Forms Project

How to make programmatic changes to views in the controller appear in the storyboard

I recently inherited a Xamarin project where I am to work on the iOS project. Going over several tutorial I figured I was ready, however the person before me did not use storyboards or controllers! They did all customization of views in files named LoginScreens.cs (basically controller files from the looks of it).
For learning purposes and ease of transition I would like to get a storyboard going in this project. So I created a storyboard titled Main and added a ViewController and essential copy and pasted the view customization code used in the LoginScreen.cs into my controller.
To be a little more specific, I have a Main.Storyboard that looks like this:
Where I am using editText boxes and a button to act as place holders for what I actually do to them in the ViewController.cs.
This all seems to register and builds properly however when I run the debugger on iPhone 6s iOS 9.3 I get the following:
The changes appear to show, but all my storyboard iOS designer views remain in place. I am trying to see if there is a way to reflect the changes made in the controller on the storyboard.
TL;DR: I'm trying to alter some views in a programmatic way in my ViewController.cs file. These views were originally added via the iOS designer and for customization purposes, they were edited in the controller. I want to see the visual alteration I make on a view in the controller, reflect in the iOS designer and when I debug.
Sounds like you are trying to go from a project where views were all done programmatically to implementing storyboards. This is a Big change and will take some time to convert the views over.
In the cs file there will be things like Add(passwordTextFeild) which are going to add more views to your storyboard view, hence why you get alot of views in your login view. You wont be able to see these in the storyboard as they are done at runtime.
If you are looking for IBDesignable this is more for custom controls and you still will have to add code to be able to see the changes from the .cs file in the storyboard.
Check my Question for IBInspectable/IBDesignable in Xamarin
Check this official link: https://developer.xamarin.com/guides/ios/user_interface/designer/ios_designable_controls_walkthrough/
Probably not what you wanted to hear but the UI in iOS projects tend to be done in one of the three methods:
All programmatically
Storyboards
Xibs
There are tons of questions/blog posts (even a video), weighting up the pros and cons of each. So possibly the last developer felt it was best to do it programmatically
There is a setting, IBDesignable, that you can add to the declaration of UI classes in Swift or Objective-C. That tells Xcode the those UI objects have a custom interface that you want to be presented in Interface Builder.
I have no idea how (or even if you could) you would use IBDesignable in Xamarin/C#. If its not supported for Xamarin then you're probably out of luck.
I suggest you search on "Xamarin IBDesignable" on the net.

Add custom tab in Sitemanager->Administrations->Users

I have a requirement that I need to add a extra tab in SiteManager->Administration->Users
This tab will have functionality of Users only but with more advanced filters, this is because HotFix/Version Upgrade of Kentico can update the default and code functionality of Kentico, so we don't want to update its basic functionality
So it's a risk if we change core Advanced Search functionality therefore we need to have a new page/webpart with our needed requirement.
Any help is appreciated, we have been looking on it from a while, didn't found any solution for the same.
In version 7 I would do it this way:
Create your new search page by copying the existing one along with its underlying controls (to ensure upgrade won't break your changes)
Make your customizations
Navigate to CMS Site manager -> Development -> Modules -> Users -> Edit User -> User interface
Add UI Element e.g. "Advanced search"
set Target URL to your page
set Element is custom to true

Simpler Breadcrumb Bar Sample

my question is very simple. I am building an app(WPF CSharp) and I need user to give me paths that my app is going to use. Previously I added textboxes to show pathways, however, later I decided that it would be cool to use a Win 7 style Explorer navigation bar, which is a Breadcrumb bar. I found a great open source component for it here (http://www.codeproject.com/KB/tree/WPFBreadcrumbBar.aspx) however, I could not use it in my app. I added references both to Toolbox section and Project>References section. I can also add the control to my WPF window from Toolbox, yet I could not figure out how to fill it, how to change and show items in it etc. With respect to component author, I think article on Codeproject is not very 'understandable'(XAML? I want C# code please) and also PopulateItems event, for instance, did not work for me. So, if someone give me a basic example on how to add items to this bar easily, change items, or shortly, shows me how to make it work, I will appreciate for that,
Thanks.
I Guess it depends on how you want to present it. If you want to use a tab control to simulate the functionality you could go this route:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx

How to get user input during windows installer for WinForms application?

I have a call tracking application that I've built and now I need to create a Windows Installer that bundles the .NET Framework 4.0 with the installer and also allows the user to enter a authentication id, when installing the application.
Then be able to get the value they entered to setup the application for their specific location, by setting an application setting, within the WinForms application.
If the installer can write the authentication id to the registry, I could grab it from there in my application, on startup.
Just not sure which installer to use that would make this as painless as possible.
All of the things in your question can be done by using Visual Studio Setup projects. But bit painful procedure. Do google search for finding resources about writing to registry and grabbing values at the start-up.
There may be other tools that give these functionalities in a more user-friendly way. I know only about Visual Studio Installer.
This article explains about adding custom dialog boxes.
This is completely easily can be done using NSIS (Nullsoft Scriptable Install System). It enables script based creation of installers and it lets writing of installers, customize and add features and do whatever you want using its own set of commands. You may add any control to any page (text boxes, check boxes etc.) and add any number of custom pages and do whatever you want. It has its own compiler and the script you write can be compiled using it and be compressed usefully.
See the below post too:
Customizing an exsisting NSIS MUI2 page
The NSIS and MUI (Modern User Interface) documentation, NSIS examples on NSIS site and winamp forums will help you at everything in your way...
In Advanced Installer you can do that pretty easily, but it's costly though. Check this tutorial

Categories