asp.net

Autocomplete textbox

I need to develop a autocomplete textbox customcontrol. Please any ideas or sample code. I need to fetch data from database to populate this control ...

how to create my own namespace...

how to create my own namespace of database connectivity in a project and use in .cs file of every .aspx page ?? ...

Controlling HTML of a WebPart's top-right drop down menu

I am reviewing some existing ASP.NET code that used ASP.NET WebParts. The web parts implement IWebActionable in order to control the items shown on the web part's top-right drop down menu. The rendered HTML for each context menu item looks something like this: <DIV> <A class="menuItem" onclick="stuff" href="javascript:void(0)"> ...

How to select current month from dropdownlist using C# with the help of back end code?

Suppose i have a dropdownlist in which whole months are there in that dropdown.I want that on page load dropdownlist select current month automatically(means with the help of back end code using C#). so how to do this ? please tell me. ...

ConfirmButtonExtender with ModalPopupExtender : TargetControlID error

I am receiving the following error when using a ConfirmButtonExtender with a ModalPopupExtender. The error occurs in AjaxControlToolkit.ConfirmButtonExtender.RegisterDisplayModalPopup(). I located the source to this method and visually stepped through it. I can't find anything wrong with the markup. ...

Get ASP.NET control which fired a postback within a AJAX UpdatePanel

Related to this question: On postback, how can I check which control cause postback in Page_Init event If the control is wrapped in an ASP.NET AJAX UpdatePanel, the variable "control" is empty because it has a different ID after the AJAX PostBack. Is there a solution to get the control which fired a postback within an ASP.NET Ajax Updat...

Bullet-proof detection of the user's IP Address in ASP.NET

I have tried fetching the ip from below mentioned methods HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] & Request.UserHostAddress & Request.ServerVariables["REMOTE_ADDR"] The problem is this that Request.ServerVariables["REMOTE_ADDR"] return Proxy ip and HttpContext.Current.Request.ServerVariables["HTTP_X_FORW...

error updating JScript IntelliSense warnings

How can this error be rectified? What's the cause of this error? Warning 1 Error updating JScript IntelliSense: Object doesn't support this property:@-- ...

Should or can Visual Studio run inside App-V and what are the repurcussions?

There is a debate going in our department to virtualize Visual Studio into App-V, Microsofts Application Virtualization. In the back of my mind, I think doing this will cause problems when trying to debug or run other tasks in Visual Studio but I can't put my finger on any one thing to support my argument. Has anyone had any experience...

How to create Multi language website in aspx with database

How to create Multi language website in aspx where database store translations? I search many articles but there is not uniq solution. Anyone have good isea or know any good article? ...

ASPNETCOMPILER : error ASPRUNTIME: Target Directory not empty

I have a web application that needs to be built using a nant script. All the projects in the solution build fine but for this error that crops up each time at the end of the build. I couldn't find much useful information on resolving this error. Has anyone encountered and fixed this kind of issue before? Any help would be much appreciate...

how to check if the click is Performclick or not

Hi i have a requirement to check for a button click is a performclick or not . some thing like if(click is button1.performclick()) {do something } else {do something } can any one help ...

asp.net auto generate form fields at design time

Is there a way to auto generate form fields at design time from data source? I know I could do it at run time by dynamically appending controls, but I want to generate these controls at design time and position them accordingly. thanks ...

Weird behavior while accessing "HttpContext.Current.Session" in Application_PreRequestHandlerExecute method

Hi, In my application I am using a custom httphandler. In this handler I have written this code: static void Application_PreRequestHandlerExecute(object sender, EventArgs e) { try { HttpContext.Current.Session["MyKey"] = "X"; } catch (Exception ex) { throw; } } Now when I try to access my site...

Sorting a ListView in C# causing crashes

I'm attempting to sort a ListView using C#, but whenever I click the sort button it crashes the webpage. Here's my ASP.NET code: <asp:ListView ID="list" runat="server" OnSorting="list_Sorting"> <LayoutTemplate> <asp:LinkButton runat="server" ID="Sorter" CommandName="Sort" CommandArgument="DispName" Text="Display...

Ajax reorder list not dragable.

I have the same problem as Simon in this post. He found out some sort of a solution, but it does not work for me. Please, could someone explain me what is going on in this answer or advice me something else. PS: there is an example on the asp.net site which doesn't work exactly the same way as my reorder list... (click view a demo) Th...

How do I send an email to multiple recipients using asp.net?

I have a sendmail funciton that works for one recipient. If I pass something like "[email protected];[email protected]" in ToEmail then I get an error that says ; not allowed in message header. What am I doing wrong? Here is my SendMail function: Public Function SendMail(ByVal ToEmail As String, ByVal FromEmail As String, ByVal Subject As...

add hover to asp.net menu control

Hi, i have a image menu within my asp.net website. i want to include an easy solution for hoverover functionality. for example, menu item one would dispay 1.jpg on page load and hover1.jpg when a user hovers their mouse over the image. thanks for any support. <asp:Menu ID="Menu1" runat="server"> <Items> <asp:MenuItem ImageUrl="~/Imag...

asp/php communication to local service/application

Hi, I have a local application which parses data. What i need is to develop a web interface to query statistics and set configurations for the application thats running at all times. Since I am the developer of both applications I have full access to both source. My main goals here are: - have a service or app running at all times on...

httpModule for 404

I've created an httpModule to handle URL remappings, and it works great on my test system. A request for www.mydomain.com/Some_Fancy_URL gets rewritten to www.mydomain.com/some.aspx?fancy=23 and so on. When I deploy to the actual web site, I'm getting the default IIS 404 page though. After doing some research online, it would seem tha...