My unfamiliarity with the ASP.NET MVC framework and the plumbing thereof has brought me here, and I appreciate the patience it will take for anyone to read and consider my question!
Okay, here is the scenario: I have an application that has numerous pages with grids that display data based on searches, drilling down from other data, rep...
Hi,
I am trying to learn ASP.Net MVC framework and I was wondering if there were any good reference applications that I could use to learn about implementing ASP.Net as well as best practices for implementing LOB apps.
If possible I would like to see a ASP.Net MVC app that uses AJAX too.
...
I get an UnauthorizedAccessException everytime I try to access (just read) a file on a network share "\\server\folder1\folder2\file.pdf."
I am impersonating the domain\aspnet user which has read & write access to the above mentioned folders. The file is not read-only.
I tried finding the permissions via System.Security.Permissions.F...
Sorry* this is what I should have put
My query is creating duplicate entries for any record that has more than 1 instance (regardless of date)
<asp:SqlDataSource ID="EastMonthlyHealthDS" runat="server"
ConnectionString="<%$ ConnectionStrings:SNA_TRTTestConnectionString %>"
SelectCommand="SELECT [SNA_Parent_Accounts].[Company]...
I've got a table "Expenses" that contains an FK value to an "ExpenseType" table. Right now, if I want to save a new expense, I first get the int value of the FK, do a lookup to the ExpenseType table, and assign the object to the expense object. For example:
//create new expense
var e = new Expense();
//lookup the associated expense typ...
What is the easiest way to monitor how long it is taking to render my asp.net pages (I'm using webforms still if it matters)?
I know that the page lifecycle is pretty involved, but I'm basically just looking for one number that tells me how long my code took to run and to display that at the bottom (or wherever) of the page.
Edit
...
I have the following situation: I have a textbox inside an ajax updatepanel. Wherever the user types in the textbox I must display a message (different message that depends on the user typed data).
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<ContentTemplate>
<asp:TextBox ID="txtMyTe...
Hi All,
im trying to use a file upload control from the obout control library, i really like it, and think its quite slick without any flash!..
i downloaded the entire installer, played with the settings in the samples, and made the control act exactly as i wanted.
i created a brand new web application ins vs2008, and included the web...
So I'm having problems when I try to publish the website.
I'm in visual studio 2008 sp1.
I've got a bunch of user controls and on a few pages I'm using them programatically.
I've got a reference on the aspx page
<%@ Reference Control="~/UserControls/Foo.ascx" %>
Then on the code behing I use
ASP.usercontrols_foo newFoo control = (AS...
How do I display localhost traffic in Fiddler while debugging an ASP.NET application?
...
I'm using asp.net 3.0.
I have Page A doing a Server.Transfer to Page B.
On both page A and Page B I'm want to be able to use System.IO.File.GetLastWriteTime(MapPath(Page.Request.Path.ToString())) in order to display the last modified date at the top of each file.
This works well on page A, but when I use Server.Transfer to page B, Pa...
I have a datatable with verified 10 rows named dtable. I attempt to bind it to my gridview and nothing shows up on my asp.net page. Why do these relatively simple few lines not populate my gridview?
Dim con As SqlConnection = Nothing
Dim dTable As DataTable
Dim dataAdapter As SqlDataAdapter
Dim sqlcmd As String
.......
I had VS 2005 with v2.0 of the framework. Then I installed NDoc recently and that supports only v1.1, so it installed v1.1 on top of v2.0. That is fine because both versions can co-exist but what it did was screw up some settings with:
a) The web server that comes with ASP.NET, the one you run your web services on in debug mode.
b) SQL...
Hello
I built a webusercontrol in asp.net which contains a databound dropdown.
When I directly put this control into a webform it runs well.
But if I try to add this control as childcontrol to another control at runtime
Childcontrol childcontrol = new Childcontrol ();
maincontrol.controls.add(childcontrol)
, the dropdown of the ch...
I'm looking at collating mine and a few friends photos on our own stock photo site.. To save me some time I was wondering if anyone knew of a good stock photo app built in ASP.NET??
I have googled and not come up with much.. Looking for the ability for people to be able to buy from the site and the images watermarked so people can't ste...
Hi,
I've created a module for my website and when a button is clicked, it calls a VB sub on the server.
I need this sub to retrieve the values that were filled in on the form, but the things I need to retrieve values from are not asp controls, they are simple <input> and <select> tags.
How can I retrieve values from input on a .aspx p...
Hi all,
I am using the ASP.NET AJAX Control Kit and I am having a problem using a collapsible panel in my code. I have the following code:
<table><tr>
<td class="bg">
<a class="bg" href="javascript:void(0);">
<asp:CheckBox runat="server" ID="chkSMSGrossRevenue" Text="Gross Revenue (Daily, Monthly, Yearly)" /></a>
<asp:Panel...
I have a problem that I really need solved in any way (changing data types is an option)
Assumptions:
Both Program and Service done in VS2008
I have complete control over both Program and Service
I have a program that is passing a "list" of info to the Service Reference
Example:
Program snippet:
IList<string> XMLList = null;
XMLL...
Hey everyone,
As the title suggests i've run into a problem with anchors ASP.NET.
I've set them up the same way as you would in standard html
ex:
<a href="#Intro">Introduction</a>
and then further down the page,
<a name="Intro" ...
for some reason when i click the link, the #Intro isnt appended to the url, and i'm not taking to t...
I am working on a Silverlight client and associated ASP.NET web services (not WCF), and I need to implement some features containing user preferences such as a "favourite items" system and whether they'd like word-wrapping or not. In order to make a pleasant (rather than infuriating) user experience, I want to persist these settings acro...