ASP.NET (Classic)
75 TopicsLatest ASP.Net
Hello All, I've been working on a web application developed in ASP.Net and .Net Framework 4 for a few years. Trying to find out the new technologies that replaced asp.net web forms to brush up the skill set, found that ASP.Net Core is the new one. I've worked on ASP.Net MVC framework. Does this core completely replaced asp.net? Can the web forms applications be created in core? What is the latest framework to develop web apps? Thanks73Views0likes1CommentOpenstreet maps on azure websites
Hi, I am at the beginning of starting my own project. I come from a database tech background and have not kept up to date with all the Web frameworks. The project will run on azure and I will use visual studio. I need to be able to access opensteet maps for mapping and coordinates. So what I need to do is go to open street maps. Click somewhere on the map and a special tag should come up which I am populating in c# based on coordinates and country. I will to do the same on android, ios. Is xanarin my best option here? So there is MVC, the new .net core, web forms, some other framework. I didn't particularly like the .net core as there seems to be no designer with toolbox and components. Or do I use umbraco framework. I also saw a project called OSMsharp on github. What .net tech should I go for asI have to use openstreetmap and no Google maps, am i limited by this?. Thank you! Panos114Views0likes0CommentsHow to create a customer plugin using dotnet 6.0
Hi, I implement a base application ( a standard app), now i want to create a customer plugin inherited from the base app, My goal is to linked between there and implement the new features in the customer plugin without touch the base app. Thanks203Views0likes1CommentHow can I connect to web services (ASMX) over HTTPS from a Windows application?
We have an old web service (CustomWebService.asmx) that was created many years ago, and we have a custom Windows application installed on each user's laptop, which consumes CustomWebService.asmx via HTTP. Recently, we upgraded from HTTP to HTTPS, and then we realized that the Windows application cannot create an SSL/TLS secure channel to communicate with CustomWebService.asmx. However, connecting to the web services on MS Edge over HTTPS works well. Here is the code: WebReferenceToWebService.CustomWebService websvc = new WebReferenceToWebService.CustomWebService(); websvc.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; websvc.PreAuthenticate = true; websvc.Url = _strWebUrl; DataSet result = websvc.GetData(); Here is the exception stack: The request was aborted: Could not create SSL/TLS secure channel. at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) The code is currently running on .NET Framework 4. Can you please advise on how to make the custom window application requests communicate with CustomWebService.asmx over HTTPS? Thanks a lot!!!175Views0likes0CommentsDockerize App based .NET Framework 4.6.1
I have a Rest API based on .Net framework 4.6.1 I want to dockerize this API, but the problem is that I can't find a solution? All the solutions I found are almost all dedicated to other versions, for example, version 4.6.2, 4.7.0 etc. Can anyone recommend me the base image that I can use to build this application? I used mcr.microsoft.com/dotnet/framework/aspnet:4.8 but it is not suitable for my project.113Views0likes0CommentsCombine Google Authentication & JWT Tokens using Cookie Authorization
* Edit: project is only a web-api, front-end will be developed in react(next.js) Hi guys! I'm a TypeScript Fullstack developer and I'm new to .NET and ASP.NET and basically this is one of my first projects using C# and .NET. My project's architecture requires a kind of different than out-of-the-box way of identifying users. I want Google Authentication which will create a local account (which I can relate other entities to) And JWT Tokens (access, refresh) generated and sent as cookies to the client and each protected endpoint to be using these cookies to authorize the requesting user. I haven't figured out a way of implementing this and still using mostly OOTB tools in order to keep modifications little as possible. Any tips and tricks on how to implement it? * Edit2: Just to be clear, I know how to create endpoints, and protected endpoints using the built in identity framework, using roles, etc... Its this combination of Google Auth, generating tokens, sending them to client as cookies basically is where my difficulty relies. * I have almost a blank new project, already set up with only google credentials347Views0likes3CommentsA few issues with ASP.NET, HTML, and CSS.
What I am trying to do - Get the div #menu to display menu in the center (horizontally and vertically) between and not past (horizontally and vertically) the logo images. Basically, center horizontally and vertically between the two logo images without going further then them... - Figure out why there is such space between the content div and the footer. No clue but there is some white space and I am not sure where it is coming from. Here is some of the code... <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="Corp_Template_2.Site1" %> <!DOCTYPE html> <html> <head runat="server"> <title>Corp Template 2</title> <link rel="stylesheet" type="text/css" href="~/StyleSheet1.css" /> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> </head> <body> <form id="form1" runat="server"> <div id="HeaderContainer"> <div id="HeaderLogo"> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Media/Corp Logo Sample Test.jpg" Width="200px"/> </div> <div id="MainTile" > <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Media/Corp Logo Sample Test.jpg" Width="200px"/> </div> <div id="Menu"> <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" StaticDisplayLevels="2"></asp:Menu> <asp:SiteMapDataSource runat="server" ID="SiteMapDataSource1"></asp:SiteMapDataSource> </div> </div> <div id="MainContentPlaceHolder1"> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> <div id="Footer"> <h4 style="color: white;">This is the footer.</h4> </div> </form> </body> </html> As for CSS.. Here it is. body { } #Footer { width: auto; height: 75px; background-color: black; } #HeaderContainer { overflow:hidden; } #HeaderLogo { width: 200px; float: left; } #MainTile { width:200px; float: right; } #Menu { margin-left: 200px; margin-right: 200px; display: flex; justify-content: center; text-align: center; } #TestBar { width: 100%; height: 100px; background-color: silver; } #MainContentPlaceHolder1 { min-height: 550px; border: 5px solid black; } Any ideas or suggestions? Thank you very much. -Cr8tive241Views0likes1CommentWho here still uses DNN? DotNetNuke!
I was searching around the web earlier today looking for the ASP.NET Forums and found out that they are no longer around. Long ago, in a galaxy far far away, that is where it all started. DotNetNuke was bred in those forums, sad to see that they have gone by the wayside. I've still got a handful of DNN sites up and running including my personal site at https://www.chrishammond.com/226Views0likes0CommentsAsp.Net Core How to create PDF Product Catalog With a template with an image in the background
Hi, I am developing a web application with Asp.net. The application will select the products on the e-commerce website, create headings according to categories and subcategories, and create a pdf catalog with product information images properly underneath (I hope). But I haven't been very successful with PdfSharp right now, everything works with coordinates and it is very difficult to design something original. Two solutions came to my mind: 1- Upload a pdf template and edit it with PDFSharp or a similar plug-in. Here, perhaps we can place a fixed photo area and text area with a form and enter product information there. Here we can name the text and photo fields, such as texbox1 picture1. 2- Prepare a table on the PdfSharp side, use it just like a template and have the products listed. I haven't quite decided what to do right now. I added an area to upload font files and templates to the plugin I developed, and I also made the information that should be included in the catalog, such as picture, sku, title, selectable with a checkbox. I don't know how to continue. I would appreciate it if you could help me.975Views0likes2CommentsThreading problems in SignalR Hub
Hello, I implemented a SignalR Hub to make a game server. The idea is that when a room is full (4 people in it) I run a new game. A game: 1. We notify everybody 2. The first player send one data. 3. We switch to next one 4. while the game isn't finished: Ask the current player two data. Switch to next player My problem is that with that simple system, once the client sent the data, the server do nothing, that's why I think there is a data race somewhere that I don't see. Here is myGithub repoin OkeyServer/ you have the server code, in OkeyScript/ you have all the functions needed for game logic. Thanks in advance for your help.280Views0likes0Comments