Search results for query: *

  1. A

    Question Selenium WebDriver Filling a form

    I using the following form to fill values from a C# Desktop application . I able to fill first Name, Last Name, and email address but I am getting an element not found exception for the drop down and the text area. https://formsmarts.com/html-form-example My Code : private void...
  2. A

    Question send web form values as URL Parameters?

    I am trying to fill a website form using C#Desktop application. I am using the following form as an example - https://formsmarts.com/html-form-example private void button1_Click(object sender, EventArgs e) { // Initialize Chrome WebDriver IWebDriver...
  3. A

    Question Generate excel files from a C# application

    Because ClosedXML accepts only datatable to print to excel. Is there anyway that I can directly print a hashtable to excel using closedxml?
  4. A

    Question Generate excel files from a C# application

    ...employees. I am storing the data of input .csv files in hashtables. Storing the data in the following format- <key,Value> <employee ID, Name*City*AccessCode*Role> I am then comparing both hashtables and determining what employees are new and what are to be removed. I am storing the final...
  5. 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 =>...
  6. 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.
  7. 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...
  8. 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...
  9. 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...
  10. 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.
  11. 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":[...
  12. 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.
  13. 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) {...
  14. 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)...
  15. A

    Resolved Error Creating Window Handle

    ...EncodingOptions { Height = 100, Width = 180, PureBarcode = false, Margin = 10, }, }; string content = @"*" + name + "*"; var bitmap = writer.Write(content); using (MemoryStream ms = new MemoryStream()) { bitmap.Save(ms...
  16. A

    Question How to download pdf using link label?

    Yes its a winform question
  17. 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...
  18. 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...
  19. 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...
  20. 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.
Back
Top Bottom