Hey all,
I am into an ASP.Net project now (of course, it's my first project ASP.Net :) ). We are using Dependency Injection and the solution is designed to use MVC pattern. Here is the question now.
I could see the events for different ASP.Net intrinsic controls which is used as part of custom controls is being registered in OnInit eve...
What is the best/simplest way to prevent people hotlinking to images from my hosted ASP.NET website? I don't need to prevent all images/resources from hotlinking, I just want to prevent hotlinking to specific images/resources on a site. FYI. It's hostesd on GoDaddy.com so IIS tricks probably wont work.
...
In my ASP.Net application, I can't get the events in Global.asax.cs to fire on my machine. For instance, Session_Start will not fire.
The same Global.asax.cs works fine on other development machines in my office.
I have tried:
Both the ASP.Net Development Server
and my local IIS
Rebooting the machine
Removing and recreating the file...
Management has decided to go for Windows 2008 64 bit with IIS7 to service our main website.
They want to have it staged on a Windows 2003 server with IIS6. [Edit] Yes 32 bit is what they are planning for staging [End Edit]
I want to know what issues, beyond the security issues, that I should put forward, suggesting we should opt for th...
I have a report written in MS Word .doc format, 40+ pages. Based on user input I have to change some lines and print it to PDF format. I am on windows hosting server, that means asp.net and c# language. Therefor I cannot use Word application or printer drivers.
Basically I have two ideas how to get the PDF format..
- to save this .doc t...
Hi
In my Project (ASP.NET,VB.NET ),some times Server Error is showing.
When this error is shown ,Users cannot submit their Applications,so that they have to re-type full details and submit again.How can I escape from these Server Errors.
I think the reason may be Memmory issues.Because if the user try to submit again(after Sign Out->Sig...
I am running an ASP.NET 2.0 application in IIS 6.0. I want session timeout to be 60 minutes rather than the default 20 minutes. I have done the following
set
in web.config
Set session timeout to 60 minutes in IIS manager/Web site properties/ASP.NET configuration settings
Set idle timeout to 60 minutes in application pool propertie...
I have an asp.net webservice with a parameter of type datetime. I have noticed asp.net seems to offset the date based on the clients timezone.
I need to disable this functionality. I simply want to pass a date (i.e. 3/15/2009) to the webservice from javascript without any timezone context.
Is my only option to change the parameter type...
I am using a CMS that has FCK editor. It doesn't have an option to enter a Code sample like the way Stack Overflow's has.
I think the easiest way to do it would be to use an external editor, convert into HTML and use the HTML in the CMS to edit content.
Any suggestions?
EDIT:
@IAN - It doesnt seem to be working for me. I tried using t...
I have an Website using ASP.Net 2.0 with SQL Server as Database and C# 2005 as programming language. In one of the pages I have a GridView with following layout.
Date -> Time -> QtyUsed
The sample values are as follows: (Since this GridView/Report is generated for a specific month only, I have extracted and displaying only the Day par...
how could i have the web server execute a certain method on the 1st of each month at 10am? and if the server is down at that time, what could be a way to ensure that the method executes when the server returns..
any thoughts would be appreciated..
EDIT: yeah, windows server
...
What is the official name for the "special" ASP.NET tags like this:
<%# %>
<%= %>
<%@ %>
<%$ %>
I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info. As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what each one of them does (or ...
Hi, I want to use assembly of one application into another. There is one assembly in one application "EventCalendar" which is registered as
<%@ Register TagPrefix="ec" Namespace="ControlCalender" Assembly="EventCalendar" %>
and this is used as control as
<ec:EventCalendar runat="server" ID="eventscalendar" DataSourceID="sqldatasour...
I want to retrieve my domain url in asp.net.
for example, if my url = http://www.mydomain.com/blog/currentPage.aspx?id=156, I just want the part: http://www.mydomain.com/blog/
can anyone help me out?
...
We are introducing JQuery to an existing ASP.NET application and use the Validate plugin for JQuery to do the client side validation (we do not want to use the asp.net validators).
Everything works nicely with the asp:Button control. The client side validation is triggered before the page is submitted.
However when using the LinkButto...
I was wondering if there was a general consensus on the "best" alternative view engine for asp.net MVC. So far I know of Spark, Brail, NHaml but what about others?
...
I have a query that I wish to run through an ASP.NET TableAdapter that contains an 'IN' clause which is to receive it's values through a parameter.
My question is, how do I specify this parameter? I thought of writing the conditional statement like this:
AND b.group_category_id in (@ParamList)
where the @ParamList is a String of the ...
This is my connection string inside my web.config of my SharePoint site.
Its sitting just below the closing SharePoint tag.
<connectionStrings>
<add name="SAMRASConnectionString" connectionString="Data Source=JOHANDEVVM;
Initial Catalog=samrasDB; User ID=Johan; Password=password; Trusted_Connection=True"
providerName...
Adding a script to a view generally involves something like this:
<script src="../../Scripts/jquery-1.3.1.min.js" type="text/javascript"></script>
Unfortunately, this doesn't work if the app is deployed in a virtual directory under IIS 6. The alternatives discussed here involve using Url.Content with "~" to resolve the path dynamicall...
I have simple code like this... as follow...
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="AlinmaWebApp._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head run...