What is UseCustomServer and UseCustomServerUrl in a ASP.NET Web Application Project?
Some background: I got the latest version of a Solution from a vendor. I added a few files to the WebSite project file. When I built the solution, the following tags were added to the WebSite.csproj file.
<UseCustomServer>False</UseCustomServer>
<...
Hi guys,
I tried this aproach without any success
the code I'm using:
// File name
String filename = String.Format("{0:ddMMyyHHmm}", dtFileCreated);
String filePath = Path.Combine(Server.MapPath("App_Data"), filename + ".txt");
// Process
myObject pbs = new myObject();
pbs.GenerateFile();
// pbs.GeneratedFile is a S...
I just wanted to confirm if this was true or not - I remember reading somewhere that it was now possible, but after an hour of googling i cant find any definitive proof.
Thanks!
...
I have added an assembly to my project and then uses the assembly as follows:
<%@ Page Title="" Language="C#" MasterPageFile="~/Global.Master" AutoEventWireup="true" CodeBehind="Calendar.aspx.cs" Inherits="Permias.Calendar" %>
<%@ Register TagPrefix="ec" Namespace="ControlSample" Assembly="EventCalendar" %>
<asp:Content ID="Content...
Hi, I am getting an error when I attempt to display a datetime value in a textbox:
My code is:
txtStartDate.Text = rdrGetUserInfo.IsDBNull(14) ? String.Empty : Convert.ToString(rdrGetUserInfo.GetString(14));
The error message is: ex.Message = "Unable to cast object of type 'System.DateTime' to type 'System.String'."
Any ideas how I ...
Hi all,
I've written some code using the REST starter kit and it works fine on my development machine. However, when I upload it to our server the page gives me the following error message...
CS1684: Warning as Error: Reference to type 'System.Runtime.Serialization.Json.DataContractJsonSerializer' claims it is defined in 'c:\WINNT\a...
Hi,
on pageload a panel must not be visible, onclick on a button some process will go on, that time i need to show the process in some notation and once the process is over i need to display the panel
Please help me.
...
I have a web app that uses a WCF service that utilizes a behaviorExtension like so:
<behaviorExtensions>
<add name="clientCredentialsExtension" type="Simon.Web.Giftcard.WCFSecurity.ClientCredentialsExtensionElement, Simon.Web.Giftcard, Version=1.0.3736.20411, Culture=neutral, PublicKeyToken=null"/>
</behaviorExtensions>
The problem is...
Hi,
Is adding / removing HttpModules and HttpHandlers at runtime from a website a good idea ?
I am looking at ways to make my website as dynamic as possible without uploading changed content all over again. Something like config files.
Rule engines exist, but learning them seems like a pain. I might be wrong in my perspective. Please sug...
We have an ASP.Net page that uses a checkbox to toggle between a list view and a tree view.
The problem is that this triggers a post. When we then click on one of the documents in the list, then press back in the browser, we get a page expired error.
Is it possible to change the action of the check box to trigger a get with a parameter...
The CheckedChanged event of a checkbox fires upon autopostback. Is there a way to fire that event with autopostback set to false?
...
I have two different areas, and I have a route in one of those areas that is specific to that area, but I need to generate a link to that route using Html.RouteLink from another area (it's how you get over into the new area) but it won't work... It doesn't seem possible to use RouteLink to routes in a different area.
What is the best w...
I have a Silverlight app that has to load an image dynamically, depending on the image name. The approach that im taking right now is passing the image name by query string to the page and passing that as a param to the Silverlight objet tag
This is the query string passed
Response.Redirect("Build.aspx?img=" + this.PictureUploader.Pos...
I want the user to be able to download a file from a page and have the filename extension in the Save As dialog box to be defaulted to nothing.
This is the code I'm using:
Response.ContentType = "text/plain"
Response.AppendHeader("content-disposition", "attachment; filename=FILE")
Response.WriteFile("C:\Temp\FILE")
Response.End()
FIL...
I have a dropdownlist box, from which a user makes a selection.
However, I am not able to retrieve the value of the SelectedItem in the code behind.
How can I get the value selected in the code behind?
if (ddlRegion.SelectedValue = "0")
{
Response.Write("<script>window.alert('Please select a region')</script...
Good Morning,
I have created an ASP.NET 3.5 webform that allows users to search a parts list. The two textbox controls supply the input paramenters to the stored procedure. The gridview returns the search results from the stored procedure.
I have enhanced the gridview to include a template field with a textbox for Quantity, as well...
I am working with a Web application, based on Asp.Net 3.5 and WSS 3.0 platform. Recenlty i've got a task as follows.
Import bank statement using FTX - Desktop application and parse those statements into database in every 24 hours
ie. i need to download bank statement with the help of a desktop application(which i can call by batch fil...
How is it possible to change the displayed order of columns from a DataTable?
For example, dataTable "dt" contains two columns "a" and "b". I bind it to a GridView like this:
gridView.DataSource = dt;
gridView.DataBind();
But I'd like the GridView to display "b" first (leftmost).
Important point: I'm using this to export to Excel...
I am re-hashing this question because I have looked at over 50 threads in different forums and have not been able to get a resolution to my problem. Here are the specs:
Windows XP SP3, Visual Studio 2008 SP1, .NET 3.5, ASP. NET MVC 2 project, IE 7 (was IE 8)
Up until a few days ago I was not having any issues. It is now happening on an...
I'm trying to use ResolveUrl() to set some paths in the code behind of a custom ASP.NET user control. The user control contains a navigation menu. I'm loading it on a page that's loading a master page.
When I call ResolveUrl("~") in my user control it returns "~" instead of the root of the site. When I call it in a page I get the root p...