Questions




Answers
2
Add MVC4 in visual studio 2017 professional

Hi, Please how we can add MVC4 to visual studio 2017 professional and can give an example site to download and install it in VS 2017 professional.

Thanks.

...
Read More
MVC visual-studio-2017
Answers
1
How to open link (a href) in new tab instead of loading url on same page?

Hello, I was working on HTML and would like to know how can I open anchor link ( HTML ) in a new tab instead of loading URL on the same page? Suppose this is my anchor tag HTML

...
Read More
HTML open link in new tab html
Answers
2
How to call or return partial view of another controller from one controller?

When working in ASP.NET MVC, I have a partial view located inside "Views -> FirstController->_PartialView1.cshtml", I would like to call this partial view of "FirstController" from "SecondController", how can I call it in ASP.NET MVC?

The reason I am doing so is the HTML used is same, but with different data.

...
Read More
MVC C# partial view
Answers
2
Error "your connection is not private" when Setting up IIS to use https

Hi, I was running https on localhost IIS for the first time, I was  usign http under my localhost and after reading this article:

https://deanhume.com/set-up-iis-7-to-run-a-secure-site-locally-https/ 

I tried to run https on my IIS and localhost.

But I'm facing this error : your connection is not private.

how can resolve that? Thanks.

 

...
Read More
ASP.NET http https
Answers
1
How to deploy MVC 4 Razor ASP.NET website on somee.com?

I am trying to deploy sample website on somee.com using free hosting.

First I published my website as a folder.  

1. I created new free hosting domain on somee.com, then after logging in proceeded to file manager ->

2. Then I make a zip folder for my published website folder

3. Then I upload the zip folder and select upload and unzip archives

4. I have add the default document inside web.config like that 

<?xml version="1.0" encoding="UTF-8"?> 
    <configuration> 
        <system.webServer> 
            <defaultDocument> 
                <files> 
                    <add value="index.aspx" /> 
                </files> 
            </defaultDocument> 
        </system.webServer> 
    </configuration>

5. Now this is my root folder file structure

...

Read More
ASP.NET Hosting somee.com
Answers
5
FB page Login Failure. Unsuccessful login with service when using OAuth in MVC

Hi, I want to login with  facebook account from my website MVC4 razor c# and add permissions for a FB user and for a FB page. I was found this article and try to do the same https://github.com/aspnet/Docs/blob/master/aspnet/mvc/overview/older-versions/using-oauth-providers-with-mvc.md

but I'm facing this error :  Login Failure. Unsuccessful login with service.

What does this error means and how can resolve that problem. Thanks.

...
Read More
ASP.NET Facebook-login token access
Answers
2
Dynamic Menu Tree View from Database

This is the sample link from here also.

Sample Tree View

I've just wanted to know what is the best approach to render it fast.

On the link I provided you will see a tree view coming out from database.

What should I do to render it fast. Here's what I think please guide for better approache(s).

1) Load only parent, then load children when the parent was clicked. (What I think was, why should I fetch all data if I am not using it. That's why I only load parent then the children when the parent is clicked. Is right or not).

2) Build the tree view in api/controller before sending it back to frontview so when the loading was complete all data was already built. (but it takes to fetch coming out from api, the user will see broken menu tree view. Lets say I have e-commerce site like this. below image). How to build menu like this in fastest way without seeing broken tree. (The image is sample to see expected result.)

Happy Coding!

...
Read More
ASP.NET C#
Answers
2
Error : Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'

Hi,I am using C# 3-D arrays program and getting error "Operator '-' cannot be applied to operands of type 'int[]' and 'int[]'", how I can resolve this error my current code is as below :

...
Read More
c# arrays 3D
Answers
1
How to remove square brackets from string using javascript?

Hello, I am working a javascript function, in which I want to remove square brackets from string suppose if string it "[test]", then after removing square brackets I should get "test" only.

How can I do this using Javascript and regex, or without regex?

...
Read More
Javascript regex remove square brackets from string
Answers
1
How can I initialize Multidimensional Array [][] in c# with int [3][3]?

Hi, How can I initialize Multidimensional Array [][] in c# with int [3][3] (3 rows and 3 columns )? Like below

...
Read More
C# 3D-array-initialization

Page 8 of 41