asp.net

Does latest version of Umbraco CMS use asp.net mvc?

I've heard that new version of Umbraco CMS will be completely rewritten and will be based on asp.net mvc? Current version is 4.5 and as I see it is still based on ASP.NET. ...

ASP.NET State Service Losing Sessions on App Pool Recycle

Hello All, I am in dire need of a better way to handle sessions. We currently use default in-proc (IIS Worker Process) for our ASP.NET MVC web apps. I am now trying to implement ASP.NET State Service locally on the web server. I have installed and enabled the service (also set it up to start automatically). I believe that we're succ...

Better use int.Parse or Convert.ToInt32

Possible Duplicate: Whats the main difference between int.Parse() and Convert.ToInt32 Hi guys, I would like to know what are PRO and CONS of using Convert.ToInt32 VS int.Parse. Thanks for you support! Here an example of syntax I am using int myPageSize = Convert.ToInt32(uxPageSizeUsersSelector.SelectedValue); ...

button and validators

I have a Table with two textboxes. Every textbox has a required validator to make the user insert data in the textbox. I also have a Login table to confirm user privilages. When I submit the button of login, the validators from the first table appear and prevent the user from logging in. I changed the login button property (Causes va...

Alternative To Using ModalPopupExtender With Hidden Button For TargetControlID.

I often want to have a ModalPopupExtender , but I want to control it from the code behind. In this particular case, I want to make my ModalPopupExtender come up when I click an "edit" button on a GridView row or when I click a "New Item" button on my page. For this reason it makes more sense to control the ModalPopupExtender from the cod...

Visual Studio 2008 sql query syntax; drop the brackets

Is there a way to configure VS2008 so that it does NOT create SQL query strings with square brackets in my ASP .Net projects? I'm using a MySQL DB which doesn't like the brackets. Thanks. ...

ASP.NET MVC: Weird characters in error page.

Since I uploaded an updated version of an ASP.NET MVC 1 application to the server, the Yellow Screen of Death has changed to something like this: ��I�%&/m�{J�J��t��$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h���ͼhR��L�w�|��2=��Ez<����7�:5�<�+oy��:� �T����W�v�<[��~2�g�2��?�ʋ�y�hYՋ������t� _N���M�l�����{�,�...

millions of non-breaking spaces in an ASPX file?

Has anyone ever seen an instance where Visual Studio (or possibly SourceSafe) would decide to insert about 9 million non-breaking space characters at the end of a line in an ASPX file? I'm trying to figure out if this could be some weird bug, or if a programmer fell asleep with her head on the space bar, while in design view... and then...

C# ASP.NET "Compiler Error Message: CS1002: ; expected" on the most basic code

I'm trying to test if ASP.NET is working on my customers IIS 7.5 server, the code below works fine on my server. <html> <body bgcolor="yellow"> <center> <h2>Hello</h2> <p><%Response.Write(now())%></p> </center> </body> </html> Using the exact same text.aspx file containing the above code he gets the error: Compilation Error Descrip...

asp.Net ListView/GridView Databound Error

I am attempting to use a GridView in asp using VB and I get an error message about content. I did some research and reformatted the XML document the datasource is referencing but still cant seem to get the GridView to generate. Error Message: "The data source for GridView with id 'GridView1' did not have any properties or attributes fr...

ASP.NET Automation Issues

I'm trying to use a command-line client to automate some work on an ASP.NET based website and have run into an issue with authentication that I've never seen before and am wondering if anyone else has. When I pull out my browser inspection tools I notice "login.x" and a "login.y" values posted that are integer values and change every ti...

How do I add data to a table in my code behind and display in html?

I would like to pull data from my server and add to a table object. Loop thru the data afterwhich I would like to display the results on the aspx page. DataTable dTable = new DataTable(); dTable.Columns.Add("idNum", typeof(Int64)); dTable.Columns.Add("Name", typeof(String)); dTable.Columns.Add("Age", typeof(Int64)); //Connection/Comma...

Right place to initialize an object in ASP.NET MVC

I am new to the MVC way of programming so please bear with my basic question ! I have a Status class with a default constructor (in an ASP.NET MVC application). public Status() { this.DatePosted = DateTime.Now; } I noticed Fluent NHibernate calls this constructor each time it fetched a list of existing Status objects from the dat...

Web.config in a subdirectory ignored

We have a web.config in a physical subdirectory of a virtual directory that's under an application in an IIS site. Something like this: Site App Web.config Virtual Dir Subdir Web.config In the Web.config we put this configuration in system.web: <webServices> <protocols> <add name="HttpPost" /> <add name="HttpGet" /...

Precompiled .NET app receiving "Internet Explorer cannot display the webpage"

We have a web server that is running many web applications. When I took over this server, I noticed that the sites were not precompiled, so in an effort to clean it up, I precompiled the site using the Publish option in VS2008 (and allow the precompiled site to be updatable). When I deployed the site to the web server, the site stopped...

Perform a Get Request, and reading JSON request

Hey, I need to perform a Get request to a URL that will take 2 parameters, which will return to me a JSON response based on those parameters. The response will look like this {"status":"OK","url":"http://www.link.com","name":"Rathfarnham"} Im Using ASP.NET 2, and wondering how to best 1) Perform the GET Request to the URL 2) Read th...

How to refer to the PlaceHolder in a masterpage, in my childpage using JavaScript ?

Hi All, This is my master page code <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteMaster.master.cs" Inherits="ChildPage_Call_Js_in_MasterPage.SiteMaster" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/...

spring.net autowired and ants profiler

Is someone using spring.net with autowire to instantiate repositories in asp.net? Have you ever tried to profile your app with redgate ants? Profiling my app I can see the app seems to have some performance problems with spring at every request. do you have a similar experience? ...

TFS 2010 Installing Team Explorer for a web solution

I've developed a custom web solution that connects to the TFS server. Now I want to move that solution to the test phase by having it installed on a test machine. The problem is that on the test machine Team Explorer 2010 isn't installed which has resulted in some weird behavior, e.g. the WorkItemStore is always null after connecting. ...

.tostring() preserve leading zeros

Converting an object .tostring() removes the leading zeros. The object is not a fixed length, so I can't do object.tostring("0000000") where the number of zeros represents the fixed length. An example object value is "0357" when I convert that object .tostring it becomes "357". Is there a method for keeping the leading zeros where the...