Problems with Textbox/TextArea in modal pop up

I have a grid view with view buttons. When I click the view button a modal pop-up form opens and populates the textarea with the selected record data. In the form the user can make changes to the record and update the record. I encounter 2 problems...
more »

2017-12-03 19:12 (1) Answers

Measure server HttpRequest's performance

How to measure server HttpRequest's performance? I think it's important task and many peoples solved this challenge. I will explain. I have many user server requests which calls in parallel and i want measure some Performance metrics of identical r...
more »

2017-12-03 18:12 (2) Answers

Button inside modal dialog is not working

I have a grid with view buttons. When you click the view button a modal dialog opens and displays all the information in a form. I also have a button (buttonID:Button1) inside my modal dialog. The problem is that when I click on the button inside t...
more »

2017-12-03 17:12 (2) Answers

ASP.NET MVC - View is posting null model

I have been trying to call a POST action from my view. I see POST method parameter is always null. What I am doing wrong ? My model class : public class Survey { public int Id { get; set; } public int QuestionId { get; set; } public str...
more »

2017-12-03 17:12 (1) Answers

event.preventDefault() and redirect asp mvc/jQuery

What am trying to do is to post on form submit to a action and catch response and that works fine.Problem is when RedirectToAction gets called, it just stays on that same view(it doesn't redirect),or in case model is not valid, it doesn't show model ...
more »

2017-12-03 14:12 (1) Answers

string to dropdownlist as items

On ASP.net webform I'm trying populate dropdownlist with items that received as a sting from the server but insted of idividual items it shows as text. How can I make the retrived string to be added to dropdownlist as items ? Button click code: pr...
more »

2017-12-03 03:12 (1) Answers

Issue with a do while loop

The program below takes the customer age and verify if the customer is eligible to see a certain movie. I am having an issue with CustomerAgeCheck() method. Every time I enter age above 100 or below 0, the loop continues to run infinitely and no resu...
more »

2017-12-02 10:12 (2) Answers

.NET MVC Core 2 Deployment Issue on IIS 10

I am trying to deploy my ASP.NET MVC Core 2 site to a Windows Server 2016 server running IIS 10 and I am getting the following error in the Application Logs. I have researched the issue and found this .NET Core app unable to start in IIS due to Erro...
more »

2017-12-01 22:12 (1) Answers

ORA 12154 - for .NET Aplication

I'm having problems with my connection to the ORACLE database. When I try to open the connection, the following error occurs: ora-12154 tns could not resolve service name I have already checked tnsnames.ora, and it is correct, I also checked web....
more »

2017-12-01 22:12 (1) Answers

find element by id in innerhtml

I have an asp.net gridview with one column as a template filed with a panel with some controls like textbox and dropdown list. So, onclick, with js I can give the value of a cell by row and column, but in this panel column how can I get the inner ele...
more »

2017-11-30 09:11 (1) Answers

Adding dependency as DLL or adding as a project

We have an application written in asp.net mvc. Now we have written common db context & entities module (2 projects/class library) which are required by this application. Same db context and entities would also be required /part of another appli...
more »

2017-11-29 19:11 (3) Answers

Get ID of selected value in drop down

I am trying to save data in my database, as part of that I am trying to get the ID (primary key) of my selected item in my drop down. It keeps saving the same ID all the time. It only saves the first ID of any chosen item. How can I adjust my code s...
more »

2017-11-29 07:11 (2) Answers

Session Timeout doesnt work in ASP .Net

I have checked various questions asked in SO in this topic also tried the solutions provided for the various questions, but it doesnt work for me. My application is ASP .Net4.5, I store username, usertype in session and later it is used while insert...
more »

2017-11-29 07:11 (2) Answers

Why use specific exception catch blocks

In the code below, I have a catch block for System.Data.Entity.Infrastructure.DbUpdateException class exception. My question is that why I can't use Exception class to catch each and every possible exception in my code and get stacktrace? What is...
more »

2017-11-28 21:11 (3) Answers

VB.NET connection string retains old value

I have an asp.net website that uses VB.net code behind for some advanced functionality. Recently I had to change the connection string from the newer access database type to an older version (ACCDB to MDB) due to incompatibility issue with my upgrad...
more »

2017-11-28 19:11 (1) Answers