Newest 'asp.net' Questions

Q&A for professional and enthusiast programmers

Why is my gridview header shrinking when I position fixed it?

Source : https://www.codeproject.com/Articles/614041/GridView-with-Fixed-Header-and-Scroll-Bar I have create a CSS class for fixing my header inside a bootstrap panel. CSS .FixedHeader { ...

WebGrid Search Exception - Error executing child request for handler

I want to make Search in WebGrid but it doesn't work. I have 2 methods in Controller [HttpGet] public async Task<ActionResult> ICare() {.... return View(tuple);} [HttpPost] public ...

outlook AppointmentItem object gives only appointments or also meetings?

I have code her to retrive appointments from outlook calendar. // Initialize values for the start and end times, and the number of appointments to retrieve. DateTime startDate = DateTime....

How do I get filtered set of data from another related table [on hold]

My idea is when I choose one item on view from dropdown list, in second dropdown list would be limited choices based on first pick. That means that I have to filter out that dependent data via LINQ ...

Inserting PRIMARY Key value into SQL without duplicating the CHAR via ASP.NET

Once again needed help from you experts, Heres the design SQL MemberID CHAR(8) The memberID usually is "M1" "M2" and so on However when I add into SQL via ASP.NET The command would be something ...

Visual Studio 2017 cannot launch IIS Express 10.0 on Windows 10.0

I have installed Visual Studio Community Edition on Windows 10 with IIS Express 10.0 When I created a new web project using provided template of Asp.NET Core 1.1, project did not launch in any ...

Displaying Image in Repeater Control Asp.NET

I have developed a Real Estate website in which user can buy and sell their properties. I used Repeater control to display the images and other related fields. The problem is that one Property can ...

Get userId of logged in user when create new wall

I am developing a website that called myWall. when user wants to create a new wall, the user id is required. So, how can I get user Id of logged in user. I tried many ways that posted here (in stack ...

Anyone been able to use Angular 4 Quickstart with Visual Studio 2015?

The current Angular Quickstart here: https://github.com/angular/quickstart now puts the index.html and related files under an src folder. When trying to run the code in Visual Studio 2015 as an asp....

Task Scheduling in asp.net using global.asax

I want to call a webpage default.aspx using global.asax at a specific time 5 PM daily in a day. How will I do this work. Please help. I have added this code into global.asax but i didn't understand ...

Get Selected Value From dynamic RadioButtonList

I am working a graduation project and I created a radiobuttonlist in a html table dynamically but I don't know how to get selected value from dynamic radiobuttonlist. I checked solutions but I don't ...

How to store files that have the same signature but contain different data using asp.net FileUpload control

I am using an ASP.NET FileUpload control to upload a file to a server and store it. In my case, the uploaded file should have a .doc or .docx extension, otherwise it will provide an error message. ...

WebApi Authentication via Xamarin/UWP/Unity3D

I have an ASP.NET MVC/WebApi app that I want to be able to reuse via WebApi with a Xamarin app and a UWP app, and maybe even possibly Unity3D in future projects. I'm using the default authentication ...

IIS high process load

I have an IIS server version 8.5. I have web site and a number of web-services hosted on this web site. A number of windows services and desktop apps are working this with IIS instance. And everything ...

Infinite Looping (Page Reload) Blues

What is it, about the code below, that would be causing the page I've successfully re-directed to, via the completeLogin() function, to continually reload itself? More Context- A user can log into ...

Upgrading Dynamics CRM from 2011 to 2016

With little knowledge of CRM, we were tasked with exposing data and other functionality from CRM 2011. We developed a RESTful wrapper that allows other developers to leverage it in their apps. Some ...

Handling multiple forms on a page

I have a page that is mostly informational data (not an input form, overall). And it has a title that can be edited. Clicking the Edit Title button pops up a modal window where the user can edit the ...

edit the fileupload inside the grid view with edit statemetn

hello i have problem with edit the file upload inside the gridview when i upload image and insert into textbox using linkbutton this error appear Object reference not set to an instance of an object. ...

I tried to login to user account and my login returns back to login page

This is the code i used for the Login page This is the code i used for the user page

asp.net gridview paging with pivot table

I have items table i covert it to pivot table and display it to grid-view ,i make paging for this table but not that what i want i think it is wrong way to display paging like i do it i don't know if ...

Invoking Controller Action From JavaScript .NET MVC

A user can log into my app through Facebook. After the user presses the button to do initiate that, and authenticates through Facebook successfully, I then want the page that initiated the login, and ...

SQL data not populating in asp webform

Currently can not get any SQL data to populate the web form. When I run the report in Visual Studio preview mode, the data populates, however when running through my web app it displays nothing. ...

How to pass query parameter in AngularJS 2?

I am using ASP.NET Core and AngularJS 2. There is a problem with http query parameter. No matter what I try, parameter 'quarter' is not passed to controller. Anyone have idea what ma I missing here ? ...

Facebook Birthday App in Visual Studio 2015

Huy Friends, Facebook Birthday Template isn't available in my Visual Studio 2015. How can I got it? Thanks

How can I change validation with alert message to validation with red borders around textboxes?

I am able to validate dynamically generated textboxes within gridview control with the following script: <script type="text/javascript"> function ValidateEmptyValue() { var gv = document....

How to filter DropDown list by logged in User in MVC

How to filter dropdown list, and i need to take name of logged in User. in controller i have this code: var agentBR = (Session["aID"]); ViewBag.AgentID = new SelectList(db.tbl_agenti.Where(x ...

Cant do redirect (ASP.NET MVC)

I need to do redirect to controller Here is my controller [HttpPost] public ActionResult Index(string question1, string question2, string question3, string question4, string question5, ...

How can I dynamically set paypal values in asp.net?

I have created a Paypal button like this: <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input ...

aspnetcore username validations - User name '' is invalid, can only contain letters or digits

I am trying to implement aspnetcore identity without entity framework and using direct connection to SQL Server and I created identityuser, userstore and usertable so far. I am trying to register a ...

RequiredFieldValidation fire But Cancel button of the grid view is not working asp.net C#

Hi i am using grid view with edit, Delete,Update, Cancel link buttons. It has required field validatore and it fire when i try to update the row without any Values in it and showing error messages in ...

Change HyperLink text and update database value on click

I am working on a project in which I have a GridView that has retrieved the values from a table enquiry. This table has a column name which defaults to pending (in schema). Now on a GridView I have ...

knockout show server validations errors

I'm new in knockout. I want to use it in my project on ASP.NET MVC. But I don't understand how to show validation errors from server. For example we have a authentication form with login and password ...

Why won't Twilio.Asp.Net.MVC package download in Xamarin Studio console project? (MAC)

I'm currently trying to make a twilio app. Most of the packages have downloaded just fine, however when I attempt to download the "Twilio.Asp.Net.MVC" package it says that it's not compatible with ....

Self-hosting asp.core application as a windows service with TopShelf

I have a self-hosted asp.core 1.1 application (with dot.net 4.6.2) which I'm trying to run as a windows service using TopShelf. My setup code looks as follows: public class Program { public ...

Why the concurrent performance of my server(ASP .net core + MySQL) is very low? something wrong in my .net code?

I used asp.net core and MySQL. the connector I used is connector/net. I use apache bench to test, request per second is only 4.06 Is this normal? I use java spring to test, the requests per second ...

ASP.NET MVC File download in multiple ranges and resumable through internet download manager

I have a simple MVC controller action as follows: public ActionResult GetFile(string path) { //Do Some manipulation and finally download the file. return File(filePath, System.Net.Mime....

How to get data from asp.net webapi from wpf datagrid without the app freeze?

I created an asp.net web api. It works superbly, tested with postman. I would like to display the users on the wpf datagrid. The code is as follows: public partial class ListUsers : Page { ...

wix Setup - Configuring Authorization Rules

I have a WiX package that creats IIS application pool ,web site, visrtual direcory and authentication settings. I want to update this WiX package with iis Authorization Rules. What attributes can i ...

TextFieldParser file in use

I am parsing a csv file is ASP.NET application. This file comes form another server so I am reading it as response.Content.ReadAsFileAsync and storing it on a server before I read it. When I fetch ...

Displaying Text When Radio Button is Selected - ASP.NET

I am new to ASP.NET. I am trying to display the text of a radio button in a text box when the radio button is selected. I have tried two different ways of doing it without success: Attempt 1: Code ...

Not able to execute a stored procedure from C# in Web API, but I am able to execute from SQL Server - is there any mistake in my code?

This is my code try { var Result = string.Empty; DbCommand command = db.Database.Connection.CreateCommand(); command.CommandText = "Sp_InsertSetmodelparameters"; command.Parameters....

Text Changed Event not working

i have 3 textfields.. 1st)quantity of items..textfield name - tot_qty 2nd)price of item..textfield name - price 3rd)total price..textfield name - tot_price i want that.. when i enter a particular ...

Can I use a SelectParameters with an XmlDataSource?

I'm using an XmlDataSource in my ASP.NET application as a way to prototype schema and data before actually implementing on SQL Server database. So far I am able to bind .NET controls to the ...

How to configure middleware inside a .NET MVC 5 Web App?

I need to run a program that fetches info from a REST API every 10 seconds and then posts it to an Action in my MVC 5 Web App. So far, the best solution I've come up with is to run the Web App and ...

Logging with Serilog and Seq in azure .net api

I am working on an Web Api in .net. I am writing logs using Serilog and Seq. I made the configuration following the Seq official web site. Basically placing this code in my startup.cs file: var ...

trigger on change for drop down list from JavaScript function

I have a function where I'm checking two different countries and depending on what they are, I need to update a drop down list with a value. The drop down list doesn't get updated when I try set the ...

display available time slots ASP.NET

i want to display the available time slots in my asp.net application in a way similar to Zocdoc.com i can retrieve the data but how to be represented in that form, is it an api? any guide is highly ...

Azure Event Hub Client prevent asp.net Web Application from loading

I am using an Azure Event Hub as backplane for my SignalR Web App (asp.net mvc, 4.5.2). I have some problems with creating a client that can listen for messages. I can get the same code to receive ...

Asp Mvc application throwing Server Error '/' in Application following assumed restart

Ok, been brooding over this for a few hours now, but I can't seem to grasp it. I have an ASP MVC application which throws a Server Error '/' in Application error after being left alone for 5 - 10 ...

Access to request object in ASP.NET Core IFileProvider (Razor)

I have a custom IFileProvider for RazorViewEngineOptions in a ASP.NET Core project. Is it possible to get access to the request object in GetFileInfo in the IFileProvider? public class ...
Translating... 0%