asp.net

Call ASP.NET Web Service on the Same Farm as Web Application

I am getting the following error when I try to call an ASP.NET Web Service from an ASP.NET Web Application. I believe it is because the Web Service and Web Application are on the same Farm/behind the same Load Balancer. A connection attempt failed because the connected party did not properly respond after a period of time, or establish...

Adding Javascript Confirm Dialog to LinkButton/Form generates Object Expected error

I am attempting to add a javascript confirm dialog to either my linkbutton onclick event or my form onsubmit event. Neither of them work as I receive an 'object expected' error from the browser. frm.Attributes.Add("onsubmit", "return Confirm('Really do this?')") How do I add a confirm dialog to the 'onsubmit' or 'onclick' events wit...

What tools are available for adding Localization to an ASP.NET project?

An ASP.NET project I am working on will be adding localization in the next version. As we pull text from our ASPX pages into resource files and other data into database tables, what tools might we want to evaluate to assist this process? Are there any tools to assist translators to create the localization files? ...

What is better: Static variable V.S. Asp.NET Application Session ?

Say you want to share some resource, like a class or a variable across all threads/sessions within a ASP.NET web application. What is better? 1) A static variable having thread-safe accessors to that static variable? 2) Or a ASP.NET application session variable? ...

Where do I put classes when using Web Application project type of Visual Studio .NET instead of Website? (ASP.NET)

I have plenty experience creating ASP.NET Websites in the Visual Studio. But there is an alternative way to do the same thing that is through Web Applications, which have slightly different file structure. Since I created my first Web Application I couldn't use classes (.cs files) in the App_Code folder anymore, they were not seen by th...

How to make ASP.NET development server run on port 80?

I'm working on this ASP.NET website project, when I build (Ctrl-F5) Visual studio 2008 runs the website using the ASP.NET development server on port 4730. Is there a way to make it run it on port 80? ...

How can I include two dynamic items in the NavigateURL properly?

I have a grid view using bound, hyper link, and template fields. I'm trying to figure out how to include two dynamic items in the NavigateURL properly of both the Lo-Fi:HyperLink control and the Hi-Fi:HyperLink control I know how to do this with a HyperLinkField field as I do in the second two columns but I can't use that inside the t...

Add a space inside of a cell of a gridview

I have a gridview and I add some buttons programmatically to this grid. I have an edit and delete button right next to eachother and I simply want to put a space between them programmatically. Any idea how to do that? Here is the code to add the buttons. For i As Integer = 0 To GridView1.Rows.Count - 1 btnedit.ImageUrl = "\i...

.net, SQLDataTableAdapters question

I have a sql query method using SQL data table adapters in .xsd file and need to be able to dynamically change the connection string to that method in the code behind. I can't figure out how to access the methods properties from code behind. method is IsValidDock(), simply checks database for a particular dock number and returns bool....

Does ASP.NET MVC use the regular toolbox controls?

In ASP.NET MVC, do I use the "regular" controls from the toolbox and assign data to them like I did with webforms? Can I use the gridview, for example? Thank you. EDIT: The answer appears to be no. So what do you use? Are there any drag and drop controls in Visual Studio like the webform controls? ...

Using a user control in a base page class

I have a base page class that inherits from Page. We'll call it SpiffyPage. I also have a user control called SpiffyControl. I then have an aspx page, ViewSpiffyStuff.aspx, that inherits from SpiffyPage. On page load, the SpiffyPage class is supposed to inject a SpiffyControl into the aspx page. The problem is that SpiffyControl is ...

What will be the new features available in ASP.Net 4.0?

What will be the new features available in ASP.Net 4.0? ...

Is ASP.NET MVC a step backwards in some ways?

I ask this not to start anything negative. Rather, after looking at ASP.NET MVC it hit me (duh) that I am not using controls like on webforms but coding html markup by hand (gasp.) Is this a move backwards? I remember coming from classic asp to asp.net and dragging and dropping controls, creating a bll, etc. now it seems I am doing al...

ASP.NET equivalent of server side includes

Although the classic ASP method of server-side includes works in ASP.NET, I get the impression it is not the preferred method. How am I "supposed" to be achieving the same effect? This is how I'm doing it at the moment: <!-- #include file ="functionlib.aspx" --> ...

Creating a JSON Header on ASP.NET

I am converting a script from PHP to ASP.net C#. In PHP, i could use something like: header('Content-type: text/json'); header('Content-type: application/json'); How can I tell my aspx page to declare in the header that it is printing a JSON file? ...

Internal ASP.NET Web Application deployment to IIS

Hello, I have an ASP.NET 2.0 application that I am deploying to an IIS 6.0 web server. My ASP.NET application is being deployed as a virtual directory. Currently, this ASP.NET application is publicly visible on the internet. However, I need the ASP.NET application to run only inside of my corporate firewall. How do I configure my app...

Is ASP.NET MVC destined to replace Webforms?

I found these questions, but a couple of them were a little old: http://stackoverflow.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc http://stackoverflow.com/questions/88787/do-you-think-asp-net-mvc-will-compete-with-asp-net-webforms http://stackoverflow.com/questions/722637/asp-net-mvc-asp-net-webforms-why I do n...

How to obtain Handle.ToInt32() in an ASP.NET web application

I am trying to learn and use an SDK for a vendor's product. Unfortunately, the documentation is sketchy and I've run into a void in my own knowledge of the .Net Framework. I have some working code for a windows forms application and I am trying to get it working in an ASP.NET web form app. The vendor documentation implies you can do thi...

window.showModalDialog dialogWidth property not working in IE

Hi - I have a 2.0 framework ASP.Net page that runs in our controled environment (IE 7). The dialogWidth property seems not to be working. The scrip is as follows: var win = window.showModalDialog ('Page.aspx', 'PopupPage', 'dialogHeight:600px,dialogWidth:800px,resizable:0'); The dialogHeight works fine but no matter what I change th...

ASP.NET Active Directory Membership Provider and SQL Profile Provider

Hey All, I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others. The project is a ASP.NET web application and due to the short time frame, I am trying to use any and all built in .NET framework components I can. The site will probably entertain < 5000 users...