asp.net

IIS response not reaching back to client

Hello, I got a strange issue after hosting the my site in IIS 7.5, Windows server 2008 64 bit The applicaion is created in ASP.Net 2.0 The page with issue has following workflow: Upload a file from browser (may be very large size ~50 MB) Perform some process (May take very long time: up to 30 minuits) Notifies the client that proce...

Put build number in web.config

I'm trying to get my build number into the web.config of an ASP.Net MVC project (long story, but there is a reason)... something like this: <appSettings> <add key="version" value="1.0.3936.27150" /> </appSettings> Right now, I'm doing it with an executable on the post-build event by looking at the assembly to get the version and s...

validaterequest problem with asp.net web page

I have a form that a user fills out and can input html or other text into a textarea. I have the validaterequest attribute set to false on the page. However, when I submit the form with any html characters it bombs saying that it detected the potentially dangerous request field and to make validaterequest=false. I've already done this...

favicon not working in any browser

Hey, I am trying to get a favicon to appear on my webpage. Disclaimer: I have never done this before, but it does seem rather simple. I have a ico image in a folder called pics that is part of my project. I am trying to do this inside my master page. <link rel="Shortcut Icon" href="~/pics/REDIcon.ico"/> That is correct, right? Is th...

Brackets go backward on Unicode text

I have Unicode text being displayed on an ASP.NET page. The text is enclosed by two square brackets, as soon as Arabic text appears the ending bracket goes reverse, e.g. "[Hi there]" becomes "[ [arabic". Is this a browser issue? The brackets are hard-coded and only the enclosing text is dynamic. Here is some sample code. The variable r...

ASP.NET Web Service - How to change Target Location

I have a webservice that works locally but when I publish it to our web server the auto-generated WSDL uses the server's name rather than the host name. I have searched the internet but only found complex answers. There should be a simple web.config change or class attribute setting to change the target location. Basically the aut...

ASP.NET/SQL find the element ID and update database

Basically I've got an update query that runs when you click a submit button. I have an asp:Repeater in my page with a layer inside like this <asp:Repeater id="dgBookings" runat="server" OnItemDataBound="ItemDB"> <itemtemplate> <div class="bookingscontent"> <div class="bookingdetails" id="<%# DataBinder.Eval(Contain...

jQuery post to asp.net page error : The length of the query string for this request exceeds the configured maxQueryStringLength value.

I am trying to do a jQuery post the content of a text editor to an asp.net page (asp.net 4.0) from my javascript.The asp.net page will receive it and save it to db.I append the text editor's content in the querystring.When the content is big, I am getting the following exception The length of the query string for this request exceeds th...

Get Control Value From Web User Control

Lets say I have three DropDownList controls in a web user control and they depend on each other. Categories Brands Products Explanation: After I choose a category from Categories dropdown list, related brands are loaded in Brands DropDownList and same happens when I choose specific brand and they are all located in a web user contro...

jqgrid add row and send data to webservice for insert

I have been able to pull data from my DB using jQuery/Ajax from a webservice into the jQGrid. Now I would like to send added/edited data back to the webservice. I've seen some examples by using PHP and the editurl: command. Will that work for webservices as well (like how I pulled down the data originally)? I've looked over the exam...

Dynamically generate multiple RadioButtonList and capture their values

I have a situation where I need to generate multiple sets of radio buttons. These radio buttons display One to Many relationship data. I know how to get it to work with a workaround that I used back in Classic ASP days ... in which I essentially just spit out the HTML dynamically and keep track of my controls using systematic IDs. Which...

Sql Express DB in APP_DATA when using IIS Virtual Directory

I want to setup a website that uses an SQL Express .mdf file located in the APP_DATA folder. when I create the site as a file-system website, it connects to the database file without issue... however when I create the same site in IIS and I get to the point where it wants to attach to the SQL Express database, it says it cannot connect....

Make connection to database only once on page load

When I load my page I populate my repeater with the following code. Dim conn As Data.SqlClient.SqlConnection Dim Comm As Data.SqlClient.SqlCommand Dim reader As Data.SqlClient.SqlDataReader 'conn = New Data.SqlClient.SqlConnection("Server=localhost\sqlexpress; " & _ '"Database=MyDB; Integrated Se...

How can I detect a child request?

I am trying to create an HttpModule in C# which will redirect arbitrary URLs and missing files, and which will perform canonicalization on all URLs that come in. Part of my canonicalization process is to redirect from default documents (such as http://www.contoso.com/default.aspx) to a bare directory. (like http://www.contoso.com/) I ha...

Object Data Source with Reporting Services in Visual Studio

I'm working on a site where we want to include a pie chart on a page. Right now I'm working on implementing that through Reporting Services (RDLC file) with an object data source. The SelectMethod of my object data source is a method that returns a list of business objects; lets say a List<Alpha> and Alpha has a sub object Beta with a N...

Start VLC from asp.net webpage

I have the following code: protected void VLC_Click(object sender, EventArgs e) { SecureString password = ConvertStringToSecureString("[password]"); string domain = ""; Process.Start(@"C:\Program Files\VideoLAN\VLC\vlc.exe ", "[username]", password, domain); } private SecureString ConvertStringToSecureString(string s) { ...

ASP.NET performance: using LoadControl in for-each

I'm trying to make a decision about how to display my data. What I have now is a list of products displayed in a repeater. But for code-maintenance I've put my product items in a seperate usercontrol and loading them in a loop with db results using LoadControl. The product control itself is very simple, just a few public properties like...

how to display 10 empty records in a grid view?

how to display 10 empty records in a grid view while in page load? ...

Can ASP.NET MVC routing and a classic ASP homepage (VBScript, not web forms) play together nicely?

Hello, We have a classic VBScript "default.asp" page in the root of our site. (This is a heavy, legacy page and converting it is not an option right now.) We also have a new ASP.NET MVC 2 application we want to host on the same site. Everything actually works great together! Except for one thing: requests to the root of the site (e.g., ...

How can i add a data object of a class array to a drop down list?

I have an array for type Person Person[] Traders = GetTraders(); Person class contains data objects such as first name, last name etc. I want to add all first names to a dropdownlist. How can i do that? I tried doing it like this, but it won't get the first names: ddl_traders.DataSource = traders; EDIT Person has the following st...