answerstu

asp.net - IIS bottleneck?

I have 3 machines - one which is IIS, one with a database and one from which I test the efficiency of my application - which means:Using The Grinder I run 1000 instances of my application (hosted on the IIS and operating with the database on the machine with SQL Server). And using perfmon I observe that there really are 1000 requests.BUT the problem is that connecting to this application (IIS) from another computer is very slow. I suppose there is some bottleneck on the IIS side but I cannot find it - CPU usage is less than 10%. I think I chang...Read more

ASP.Net MVC3 Master/Detail using tabbed Partial Views

I am developing my first ASP.Net MVC 3 web application against a SQL Server Database. I used Database First to create the dbContext and Models from an existing database.I am trying to create a master/detail view of 1-M relationships. I have TableA which is related to TableB and TableC each with a 1-M relationship. but TableB and TableC are not directly related to each other.When the user goes to the Details view of a record from TableA, I would like it to show a section at the top of the view with data from the columns within TableA. Then be...Read more

asp.net - Ag grid does not render properly (Angular 2 - webpack2)

I'm currently trying to inject ag-grid in my angular2 project and I'm having an issue rendering it.I'm trying to use this ag-grid package and to follow the tutorial with a .net projet generated with the command 'dotnet new angular'.Here is my agGrid.component.ts :import { Component } from '@angular/core';import { GridOptions } from "ag-grid/main";@Component({ selector: 'ag-grid-component', templateUrl: './agGrid.component.html'})export class AgGridComponent { private gridOptions: GridOptions; public rowData: any[]; private column...Read more

.net - ASP.NET Web Site or ASP.NET Web Application?

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site.What is the difference between ASP.NET Web Application and ASP.NET Web Site? Why would I choose one over other?Is the answer different based on which version of Visual Studio I am using?...Read more

asp.net - MVC .NET, can't find a view

I'm beginning to learn asp.net and i find a little issue, I create a controller and then the view but for some reason the controller doesn't find the view, i have read so many answer from others questions but i cant resolve it, Here is a screenshoot of my project structure, can someone help me?MVC...Read more

asp.net - how to retrieve password from database and post on text box as *

Please Help I can't Retrieve My Password To Text box from Database protected void ClintUsr_RowCommand(object sender, GridViewCommandEventArgs e) { ClintUsr.Columns[1].Visible = true; ClintUsr.Columns[3].Visible = true; ClintUsr.Columns[4].Visible = true; if (e.CommandName == "Edit") { ImageButton Editimg = (ImageButton)e.CommandSource; GridViewRow row = (GridViewRow)Editimg.NamingContainer; LUser.Text =...Read more

asp.net - Confused Procedure or Function Has Too Many Arguments

Ok, first let me apologize for asking what seems like a redundant question. I'm attempting to optimize a stored procedure as well as the code that utilizes it. I've taken all parameters from both the code as well as the stored procedure and put them side-by-side in Excel to get a count of how many were in each. There are 23 in both. There is 1 single output parameter which I think may be causing the issue. I'm not sure how to work with that though if it is.When I run the code I get the error System.Data.SqlClient.SqlException: Procedure or fu...Read more

asp.net - VB.net Input string was not in a correct format

Here is a picture of errorKeep Getting error input string was not in correct formatstrSQLStatement = "INSERT INTO Cart (CartID, ProductID, ProductName, Quantity, Price) values('" & strCartID & "', '" & Trim(lblProductNo.Text) & "', '" & lblProductName.Text & "', " & CInt(tbQuantity.Text) & ", " & decPrice & ")"My guess is the CInt but it works in another similar application . Not sure what is going on . Here is the codeproduct-detail.aspx.vbImports System.DataImports System.Data.SqlClientPartial Class HT...Read more

asp.net - EPIserver CMS Install a sample site

I am new to episerver CMS. I need to install a sample site on EPiserver CMS. I am getting an error when I create a new website based on the Episerver Alloy sample site.I have gone through the installation based on the tutorial from the below link https://world.episerver.com/documentation/Items/Installation-Instructions/installing-episerver/#CMSCan anyone help me to solve this issue?...Read more

asp.net - Is it ok to change from full recovery to simple recovery in Sql Server

I have an old database - a users membership/role that was setup automatically by an ASP.Net 2 application years ago:The Sql Server version currently running is: Sql Server 10.5.1617The users database log file is huge (the ldf file is approx 400 times the size of the mdf file).The recovery model is currently set to "Full". I understand what that is - and I don't need point in time restoration.If I simply changed the recovery model to "Simple" from within Sql Server Management Studio:...and clicked ok to save the changes - would I be risking my c...Read more

asp.net - MSBUILD : error MSB1009: Project file does not exist

I am trying to implement CI (Continuous Integration) using TFS for my ASP.NET website (Website Project). I am constantly getting following errors for days. Following is the full log. Its simply not getting latest version to the local directory, that's why its giving error....MSBUILD : error MSB1009: Project file does not exist. I have checked that TFS is not getting latest version, I am not sure why...!!!!Any help is truly appreciated, Thank You in advance.2018-02-26T22:18:13.2365258Z ##[section]Starting: Build2018-02-26T22:18:13.2385315Z Curre...Read more

Is it possible to share an existing asp.net applications membership database with sharepoint 2010's, when using Forms based authentication

I am trying to integrate an existing asp.net application with sharepoint 2010. I would like to be able to have a logged in user on the application access a document library via an Iframe on the sharepoint 2010 site. I want to use FBA on sharepoint. Is it possible to share the membership database from the asp.net application with sharepoint? If not, what would be the best way to accomplish this?...Read more

asp.net - Data inserted in two different rows

I'm trying to insert a raw data and a time stamp into the database. both the data and timestamp have to be in one row. However, when saved, they seem to be inserted into two different cells, two different rows as in the picture. The code is written in visual basic along with asp.net. Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source= "& Server.MapPath("dbase/DB.mdb")) Protected Sub btnUSsave_Click(sender As Object, e As EventArgs) Handles btnUSsave.Click Dim cmd As New OleDbCommand("insert into Quest(US...Read more

Time Stamp using asp.net, vb.net and ms-access

I'm using Microsoft access with asp.net and vb.net to create a form page. I'd like to get the timestamp once I click on the save button. I managed to use this line of code to do that Dim time1 As New OleDbCommand("INSERT INTO Quest(TimeUS1) VALUES (Now())", cn)time1.ExecuteNonQuery()However, it saves both the date and time. I'm only interested in time.Any idea on how to only extract time ?Really appreciate your time here....Read more