asp.net

referencing images in app_themes/images folder after combining css scripts ...

Hi, I wanted to combine app_themes css files into one on the fly. I did so using Mads Cristensen technique. But now all elements that has background image defined through css (see picture) don't display image. . I believe that is because css files are not relatively referenced anymore (../), but through axd file. I'm trying to fix this ...

Uploaded pictures not included in project

I have upload control on my asp.net page. I upload pictures in folder cars and they show in windows explorer when I open that folder (cars), but in Visual Sudio they act like they not include in project ( that is the reason why they don't show on image control which point to some of them. What did I make wrong ? ...

How do you profile your web site/web application ?

This is to collect from the experience that the community has done information on the aspect of Profiling web Application. Some years ago I worked at a very large project in C++/Java with the a CORBA ORB and we were using Rational Purify/CodeCoverage to instrument, detect memory leaks and discover bottlenecks on server code. From that t...

Get only response headers

Using ASP.NET is it possible to make a request and get only response headers? I have to do a request to a big file, but I only need the response headers, i dont care about the content of the file. I would like to know if there is something similar to get_headers from php (http://php.net/manual/en/function.get-headers.php). ...

Which Java web framework closely resembles ASP.NET MVC?

I need to port a ASP.NET MVC app to Java. To make migration easier, I would like to use the most similar Java web framework to ASP.NET MVC. I know basic Java web development [JSP/Servlets] but I don't any Java MVC framework. What Java web framework would make my migration the easiest? Any recommendations? ...

Search implementation using ASP.NET MVC 2 / jQuery (Performance & Security concerns)

Happy Halloween everyone, hope it was a fun night! I've just implemented an AJAX search functionality on my first ever ASP.NET MVC project, and I just want to get your feedback on security and performance. The project is going to be a simple Forum, with roughly 40 topics and 1000-3000 total posts. Let me show you some code. In my Top...

What is the most popular website written in asp.net?

I am trying to justify writing a website in asp.net that has the potential to be as large as wikipedia. Are there any large websites content driven websites that have been written asp.net? ...

copy data from datatable to dataset.datatable

how to copy data from datatable to table in dataset i ry this but its readonly property ds.datatable1=newdt.copy ...

Adding a JavaScript file to a view

Hi, I am using MVC 2. I have a master page and a view that uses this master page. I have to use a javascript file for this view only, and not for the other views. What is the best way to add a javascript file to this view? What I currently did was to add the javascript file at the top in my content tag. Is this the best way to do i...

Generate different timing for workers for printing

Hi, I am working on a project where there are 110 workers, each work for 4 hours in a batch of 8 worker, I want to Generate timing for this workers. e.g - Batch 1 - Worker 1-8 Timing 08:00am - 12:00pm Date 1/1/2010 - Batch 2 - Worker 9-16 Timing 12:00am - 04:00pm Date 1/1/2010 - Batch 3 - Worker 17-24 Timing 0...

Does an absence of EnableViewState in a DropDownList default to False even if VS 2008 implies True?

While debugging a postback problem with a DropDownList within a Repeater I discovered that even though everything looked like it was set up correctly the selections from the user on the DropDownList were not being restored from the view state. My DropDownList was defined as <asp:DropDownList ID="EmployeeColumnDropDownList" runat="serve...

ASP.NET Gridview columns resizing

I am looking for some solution for ASP.NET GridView that will allow to resize columns. Can anybody have expirience in it and suggest the best solution? ...

How can a webservice be secured with authentication when called from ajax client side ?

How do I protect a webservice if it is called from ajax ? Update: I realize that my question didn't reflect what I intended to ask. I don't want user to be able to do the request by pointing to it with its webbrowser but only in the context of my app. ...

ASP.net site: Long-loading page for user puts all other page loads for user on Hold

I have the following scenario (Asp.net 3.5, Windows Server 2008 R2, IIS7): User1 logs into abc.com using Firefox, and goes to a page that takes several minutes to load. While that page is loading, User1 cannot load any other pages on the site. All other page request on the site for User1 with this browser do not receive a response un...

Design question: 'generic application/process' for multiple clients, which will turn out to be full of 'but's'

Hi, i'm about to create an app for my client. Multiple clients of him (of my client) will login to that app and do the same thing. So in that view, we have a 'generic app': written once, suits every clients needs. But, before the first line of code is written, we have offcourse the first exception: when client A does action A, you have...

Minify JavaScript code through C# - ASP.NET

Hello, I'm trying to write a templated user control that get's as a template the js code from the user, And minifies it on the fly (OnInit), and actually prints the minified JS. That means that I need a code that receives a string, and returns a string. All I found untill know are programs that uses the input \ output from the hard-d...

Very weird problem with Convert.Double in ASP.NET

I have a very simple code that works on my PC: String latitude = "2.3444"; String longitude = "34.333"; Double lat = Convert.ToDouble(latitude); Double lng = Convert.ToDouble(longitude); In my pc "." is decimal separator. I uploaded to server. It fails. I looked at Regional Settings, it was "," as decimal separator. ...

What code whould be placed in the application_start and the session_start events in global.asax?

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? I know when each subroutine is called. Application_Start when the first user first accesses the web application. Session_Start when a user opens a session with the application. But what code belongs in each of these subr...

i need an internet rich application Idea

hello everyone , i'm taking the " web development " course and the project is worh 40 % of the course i should provide my proposal within 1 week , the problem is that the doctor is very demanding he's expecting nothing less than facebook or WebCT " those were his proposed ideas ". i want to make something special not like others ? so do ...

Asp.Net - User control with text between blocks

Hello all, I want to create a usercontrol that behaves like the Label usercontrol or the HyperLink usercontrol. What I mean - the Label usercontrol has the Text attribute, and the text can also be set with the following way: <asp:Label runat="server" id="lblTest">Text Here</asp:Label> If I wish to create a usercontrol that can set t...