asp.net

A generic DropDown implemented by ControlBuilder lost all attributes

Here I have a code using ControlBuilder to make DropDown control generic. [ControlBuilder(typeof(EnumDropDownControlBuilder))] public class EnumDropDown : DropDownList { private string _enumType; private bool _allowEmpty; public string EnumType { get { return _EnumType; } set { _EnumType = value; } } ...

javascript function help to get the Element by ID from a Frame's src?

Default.aspx <html> <frameset id="MainFrameset" rows="78,*" border="0" framespacing="0" frameborder="0"> <frame application="yes" name="menuFrame" src="<% = GetMenuFrameSrcUrl() %>" scrolling="no" noresize> </frameset> </html> Default.aspx.cs public string GetMenuFrameSrcUrl() { return "http://localhost/Applicatio...

.Net - Email sent through outlook should update database

We have to build a small grievance report system. In this users enters their grievance on a ASP.Net page. An email is sent to particular individual of a department. When this individual opens this email in outlook and responds a field in a SQL server table needs to be updated. How to accomplish this SQL Server update? Platform : .Net...

output specific HTTP header

What is the code to output a specific HTTP header e.g. x-adexpert-id ...

extract header info from a get request on a remote URL in asp.net?

Hi, I want to perform a get request on a remote URL and then extract the headers returned. Thanks for any help! ...

Understanding Wapiti results

I ran Wapiti on my webserver. I dump the database before and after, deleted the last line which is the timestamp and found both files have me the same hash value so i know the database hasnt been changed. But according to the report i failed a number of test. And this is the data in the info 500 HTTP Error code. Internal Server Error. ...

How to know a user has left the website or close the Browser window immediately in server side?

In ASP.NET, Session_End will be fired when the Session is time out then I can guess the user has left or close the Browser window in this method. But there is some delay till time out, is there any better solution? ...

how to return prperty collection via sqlhelper ?

hi, I am using SQLHelper class. How can i return a Property list Collection using Sqlhelper. Can anybody help please.? Thanks, Anil ...

explanation of differences in ASP.NET Repeater unique name format string

Can anyone explain reasons why the name property of a Repeater control's child controls would be generated differently in an ASP.NET application when it is deployed on different IIS servers? One some IIS servers the Name is generated using the format: String.Format("{0}:_ctl{1:00}:{2}", RepeaterControlID, itemIndex, ChildControlID); ...

Need help with Asp.net beginner login app

created this simple login page..it's supposed to display in the label text like "Wrong user " when user doesn't exist.."Wrong password" when password entered is incorrect etc but whenever i try and login it ALWAYS displays "Wrong user" when the user does exist in the table..have entered usernames and passwords manually..not using any st...

How long should the connectionString timeout be in ASP.NET applications? (sqlclient)

In my ASP.NET application, I have a sqlclient connectionstring in my web.config file, What is the recommended timeout setting for production environment? Default is 15 seconds. My web farm and database cluster are on the same switch, so there should not be much latency. ...

web service that can withstand with 1000 concurrent users with response in 25 millisecond

Hello Team, Our client requirement is to develop a WCF which can withstand with 1-2k concurrent website users and response should be around 25 milliseconds. This service reads couple of columns from database and will be consumed by different vendors. Can you suggest any architecture or any extra efforts that I need to take while devel...

Differences between ASP.Net framework 1.x and 3.5 / websites and web applications. Things to consider during a migration

We recently migrated a large ASP. website from framework 1.1 to framework 3.5 and in the process also migrated from a website to a web application. On the surface everything seemed to work fine, but now we are discovering that none of the "pages" are doing what they used to. The site is made up of one default.aspx page that loads all t...

How to enable uploading files by dragging and dropping them using asp.net?

One of my clients has requested the functionality of uploading documents by dragging and dropping them in the browser window. The website is being built with ASP.NET 3.5. I know of the 'dragdropupload' add-in for firefox, which allows dropping files on an upload control, but I also need it to work in Internet Explorer. Does anybody know...

Asp.net application bottleneck identification: any suggestion?

Hi everybody, we are struggling to find out what could be the asp.net application performance decrease when we pass from our staging server to our production server and we would like to hear from you to help us find the bottleneck. Our staging server is a Intel Core 2 Quad CPU Q8200 (2.33 GHz) with 4GB of RAM, Windows Server 2003 R2 SP2...

Inserting a Word document content (with formatting) in a RDLC report using C#

Hello, I'm creating a RDLC report in C#. Is it possible to insert the content of a Word 2003 document (with formatting) in it (either in design time or programmatically) before exporting to PDF. The final result will be a PDF file containing the initial report (fields from database) and the Word document content following it. Why this...

Asp.net ques regarding getting IP address of a user

trying to fetch IP address using this:- protected void Page_Load(object sender, EventArgs e) { string ClientIP; ClientIP = HttpContext.Current.Request.UserHostAddress; Label1.Text = ClientIP; } This code gives output as 127.0.0.1 and the code below displays nothing! string C...

ASP.NET - How can I add a new javascript from a user control loaded by callback?

Hi all, I'm doing a menu that loads levels dynamicly, when you click on a item the next level is loaded asynchronously. For each menu item I have a user control. Every user control is declared in its parent, for example, the "secondlevelcontrol" has the reference to "thirdlevelcontrol". With this level of nesting, I want to manage the ...

authentication mode="Forms" Error

Hello, I've made an ASP.net application in Visual Studio. When it was ready I did "Publish Website". I placed the created folder on my website. When I go to the application on my site, I get the following error: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configur...

select statements how to read all from "*"

My statement: string sqlCommandText = "SELECT * FROM ForumThread WHERE"; How can I read * from it? I'm trying like this but its doesnt work: if (reader["*"] != DBNull.Value) { result.TextContent = Convert.ToString(reader["*"]); } ...