I have an ASP.NET site that was working fine running on Windows Server 2003 / IIS6.
I moved it to Windows Server 2008 / IIS7 and the aspx page output now includes gibberish text.
For example:
p����
�����
The majority of the page renders properly, but there is gibberish here and there.
I have checked the event logs and there is nothi...
I have a base master page that specifies the main layout template of a website. It also handles some logic that changes tabs depending on the section, and also sets page meta information.
I'm dynamically loading nested master pages by looking at the querystring, loading up a record from the database, and setting the nested master page ...
My site has the following url format: www.mysite.com/Display.aspx?ID=128
However most users see the url as
www.mysite.com/Display.aspx?ID=128&AspxAutoDetectCookieSupport=1
How can I avoid &AspxAutoDetectCookieSupport=1 from appearing in the url.
Is it to do something with cookie in web.config, but where? And what would be the implic...
I want to set System.Web.Security.Membership.HashAlgorithmType (or thru web.config) to a custom Cryptography class I created, In this function I have Encrypt and Decrypt functions I wanna map the property value to use this class.
How do I do it.
PS. I don't mind to change the crypto class' struct, my point is using a custom crypto clas...
I thought I'd ask before I try.
I'm guessing that I need to have something monitor an email inbox to process the emails rather than submitting them directly to a web page.
...
The TempImage is located under the root directory of the current web app. When I try to set the ImageUrl of an image I get the error below. For some reason asp.net web server trying to locate the directory under its own current root
This is what I am trying to do:
<asp:image ImageUrl="~/TempImages/... />
Ive also tried
<asp:image Im...
i m passing URl from web config where i need to write
Example :: URL=http://www.google.co.in/search?hl=en&rlz=1R2SKPB_enIN332&ei=yktESuLfIIbg7APpquQj&sa=X&spell=1
if i write this url in web.config file i m getting in valid URL.
How to go about it?
...
I need to create ASP.NET tabs with each tab looking like a triangle (similar to OneNote tabs). are there any available tab controls that support this out of the box?
if it's not in ASP.NET world, but in js (like extJS or jQuery) I'll take that and just adopt it. I know those libraries are advanced, but I don't know if I they can do what...
I'm having a very difficult time. I am running windows 2008 server, I have an Able Commerce site using ASP.NET with C#. I'm writing an automated task that will ftp some xml files down into a local directory on our web server and then the program parses the xml file and saves information to our database. The problem, once I save the files...
In my web application I dynamically generate images and want to show the images as part of a web page.
But, when debugging using the ASP.NET development server (not IIS) - I have no idea where to store these images so they can be referenced from my web application.
Should I use Directory.GetCurrentDirectory()?
Or Assembly.GetExecuting...
We run multiple web servers in an infrastructure that makes use of a time service to synchronise the servers' datetimes. A particular web form that the web application displays has an 'AsAt' textbox that gets set using a DateTime.Now call when the page is rendered. A timestamp is written back to an Oracle database on insert or update as ...
Recently I posted a question about the html helper dropdownlist and got it working (here). But now I have decided it was alot smarter to switch to ModelView Patterns so I have acces to strongly typed methods in my views etc. What I did was I made some adjustments to the code in my other topic in the following way:
VacatureFormViewModel:...
I have Deployed my Asp.net web application on IIS 7.0 on localMachine(Server) and it is working fine there.
But when i try to access it from other machine in LAN, It gives me error that, 'Internet Explorer Can Not find this Page.'
I am accessing it on terminals using server name address and also tried using IP address.
Even I have Sha...
If I throw an unhandled exception from ASP.NET, a warning is added to the eventlog (as expected).
But if the message in the exception contains a %, the message in the eventlog gets garbled:
If the Message was
Could not find foo%20bar
the eventlog will read
Could not find foohttp://localhost/testpage.aspxbar
Other numeric values...
As a side-project I'm trying to create an app that scans license plates from passing cars from my living-room window.
I have hooked up a high resolution camera to my system to capture (moving) images into my c# app. Now all I need is a way to interpret these images into something readable.
I´m thinking about some sort of OCR-solutio...
Hi,
I have a website that utilizes MS SQL 2008's FTS (Full-Text Search). The search works fine if the user searches for a string with an apostrophe like that's - it returns any results that contain that's. However, it will not return a result if the user searches for thats, and the database stores that's.
Also, ideally a search for tha...
The treeview has leaf node checkboxes.I need to validate the treeview
if atleast one of the node is checked and not more than a specfic(say 3 nodes) number of nodes a user can select.
Note:The Treeview is a asp.net treeview(not an ajax treeview)
...
Using .NET 3.5, ASP.NET, Enterprise Library 4.1 Exception Handling and Logging blocks, I wrote a custom exception handler to display a standard error page, as follows:
[ConfigurationElementType(typeof(CustomHandlerData))]
public class PageExceptionHandler : IExceptionHandler {
public PageExceptionHandler(NameValueCollection ignore)...
I have an ASP.Net website with multiple roles, each with access to a separate directory (i.e. admin users can access /admin, shoppers can access /shop etc), using a shared login page. If someone visits the login page with the return URL set to a directory they do not have access to (e.g. a shopper visits /login.aspx?returnurl=/admin/ind...
This is the code i got from This Link
I want the user to upload a picture and then resize it.............
Public Sub ResizeFromStream(ByVal ImageSavePath As String, ByVal MaxSideSize As Integer, ByVal Buffer As System.IO.Stream)
Dim intNewWidth As Integer
Dim intNewHeight As Integer
Dim imgInput As System.Drawing.Image = S...