The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications
using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; using System.Runtime.Serialization; namespace TestService { [ServiceContract()] public interface IService1 { [OperationContract] Patient GetPatient(Int32 index); [OperationContract] void SetPatient(Int32 index, Patient patient); } [ServiceBehavior(IncludeExceptionDetailInFaults = true)] public class PatientService : IService1 { Patient[]
Now I need to get hold of the public property of the usercontrol in the Itemdatabound event of the grid, so I can assign the carID for that particular item row.
How can I get hold of the carID property of the usercontrol and assign av value to it in the itemdatabound event?
I have a button on my form. When I click it, it supposed to popup a modal form. My problem is it pops up the modal form sometime but not all the time. I am using asp.net and c#. Any reason why it is happening. I have attached the code. When "#btnArchive" is clicked, it should popup the window all the time.
I have a fieldname called salesPrice with data type of Money.
On the markup, the fieldname is called txtsalePrice.
On my markup, the value shows 125.000
When I formatted txtsalePrice to currency with two decimal places, using the following code:
<asp:TextBox ID="txtsalePrice" Text='<%# Eval("salePrice","{0:###,###,###0.#0}") %>' runat="server" placeholder="Enter Taxpayer returned value as of Jan. 1..." Style="width: 400px;" class="form-control txtPayerret"></asp:TextBox>
What is the best membership service, API or membership database to use for authentication with ASP.net Web API, SQL SERVER and/or ASP.net with C#? Thank you!
Hi I am creating dynamic textbox with textchange event, When i change text then textchange is calling fine but when I hit on button then before button click that textchange event is called, I am not sure why it is calling. Please help
An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
I have an MVC application in EF Core that I tried using the @media print etc. and using this in chrome but the print always is showing my layout page etc. How can I handle this best without having to build all new pages etc. to have a print button in EF Core MVC that would ignore the layout? I tried multiple things found on forums with no luck.
<!DOCTYPE html>
<html>
<body>
<h1>Hello Web Pages</h1>
<p>The time is @DateTime.Now</p>
</body>
</html>
I have a windows server that supports asp and asp.net but it's don't provide the date time. I try to change the file extension to asp or aspx but the problem stays.
I need to develop a good/correct strategy in ASP.Net to read from 4 cascading data/api feeds using VB, and display them all in a single page.
The first feed contains a list of clients and their id numbers, the second feed contains a list of client locations and their id numbers, the third feed contains a list of assets/equipment, and the fourth feed contains additional info about the equipment. Each feed except for the first requires an id number, so if a client has 4 locations, then the locations feed has to be queried for each location id and so forth.
The URLs are pretty predictable, as are the XML responses. The URLs looks like this:
And for each asset found:
http://xyz.com/abc.php?action=list_properties&assetid=2000
http://xyz.com/abc.php?action=list_properties&assetid=2001
http://xyz.com/abc.php?action=list_properties&assetid=2002
etc.
I've played around with repeaters and xmldatasources with success, but once you try nesting them 4 layers deep, things get messy.
My need is to report on the 4th level data, flagging and displaying items which are in need of attention so that the appropriate people can act on them.
Some things I've considered:
* Caching XML results to file …
hi everyone i am doing a website using asp.net and i want to display my access database table content in a formview but the problem is this, i am using a master page and div tags, i devide my form in 3 div tags, the side bar, and menu then main content div, i floated my content div to the right but now i cant see my formview on the content div
How do I make this an async action result if I am using auto mapper.
public async Task<IActionResult> Index()
{
var items = _context.Customers.ToListAsync();
var mappedItems = _mapper.Map<List<CustomerViewModel>>(items);
return View(mappedItems);
}
The issue is from the context I can use ToListAsync but I can't use the await such as return View(await mappedItems);. What is the best way to handle this when using automapper?
I want to display rows in ascending order in grid view after clicking on button. here is the code. code has no error but not displaying rows in ascending order.
protected void Button2_Click(object sender, EventArgs e)
{
try
{
DataTable dt = new DataTable();
Dbconn.Open();
string str = "select id,dte from test order by id asc";
oda = new OracleDataAdapter(str, Dbconn);
oda.Fill(dt);
GridView1.DataBind();
What authentication setup do I need when publishing to IIS a asp.net identity provider web application? I have all the aspnet user tables in SQL server etc and when I run in debug mode I can login as the user I setup. However, when I publish to IIS I am getting errors. Do I need a anonymous and windows authentication and also what identity should the app pool run under? Eventually I am going to create a service account that I can run under but for now just want to use my windows auth.
I'm working on a side project... it's forms with names, address, and other info. One of the fields is SSN.
I plan to encrypt the name and address fields. I can encrypt SSN as well but with all the cyber security issues going on... I'm thinking I shouldn't even store SSN or only store the last 4 digits.
The application will be hosted on a hosting server (ARMOR) eventually.
Any thoughts on if I should store SSN and encrypt or just leave out SSN? users can always search by name.
I am working on an existing ASP.Net MVC application, which has a partial view that is called on numerous occasions in several views across the site. So, in a single instance the partial view an be called up to five times giving me 5 uniquely named objects on a full page when it is loaded. At the moment, the Javascript that is being used is held within the partial view, however we have a requirement to separate the Javascript into its own file so that the View and the JS do not exist in the same space.
The reason for the seperation is that the application that is being worked on is now part of a unification project where a WinForms application is going to be 'Migrated' into ASP.MVC. The two applications share a number of features, hence the unification, and the desire to split the View and the JS.
This code works. I've used LINQ to SQL on some projects but now wondering if there's a better way of coding this. I'm using stored procs and I want to see if I can use parameters for the stored proc. I don't want to use Entity Framework
1. I have a DBML
2. I have a stored proc
3. I have a model
Using Visual Studio 2015 and Team Explorer, I've encountered an error while fetching from the GIT repository.
Error encountered while fetching: The given reference name 'refs/heads/master (DESKTOP-96E21S3's conflicted copy 2018-04-16)' is not valid
My solution is stored in my DropBox account. I have googled this error and it only brings up dropbox solutions, but I'm thinking this error is related to Team Explorer since it occurs when fetching.
I cannot delete it, merge it, or reset it. I can't check out code or check in code.
5. I see the value is null
6. I see this after the line of code is executed
7. I call a stored proc and insert it like this. I out .ToString() because I was getting an error that Object can't be converted to string
The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications