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; }
}
...
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...
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...
What is the code to output a specific HTTP header e.g. x-adexpert-id
...
Hi,
I want to perform a get request on a remote URL and then extract the headers returned.
Thanks for any help!
...
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. ...
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?
...
hi,
I am using SQLHelper class. How can i return a Property list Collection using Sqlhelper.
Can anybody help please.?
Thanks,
Anil
...
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);
...
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...
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.
...
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...
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...
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...
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...
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...
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...
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 ...
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...
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["*"]);
}
...