asp.net

.Net caching tool

Why would you use third party caching tool and which one would you rcommend for ASP.net? ...

What is the basic level of Accessibility for UK local government web site?

Hi, I'm designing a new site for a local government department in Scotland and I want to make sure I meet the minimum accessibility level for the site. I had planned to use some jQuery effects, and also to AJAXify the content. But I realised all this JavaScript probably won't be accessible. We will be using VS2008 ASP.NET 3.5 framewo...

TinyMCE wraps my text in <p></p>. Can I avoid this?

Hello everybody. I am using TinyMCE (http://tinymce.moxiecode.com/) in a .NET page. Whenever I load a text myTMCE.value=mycontent; I can see that my text gets wrapped in <p></p>. This is not desirable for me, so I am trying to avoid it. Trying to initialize in <script> tinyMCE.init({ force_p_new...

2147467259 7FFFBFFB(hex) Error

Hi, when I try to run DataBind() on my DataList to enhance ObjectDataSource wired to GetOfferPhotosAccPhotoTableAdapter in .xsd file I get the error: (translated) The type webpresence.App_Code.OfferDetailsTableAdapters .GetOfferPhotosAccPhotoTableAdapter has multiple meanings it can originate from assembly C:\Users\Admin Us...

Whats the problem with this encrypted QueryString- Invalid length for a Base-64 char array.

I am encrypting a text and sending it via QueryString. "8ZnSq13yv2yYVDsehDnNUNp/yIFqsAQh4XNPbV1eLMpk/dMWpc/YnMMEBy29MlgcYqpV2XPOf/Rpiz5S85VN/fkLbGTCkL/clBHh983Cp s=" The Decrypt Function is given Below public static string Decrypt(string stringToDecrypt)//Decrypt the content { try { byte[] key = Convert2ByteArray(DESKey); byte[...

How to simulate postback in nested usercontrols?

Hi all, I'm doing an asp.net application with one page. In this page, I have one usercontrol defined. This usercontrol has a menu (three buttons) and 3 usercontrols defined too. Depending on the clicked button one of the three usercontrols turn to visible true or false. In these three usercontrols I have a button and a message, and I w...

How to covert mm/dd/yyyy to dd/mm/yyyy

hi guys, i hve a textbox in which date is coming in mm/dd/yyyy. i want to convert it from mm/dd/yyyy to dd/mm/yyyy in asp.net with vb to a variable which is datetime ...

How to Implement ASP.Net Forms Authentication

Hello Im just wondering how to go about using FormAuthentication in asp.net In our project we are basing it on webservices, which returns an XML document on successful login with all the credentials we require. Whats the best way to store and access the information returned? Thanks EDIT: thanks for the response. I cant use the defaul...

In ASP.NET, what conditions would cause OnServerClick="foo" to fail, so that "foo()" never gets called?

I've written an ASP.NET application that runs on thousands of sites. But at least at one site, the following code fails: void foo(Sender o, EventArgs e) { .... } <input runat="server" .... OnServerClick="foo" ... Have you ever experienced the OnServer events failing? I experimented at this site and couldn't come up with e...

Find application root URL without using ~

Hi I need to construct the URL of a page in a String, to send it an email (as part of an email verification system). If i use the ~ symbol to denote the app root, it is taken literally. The app will be deployed on a server on three different sites (on different ports) and each site can be accessed via 2 different URLs (one for LAn and ...

Javascript: Referring to control before page is loaded

I have a composite control on an ASPX page. There is Javascript on the ASPX page that gets loaded before the control. Now, since the script refers to the control element which does not exist when the script is loaded, this is throwing a Javascript error of "Obect not defined". Attaching the script to the onload event of the control give...

How does one print external files (XLS, PDF, DOCX, etc) from ASP.NET?

We have an application in classic ASP that allows user to 'attach' files to information. These can be PDFs, spreadsheets, Word documents, etc. In the new ASP.NET version, one requested option was for a "Print All" (one user has a situation where there are 34 attached files and, in the current system, she has to open and print each one ...

How to test QueryString

I have a query string called propID and I wanna check if the passed value in it is a legal integer or not to avoid throwing an error that might reveal info about my database, how can I do it? In other words, I want something like -but in vb.net- : IF QueryString("propID").Content.Type = "int32" Then Proceed ...

Automated Accessibility Testing / Screenreader Emulators

Apart from the web accessibility toolbar for IE and the WAVE tool. Does anyone know of any other tools to assist in web accessibility testing. I'm also looking for a screenreader emulator. ...

Is it commonplace/appropriate for third party components to make undocumented use of the filesystem?

Hello, I have been utilizing two third party components for PDF document generation (in .NET, but i think this is a platform independent topic). I will leave the company's names out of it for now, but I will say, they are not extremely well known vendors. I have found that both products make undocumented use of the filesystem (i.e. pu...

Preventing UNC Share error at build time

At work we have a bunch of sites hosted on our development server. The folder containing all these sites is mapped as a network drive. In VisualStudio I open the root of the site as a WebSite and when I build the site I alwys get this error. Error 4 An error occurred loading a configuration file: Failed to start monitoring changes t...

Problem with ScriptManager.RegisterStartupScript in WebControl nested in UpdatePanel

Hello, I am having what I believe should be a fairly simple problem, but for the life of me I cannot see my problem. The problem is related to ScriptManager.RegisterStartupScript, something I have used many times before. The scenario I have is that I have a custom web control that has been inserted into a page. The control (and one or...

What could cause ASP.NET to skip lines in debug?

I never had this problem before, but I reinstalled my computer recently and Visual Studio is not behaving well in debug for an ASP.NET site. I am attaching visual studio 2008 to the w3wp process to debug a website. When I am debugging a method line by line with F10, sometimes visual studio will decide that it continues until it encount...

Keeping track of selected list item in a master page

As per the functionality of the headers in stackoverflow (Questions, Tags, Users, Badges, ...), I would like to keep track of which list item a user has selected in an ASP.NET MVC view so I can apply a different style or image. What is the best way to do this? ...

Invalid page redirection

Hello, I'm making a request for a page (lets call it page A). However, the request gets redirected to another page (page B). As soon as the request handling starts, URL property of Request object on the server points to page B (however, RawURL still points to page A). I am not able to find any piece of code in the applications that e...