Search results for query: *

  1. A

    Question How to secure API?

    I know we have an authorization attribute. [HttpGet("{id}")] [Authorize] public IActionResult Get(int id) In the startup.cs services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, options =>...
  2. A

    Resolved VS 2019 is not showing .net framework 5.0

    Just a thought, even though if im not able to change the framework and other configuration settings, i guess the deployment team can change that according to the requirements, is that correct? I can just give them the code and they can make configuration settings as per their wish.
  3. A

    Question Asp core does not support multiple apps in the same app pool

    I am trying to learn API development. I am using .net 3.1(my org uses VS 2019 and it is only showing me this framework). I have chosen API template(that has a sample Weatherforecast API). Upon executing it,I can see plain JSON in chrome but I wanted swagger UI). I am getting the following error...
  4. A

    Resolved VS 2019 is not showing .net framework 5.0

    In my organisation. we use VS 2019 version 16.11.21. When I clicked on API template or even ASP.net MVC Core web app, it only shows 3.1(out of support). I know now .net 5.0 is also out of support but in CS 2019, .net 6.0 is not working. When I tried changing the target framework to 5.0 from...
  5. A

    Resolved Questions regarding a project

    Hello, I have to develop an application where i have to access service now tickets. The application should access certain types of tickets and ignore the rest. Is it possible in c# to connect to service now tickets? Secondly, how to connect to the database that resides on AWS or any other...
  6. A

    Question Login link of the Forum is not working

    Doesn't work for me. Tried on chrome, edge, incognito mode, on laptop and phone. It gives the same error messages when I click login.
  7. A

    Question Cannot deserialize the current because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly

    Hello, I am using the following test API - https://97mm2.sse.codesandbox.io/teachers/200 { "message":"Required Teacher", "data":{ "id":200, "firstName":"Jerold", "lastName":"Britto", "age":28, "email":"britto@xyz.com", "class":10, "students":[...
  8. A

    Question Login link of the Forum is not working

    Hello, When I click on Login, it shows the following message - Same thing happens when I click Register and Contact us. I was finally able to login by stumbling upon the following page when I tried to visit the admin profile.
  9. A

    Resolved Error Creating Window Handle

    The validation code is in the button click event. This is the first thing that I am checking. public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {...
  10. A

    Resolved Error Creating Window Handle

    So, how should I exit an application with a specific error code? For example, I have to a console application that I run using task scheduler, and I want the app to return a specific error code to task scheduler, I normally write Environment.Exit(1) or If(this condition is true)...
  11. A

    Resolved Error Creating Window Handle

    I am creating a winform app that accepts a name and position as input and upon clicking the submit button generates a barcode of that name and prints that on the entered position in a pdf file(generates this as well). The app is giving me error on Environment.Exit(1) - Error Creating Window...
  12. A

    Question How to download pdf using link label?

    Yes its a winform question
  13. A

    Question How to download pdf using link label?

    I am creating a pdf using PDFsharp and saving it automatically on button click- // Save the document... string filename = "Barcode.pdf"; document.Save(@"E:\" + filename); MessageBox.Show("PDF saved successfully!"); Instead of automatically saving it by...
  14. A

    Question Check part of a string in Hashtable Key

    Can we check for a part of string in hashtable key? For example, our key is key = residentnumber +","+ housenumber I know have a function called containskey() but do we have something that could partially check for a string in a hashtable key? For example, if we could search...
  15. A

    Question Save Query Results into Excel and Automatically run it

    I tried .txt but the output coming is not in proper format.... a lot of space, lines, then data, then space then data...
  16. A

    Question Save Query Results into Excel and Automatically run it

    I was manually specifying the xls extension. How can I automatically save it for excel then? I am so sorry it is so confusing for me and its almost 10 hours non stop of me trying to figure this out.
  17. A

    Question Save Query Results into Excel and Automatically run it

    I have a very simple query Select * from Employees where company = 'Company A' order by firstName I want to run this query to run automatically on a daily basis and save the results in excel. Is their any way I can achieve this purpose? I tried using SQL server jobs but the output excel file...
  18. A

    Question External table is not in the expected format

    I am trying to upload my excel 2013 file contents to sql server. Here is my code : try { string connectionString = @"data source=DELL\SQLEXPRESS01 ; initial catalog = amen; persist security info = True; Integrated Security = SSPI; "...
  19. A

    Question How to specify the path in File Upload Control?

    Hello, I am trying to upload an excel file into SQL server. The thing is I am stuck here string fileName = Path.Combine(@"C:\", FileUpload1.FileName); FileUpload1.SaveAs(fileName); String excelConnString =...
  20. A

    Resolved Can we render same view from different action methods?

    Hello, I am creating a test website for practice. The homepage looks like this - On clicking test The view is I want that when I click ID, a message should be displayed underneath the text box telling if the id is valid or invalid. Im using MVC architecture and connecting to database...
Back
Top Bottom