asp.net

c# asp.net FTP Error

I get "System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet" when trying to download an item from an ftp(which have access to). The upload seems to work fine and is done similarly I'll post both functions below: private void Download(string filePath, string fileName) {...

AJAX UpdatePanel help needed

Hi, I have the following ASPX code: <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel runat="server" ID="UpdatePanel" UpdateMode="Conditional"> <ContentTemplate> <asp:Button runat="server" ID="UpdateButton1" OnClick="NextImg_Clic...

Thread.CurrentPrincipal claims incorrectly to be anynomous

I'm seeing requests on my server that appear to be made by an anynomous client, although I'm certain they were made by an authenticated user - I have fiddler logs showing that the client sent valid asp.net auth cookies, and server logs indicating that the cookie arrived and is valid. The problem has been observed across all browsers. T...

<httpRuntime requestValidationMode="2.0" /> doesn't work (using IIS 6.0)

Hi I'm getting errors with an application on our test web server, which has .NET 4.0 installed, when I input HTML into a form. I get the usual errors of: A potentially dangerous Request.Form value was detected from the client This is being caused by the change in .NET 4.0 that disables switching off automatic validation for HTML inpu...

Using DataPager for Datalist ?

Can we use a DataPager for a DataList? I've done it but the following exception has occurred !!! Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [...

Easily Validate a CheckBoxList

Am trying to elegantly validate a CheckBoxList in ASP.NET webforms. Problem: Unknown server tag 'cc:ValidateableCheckBoxList'. namespace fmwebapp1.UserControls { [ValidationPropertyAttribute("ValidateableProperty")] public class ValidateableCheckBoxList : CheckBoxList { public string ValidateableProperty ...

Date format lost when Import Excel file in asp.NET C#

Date format is 1:55:25 AM in the excel file, after reading using ExcelReaderFactory.CreateBinaryReader, I get the 0.0451388888888889. ...

Implementing dirty indicator for 3 different divs within an ASP.NET page

I have an ASP.NET page that has three divs within the only form which renders as three jQuery ui tabs. All the three tabs have inputs and/or selects that gets submitted to separate web methods. On tab one there are two inputs of type submit, that redirects after committing the form to another page. Simultaneous edits are possible on al...

setting maximum length in a gridview

Greetings Everyone..i just wanna ask is it possible to set a maximum length in my field in gridview? Below is my gridview sample that retrieve a formatted html in my database..All i want to achieve is to limit the maximum length of characters i.e "50" then automatically create a pagination for the succeeding characters..to be posted in...

How do I work with ASP.NET between SubVersion and my hosted site?

I'm at the very beginning of learning ASP.NET WebForms. Right now I'm starting to go through the TailSpin-SpyWorks tutorial. I've also setup a Windows hosting account at www.arvixe.com to use to host my site(s). I've currently been working on desktop apps in WinForms with C#, and using subversion for version control. And I'm trying to u...

Validate DropDownList if checkbox checked

ASP.NET3.5 Webforms. Am trying to put a validator on the drop down list, only if the checkbox is checked. This doesn't work. If I put an alert in the onclick event, it does show. <script language="javascript" type="text/javascript"> function setVal(sender) { var myVal = document.getElementById('<%=(DropDownList)CreateUserW...

AutoPostBack="true" doesn't work for DropDownList with DataSource

I have following *.aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Admin_Test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> <title>Untitled Page</title> </h...

How this controller can get the values it needs?

Say I have set up a url structure as follows (ASP.NET MVC2) http://localhost:XXXX/Product/ Click on link browse by color http://localhost:XXXX/Product/Color/ Click on link browse red color items by type (i.e. pen's) http://localhost:XXXX/Product/Color/Red/Pen In the controller, I will need to do a select based on these criteria. Ex...

asp.net styling

Greeting, I listed two examples of using style propriety for asp.net control. what is the difference between the to examples? my goal is to set the style and positions of asp.net controls in my page to be stable in firefox and IE browsers. and should set the position as absolute or elative. I have 30 asp.net controls in my page and I...

Microsoft Windows Azure Web Host has stoped working !!!

Hello, I am developing a web application with Azure Cloude Service and using ASP.NET 3.5, Telerik ASP.NET Ajax control and MSSQL-SERVER 2008 R2. I fetching problem while debugging. my problem is bellow : Problem signature: Problem Event Name: APPCRASH Application Name: WaWebHost.exe Application Version: 6.0.6002.18005 Applica...

Is WordPress any good (from a .NET developer perspective)?

I've been looking for a good ASP.NET MVC blog engine (I believe many others have too). I'm keen not to use the standard ASP.NET blog engines as I want to keep away from viewstate. There isn't really much out there to hang one's hat on in the MS space, and in the back of my mind I keep thikning I should be looking outside of the Microsof...

Can i unsubscribe to an event of BasePage from a page which inherits from BasePage in asp.net

I have a BasePage having common functionality required by all pages. I have defined a PreRender() event on page base. There are 2-3 pages which does not require this functionality. Can i unsubscribe to PreRender() event of BasePage from my .aspx page. I tried casting BasePage to Page (PageBase as Page).PreRender -= OnPreRender(new Event...

how to get control in a gridview cells with javascript....

how can i access the controls in a gridview cells in which i use for inline edit? In the gridview, there would be two controls in a cell, which is a label and a textbox. When user navigate around the gridview, next cell would turns textbox become visible and label become invisible. How can i enhance the code below. I'm not familiar with ...

Deploying an ascx control

I have a fix done for my user control. The changes are there both in the .ascx file and the .ascx.cs file. Now, post-build...is there any way I can deploy just my...assembly for this control container...and avoid the deployment of the .ascx file? ...

Finding duration of an uploaded video

Is there any method for finding the duration of an uploaded video without running any exe (ffmpeg.exe) in asp.net? If so any one please suggest a method which can handle a heavy traffic site... ...