.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to make sure new IE windows contains no address bar on click ?

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

The following is my code of hyperlinkfield in a gridview.
How to make the new IE onclick to contain no address bar ? Thanks

<asp:HyperlinkField DataNavigateUrlFields="ID"
ID={0}" HeaderText="Attach"

View Complete Post

More Related Resource Links

Windows Services: New Base Classes in .NET Make Writing a Windows Service Easy


Windows services are applications that run outside of any particular user context in Windows NT, Windows 2000, or Windows XP. The creation of services used to require expert coding skills and generally required C or C++. Visual Studio .NET now makes it easy for you to create a Windows service, whether you're writing code in C++, C#, or Visual Basic. You can also write a Windows service in any other language that targets the common language runtime. This article walks you through the creation of a useful Windows service, then demonstrates how to install, test, and debug the service.

Ken Getz

MSDN Magazine December 2001

Windows XP: Make Your Components More Robust with COM+ 1.5 Innovations


The next version of COM+, COM+ 1.5, offers many improvements over COM+ 1.0. A comprehensive user interface that displays more data for each application as well as complete support for legacy components make the management of existing applications easier and more efficient. Enhanced queueing support provides more flexibility for managing queued calls, and pooling and recycling means better application lifetime management. Application partitioning in COM+ 1.5 surpasses that offered in COM+ 1.0, and transaction isolation can be configured for safer transactions. COM+ 1.5 also allows you to expose any COM+ component as a Web service, as long as it meets certain criteria. This article discusses these and other new features in COM+ 1.5 that take care of much of the plumbing code, allowing developers to concentrate on business components.

Juval Lowy

MSDN Magazine August 2001

OK button click on Windows dialogue form not triggering click event

I have created an Add-In for Outlook 2003 in Visual Studio 2005. When a new message is sent and a toggle button is selected, a form that I have created will be displayed as a dialogue box, where further information can be entered. Once this information has been entered you can click the OK button and the message is sent. If you were to click the OK button with invalid data in the form, there would be a message box with an error message. This all works perfectly on my development machine but when I have packaged the Add-In and installed it on other machines it does not work. Clicking on the OK button does nothing, there is not even an error message. All the prerequsits are successfully installed and this is the only part of the Add-In that does not work. All help greatly appreciated. Thanks Nick

Windows 7 socket bind behavior difference from XP/Server 2003, with reuse address socket option (WSA


I have two processes that are both listening to UDP packets and can run on the same PC.  One process binds a socket to one NIC address with port 18246.  The other process has two Socket objects, one for sending on port 18246 and one for listening on port 18246.  Both of these sockets are created, have the SO_REUSEADDR socket option set.  Bind is called for a single IP Endpoint for a common local NIC address, but a different one than used by the above app.

Under Windows XP and server 2003, both processes can bind regardless of order of startup.

Under Windows 7, if the process with only one socket starts first, the second process fails with WSAEACCES 10013 error with the second socket bind.

I wrote a sample C# app with the following method that fails when running under Windows 7 x86 and x64.  The above failure occurs when the sockets are in separate processes, but a single process using the same socket interaction also fails.  The below method is called with two IPV4 addresses that are assigned to local Network adapters on the PC.

WCF hosted in a Windows Service, how to make calls to the WCF service from within the service host


I have a Windows service that I converted to a WCF service that I want to host in a Windows Service.  I need to do some specific tasks in the OnStart() and OnStop() just like I did when it was just a Windows service.  My original Windows service OnStart() is where I create the main worker thread.  So how do I make a call into my WCF service from within the hosting service? For example in the hosting service's OnStart() I do a host.Open() then I need to call a method in my WCF service but how?



ServiceHost host =

Make WPF application look the same on all supported Windows versions

Hi Folks,

I've been developing a WPF application for the past two years on an XP machine. It's mostly been used within my company where everyone else has been using XP, and I have gone to great lengths to make it look good. Now everyone is in the process of upgrading to Windows 7, and the application doesn't look so hot on Windows 7. A few subtle changes in the Windows 7 theme make custom visual changes I introduced on XP look like an eye sore. We are letting some beta customers use this software now, and we plan to distribute more broadly in the future, so I need to make sure the application looks good on any OS that WPF supports. I would be perfectly happy with having the application looking identical on XP, Vista, and W7. I thought I could achieve this by adding the following to my App.xaml file:

  <ResourceDictionary Source="/PresentationFramework.Luna;component/themes/Luna.NormalColor.xaml" />
I tried this, and nothing changed when running the application in Windows 7. Does anyone know how to solve this? I would be most interested in a solution that does not involve any per-OS customization (a per-OS switch statement in one place in my App file might be acceptable). I simply don't have

How to make the windows forms application install only 1 time and be used only 1 time only



I have a need to create an applicaiton that can be installed 1 time only be a user. The application can also be used only 1 time. (on a given PC)

The user may or may not be and administrator.

How can I do this (without registry alteration if possible)?

Thanks much.


How to make GIF image transparent on windows form app


I got transparent image saved in GIF format, and I want to put this image on other image. The problem is that this gif image is not transparet anymore when I use picturebox or pannel. I also set BackColor to transparent, but it not works :S ... here example:


That white background needs to be transparent .. how can I do that?

I'm using Microsoft Visual C# 2010 Express

how to disable right click with message window along with IP address ?


I want to disable right click on my website and would like to display a popup window on right click, along with the person's IP address who right clicked on my website, how to accoplish that ?

Till now i have added this script on my master page which disable right on I.E but doesn't popup any message window and it works in mozilla and shows popup. why message is not poping up in I.E ?

<script type="text/javascript">
            var message = "Right Click Have Been Disabled!";
            function clickIE() { if (document.all) { alert(message); return false; } }
            function clickNS(e) {
(document.layers || (document.getElementById && !document.all)) {
                    if (e.which == 2 || e.which == 3) { alert(message); return false; }

How to disable Windows 7 right click close of winforms.?


How to disable Windows 7 right click close of winforms.?

When right click of the icon on the taskbar,shows close option to close the form.

How to disable it?


How to make a windows form not resizable?



I  have a form in windows application c#.net2005.

when a user scrolls on the border(both horizontal and vertical scrolling ) and the corner of the form, he should not be able to able to resize the form.What property of the form should I set to achieve this functionality?

Please help me with the code snippet , if there is any code.



how to make login control allow users to login by either username or email address


how to make login control allow users to login by either username or email address 

How to make Windows SharePoint Services use a preexisting database as the content database

From the link below. I am trying to find in Central Administration the following:

  • Replace each instance of AdminVsAppPoolIdentity in the query with the account that is the SharePoint Central Administration virtual server application pool identity. This account is also the database owner (dbo) of the database.
  • Replace each instance of ContentVsAppPoolIdentity in the query with the account that is the content virtual server application pool identity.

  • http://support.microsoft.com/default.aspx/kb/888041

    Where do I find the AdminVsAppPoolIdentity and ContentVsAppPoolIdentity ??

    How do I make a cell in a listview funciton to click as a url


     I have a listvieiw with url's in some of the cells.  When I click on them they do nothing.  I formated the cells to be "hyperlinks" but still nothing.

    Any ideas?

    Setting email address on a local windows login.


    Hello, does anyone know if the email address can be set on a user account imported from a local windows account...? I'm running windows 2008 server, with MOSS 2007.. I go into edit the detail on the account in MOSS and see there's a field for email but when I edit the account the email option is not there...

    Any ideas why...?

    Thanks!! Dan

    How to make my vs.net 2005 built application run on 64bit windows server?

    I have a problem with my application, i can't make it run in a 64 bit windows server 2003. My App use to communicate to a finger print scanner device which listens to device events and automatically transfers device logs to a database.

    This app use to run smoothly in a 32bit windows (my development env is xp sp2 using vs.net 2005 and .net 2.0 framework). But when i tried to install it on a 64 environment everything went wrong. The app returns a CLSID exception in which it can't find the specified reference.

    I have already encountered and fixed this exception in a 32bit windows environment but it really freaks me out seeing my app stucked in a 64bit environment.

    Any ideas on how I can fix my problem is greatly appreciated!
    Thank you in advance..
    ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
    Sql Server  SharePoint  Silverlight  Others  All   

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend