asp.net

Weird positioning behaviour using ASP.Net, CSS, VS 2008, in IE7

I am working on a webpage in ASP.Net/C# that uses absolute positioning for a textbox, for several in fact. It was working just fine, until I added some more text boxes. That is, the existing text boxes still positioned correctly, but the new ones did not, despite the fact that I created new styles in the CSS for them just like the others...

What is a good way to output an asp.net, C# GridView into a PDF.

I tried using the Microsoft ReportingControls but found them overly cumbersome, with too little documentation. I'd like a simple control that would convert a GridView control into a PDF document. I've started looking into PDFSHarp and am running into dead ends with documentation. Same thing with iTextSharp. I'm willing to dig into th...

Set ContentPlaceHolder data through code ASP.NET

Is it possible to set the data in a ContentPlaceHolder through code? This is what I am thinking of: dim oCPH as new ContentPlaceHolder oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page oCPH.content = "content here" '<-- not real code Obviously that is not correct syntax, I hope that this clarifies...

Building a Decoupled N-Tier App With Entity Framework and VB.NET

So we are building an application with a UI Layer (web, mobile, Ajax client, etc) Service/API Layer Business Logic Layer Data Access Layer Our goal is to have an Entity Framework dependency from the Service Layer on down to the DAL. That means the Sevice layer will only accept and return POCOs (plain old CLR objects). What we're ...

Does Lucene.Net manage multiple threads accessing the same index, one indexing while the other is searching?

When using Lucene.Net with ASP.NET, I can imagine that one web request can trigger an update to the index while another web request is performing a search. Does Lucene.Net have built in it the ability to manage concurrent access, or do I have to manage it, to avoid "being used by another process" errors? EDIT: After reading docs and ...

Any alternative to ASP.Net 'Page Templates' ?

Classic ASP had 'server side includes' so that one could easily design a generic layout for the header, footer, left or right side bar. In ASP.Net, I think we must use 'Page Templates'. Although most people say that it is easy to use, I find it rather complicated, as we must copy the whole HTML code inside the 'Render' function. Is ther...

What's the right tier to obtain directory attributes for display?

I have an intranet application that needs contact information for various locations on our campus that are served by our IT lab support organization. We have an enterprise directory that contains contact information so I'm not keeping the actual contact information in the database, but rather an immutable identifier that serves as a key...

How to send xml to asp page using webrequest from asp.net ?

I want to post an xml document to an asp page from an asp.net page. If I use WebRequest with content/type text/xml the document never gets to the asp page. How can I do this ? ...

LINQ asp.net page against MS Access . .

I have a ASP.Net page using ADO to query MS access database and as a learning exercise i would like to incorporate LINQ. I have one simple table called Quotes. The fields are: QuoteID, QuoteDescription, QuoteAuthor, QuoteDate. I would like to run simple queries like, "Give me all quotes after 1995". How would i incorporate LINQ int...

control robot via internet

i have robot and want to control it via internet using radio wave .. but still i dont know the best language to do that . with the need to build scure site to insure not any body can use it . i expect for site asp with c# but what is the language i'll need it to control from sender device to the recipt robot . also need to live video tra...

How to cache images in memory on the web server for an ASP.NET MVC web app?

I am working on a web application with many images, using ASP.NET MVC. I want to be able to cache the images in memory to improve the performance, but I would like to hear what is the best way to do this. 1) The images are accessible from URL, like http://www.site.com/album/1.jpg. How are the images stored in memory? Are they going to ...

How to automatically register an HttpHandler required by a web server control?

In ASP.NET, when building a web server control in a class library that includes an HttpHandler is there a way to automatically register the handler without having to manually edit the web application's web.config file? I have a class library that contains a CompositeControl. In the composite control I have an Image control with a ImageU...

HTML in an ASP.NET Dynamic Data MultilineText Control

I'm trying to enter a little bit of HTML into an ASP.NET Dynamic Data MultilineText_Edit control, just a couple of <br> tags to have line breaks when I output the value of the column on a web page. However, when I try to click the "Update" link on the Dynamic Data edit page, nothing happens. I don't even get an error message, which I...

.Net Form POST

I've got a client that, during testing, is giving me conflicting information. I don't think they are lying but more confused. So, I would like to setup some simple auditing in my ASP.Net application. Specifically, right when any page is called, I want to immediately insert the Querystring and/or form POST data into a log table. Just ...

Lucene.Net fails at my host because it calls GetTempPath(). What's the work around?

I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack trace shown below. What's the work around? [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security...

An Alternative to VS 2008 Designer Screen

I thought the web page designer screen in 2005 was mediocre until I used the one in 2008 which I think is bad. There is an interesting white paper here: http://www.west-wind.com/weblog/posts/484172.aspx I've gotten very used to these WYSIWYG designers over the years, but I am looking now for a new way. I make business web apps whi...

Are static class instances unique to a request or a server in ASP.NET?

On an ASP.NET website, are static classes unique to each web request, or are they instantiated whenever needed and GCed whenever the GC decides to disposed of them? The reason I ask is because I've written some static classes before in C# and the behavior is different than I would have expected. I would have expected static classes to b...

ASP.NET OleDbConnection Problem

I'm working on an ASP.NET website where I am using an asp:repeater with paging done through a VB.NET code-behind file. I'm having trouble with the database connection though. As far as I can tell, the paging is working, but I can't get the data to be certain. The database is a Microsoft Access database. The function that should be acces...

Button generated for each item in an XSLT file runat server

I am tryiing to create an "add to cart" button for each item that is displayed by an XSLT file. The button must be run at server (VB) and I need to pass parameters into the onlick, so that the requested item is added to the cart. Is this possible, and if so, how should I go about it? When I try <asp:Button id="Button123" Text="Add t...

ASP.NET, XSLT and dynamic controls

I wish to use xml and xsl to generate controls on an asp.net page. I currently have a asp.net content page that contains a xml control. When the page is loaded, an xml file is loaded and the required element is extracted and set as the xml control's DocumentContent and the xml control's TransformSource is set to the appropriate xsl file...