asp.net

Calling unmanaged code from ASP.NET in IIS7

Hi, I call a DLL in ASP.NET a DLL that is written in C++. When running it into IIS 7, The pool (w3wp.exe) crash and the "just in time debugging window" open. I do many tracing and I found that crash happen when calling any function (in the unmanaged DLLs) that have a "out string" parameter (or return a string value). I saw on the web t...

uploading attachment - restricting file size - IE cannot display the webpage

i am trying to test to see if i get an error if i upload more than 3mb file size but instead i get the IE error (see below) here is the code i have. - what i want is if the user try to upload more than 3mb file size display an error. if (fUpload.HasFile) { // Get the size in bytes of the file to upload. int fileSiz...

Add textbox value to listbox on tab

II am working website which is going to be accessed by a motorola device(scanner) but the functionality needs to be same a normal/usual website. On one of the page I have a textbox -> productID and listbox which can have multiple productID. Now when the focus is on textbox and it scans the productID ,the scanner returns a tab,now after ...

Threaded / Nested comments

Anyone know how to create a threaded / nested comment system? I would like to learn how to do this for my blog that I am working on. I simply can't find anything useful out there. Some one surely must know how its done. ...

optimized this code and make it more dynamic

is there a way i can optimized this code and make this extensions on web.config settings so i can read from there and in future if i need to add or remove i should be able to do easily? if (fileExt.ToLower() == ".rtf" || fileExt.ToLower() == ".xls" || fileExt.ToLower() == ".doc" || ...

Customizing the "My Profile" CSS styles on SharePoint 2010

Hello, I'm trying to edit the CSS file of the "My Profile" page on my SharePoint 2010 solution. I need to change some colors and position of some elements. On my little research here, i found 2 ways to do it: 1º - Editing the mysite.master file 2º - Editing the portal.css on the root folder of the project. I'm a little afraid of thes...

Asp.net Web application accessing SharePoint object model

I have an asp.net 2.0 web application that will run on the same web servers as SharePoint Server 2007. The application should run in its own App Pool (IIS 6.0). The Web Application needs to call the SharePoint Object model API. Is there a resource that explains the required configuration / security settings and other considerations tha...

Overriding DataBind on User Control, caveats?

I've a custom property on a user control which has multiple state/modes. If this property is set in the parent page: I would like for my control to update automatically. Using the property in the page load does not work because it is not initiated. I can imagine 3 methods to do this: On the property, I could add a code block that woul...

how can I use built-in ASP.NET templates for sending emails?

Hello world! Is there any samples on how to use ASP.NET built-in templates out of the page, just for rendering text with params. For instance, to build email message. thanks in advance. ...

WordML templating with XML Schema and OpenXML SDK

I'm trying to use a docx read in via the OpenXML SDK as template in a .Net web app for form letters (essentially). I have a docx with the formatting I want, marked up with XML Schema tags defined from a xsd (whatever they're called, the help is exceedingly useless on this). The only thing similar I found on Google was what seemed to be ...

JavaScript is not able to convince the mouse to change its cursor

I have an ASP.NET page with an Infragistics webgrid on it. I handle the mouseover, mouseout events over the rows of the grid in a couple methods in Javascript to change the mouse cursor to the pointer and back to the default as they mouse over rows. I also toggle the color of the mouse-over'd row. When I run the page in debug locally, i...

Displaying images

Hello fellow Programmers My instructor gave us example code that is very similiar to the code below. I haven't heard back from him yet and wanted to find out why my code won't work properly. Could someone give me some advice on what I'm doing wrong or an easier method to display images. Thanks for your time. <%@ WebHandler Language="VB...

Allow html in asp.net textboxes

I put ValidateRequest="false" in my page directive but the page acts like it's not posting back. If I remove the html then it posts back fine. Using the text boxes inside an update panel shouldn't make a difference right? I'm trying to store text in my database with html formatting. Again, I am using an update panel. ...

CS0246: Missing an assembly reference - works locally, but not on webserver.

I'm trying to implement a paymentgateway (Ewire, a danish payment gateway), and it works fine locally, but when I'm putting it online, it says I'm missing an assembly reference. I am sure that I'm using all the assembly references I need, since it works offline, and I'm also sure that the public class is registered (it's in my masterpag...

How to catch non-aspx files with a http module?

How to do it? If I make a http module it only catches .aspx files. Files with other extensions (.js, .htm) are ignored. Does this have anything to do with IIS? Strangely enough all extensions are caught on the ASP.net Web Development Server but not when hosted in IIS. ...

Multiple file uploader with jQuery in ASP.NET

Hi, I am looking for a multiple file uploader by which I can select(CTRL+mouse click in File browse window) and upload multiple files without postback. I don't want to use any flash component(like SWF uploader) for it. I came to know that with normal Ajax request we can't upload files and we have to fake it through an iframe. Could you ...

Content management system for asp.net

Hello,does anyone know a good free Content management system for asp.net? somethig easy powerfull like joomla f Php. thank you. ...

How do i prevent direct linking to a few pdf files?

I'm working on a website where I need to prevent the direct linking to a few pdf files. I'm using ASP.net 2.0. Is there an easy way in code to do this? or some simple IIS setting? Right now i'm just using a standard anchor tag to link to the files. i can validate the user on the page containing the anchor tag but that still doesn't ...

open pdf from asp.net page

Hello, I have pdf that I would like to open from ASP.net project. I don't want to nagivate to the pdf, but i want to keep the current page opened but when a user clicks on the link, i want to open the pdf file in another page. Thanks for your help. ...

domained LocalSystem vs. non-domained LocalSystem account in Windows-es ?

[1] tells well known (see, for. ex, also [2], etc) fact that upon installation, i.e. in workgroup, a Windows has LocalSystem (SYSTEM) account which: "The LocalSystem account is a predefined local account that has extensive privileges on the local computer. This account is only available to system processes and does not have a pass...