System.EventArgs Class
Information   Base Types   Related Resources

EventArgs is the base class for classes containing event data.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (890)Discussions (11139)MembersRotorChanges
    Discussions

    Page: 1234567891011121314151617181920
    2122232425262728293031323334353637383940
    4142434445464748495051525354555657585960
    6162636465666768697071727374757677787980
    81828384858687888990919293949596979899100
    101102103104105106107108109110111112113114115116117118119120
    121122123124125126127128129130131132133134135136137138139140
    141142143144145146147148149150151152153154155156157158159160
    161162163164165166167168169170171172173174175176177178179180
    181182183184185186187188189190191192193194195196197198199200
    201202203204205206207208209210211212213214215216217218219220
    221222223224225226227228229230231232233234235236237238239240
    241242243244245246247248249250251252253254255256257258259260
    261262263264265266267268269270271272273274275276277278279280
    281282283284285286287288289290291292293294295296297298299300
    301302303304305306307308309310311312313314315316317318319320
    321322323324325326327328329330331332333334335336337338339340
    341342343344345346347348349350351352353354355356357358359360
    361362363364365366367368369370371372373374375376377378379380
    381382383384385386387388389390391392393394395396397398399400
    401402403404405406407408409410411412413414415416417418419420
    421422423424425426427428429430431432433434435436437438439440
    441442443444445446
    HTTPModule - an interceptor indeed, but without communication skills! (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Ok, Ive been thinking about this problem for a while. I have 30 odd aspx pages (already built) on my website that I need to have some validation occur before the page should load. The validation is TEST if javascript is enabled on the browser some other plugin checks via javascript. Id rather implement this check without touching any of the aspx files. Reason is the usual I dont want "same code" c...
    httpModules :: BeginRequest Behavior (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I'm trying to implement some kind of page controller, a class that will intercept all incoming requests and route them appropriately. More specifically, I'd like to intercept a request for a non existent url, say "http://www.somesite.com/view/UserName", and have that request URL parsed so that I could route all URLs containing "view" to the appropriate form which would fulfill the request with "Us...
    HTTPRequest Get Response Method and Time out problem with VB.NET (VIP replies)
    microsoft.public.dotnet.general
    Hi, I am new to .NET framework. I am trying to get data from the third party web application using WebHTTPRequest and Response class. I am getting TimeOut exception at GetResponse Method.. Dim objResponse As HttpWebResponse objRequest.GetResponse() tried out different solutions but still problem persist. Here is the code from my test applicaiton Thanks, James Private Function readHtmlPage(ByVal Ur...
    HttpRequest parameter read (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hello, I am developing a web application. If i call an aspx page with several parameters, is there a way to get access to parameter values by key? I am using C# E.g. void PageLoad(object sender, EventArgs e) { string album Request. ??? ("album"); } And a call the page: http://mywebsite.com/pics.aspx?album FirstAlbum. As i could see, it only provides methods to get a list of parameters and then loo...
    HttpRequest parameter read (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello, I am developing a web application. If i call an aspx page with several parameters, is there a way to get access to parameter values by key? I am using C# E.g. void PageLoad(object sender, EventArgs e) { string album Request. ??? ("album"); } And a call the page: http://mywebsite.com/pics.aspx?album FirstAlbum. As i could see, it only provides methods to get a list of parameters and then loo...
    HttpWebRequest - GET Method (VIP replies)
    ASPFriends.com 'ngfx-io' list
    I'd like to GET the page inside an HTTPWEBREQUEST Class, but it doesn't seem to like GET as the Method. Keeps displaying the following error. Cannot send a content body with this verb type. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception De...
    HttpWebRequest Session/Timeout Problem (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I wrote a generic page to do HttpWebRequest operations based on 3 querystring parameters for the uri, username, and password for basic authentication pages. The page is designed to help with network management... You would use the page like this: http://localhost/webform1.aspx?uri http://pagetomonitor.com&user someuser&pass somepass Anyway, what seems to happen is that the first 2 or 3 calls to th...
    HttpWebRequest.GetResponse() throwing Timeout (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I'm trying to create a simple screen scraping application and I kept getting a System.Net.WebException thrown back with a message of "The operation has timed out." At first I thought it was some kind of connectivity issue on the machine. It didn't make sense though, because I can open up a browser on the same machine and easily browse the web. I'm stumped. I looked over my code for any errors and ...
    Hyperlink problem (VIP replies)
    microsoft.public.dotnet.framework.aspnet.datagridcontrol
    I am sure that there is a simple answer to this, but i have not been able to find it. I have a hyperlink column to send the user to an external webpage. But when it is clicked it appends the URL to the current URL i.e http://www.mywebsite.com/datapage.aspx#http://www.externalwebsite.com Thanks for any help you can give Andrew Outgoing mail is certified Virus Free. Checked by AVG anti virus system ...
    HyperLinkColumn not functioning (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    There is a datagrid with a hyperlinkcolumn within. The hyperlink when clicked on redirects to "Data11b.aspx?BulkLoadId 1". The page load function does not run when page1 is activated, but page init does. What is required for the page load to execute. ******************************************** asp:HyperLinkColumn DataNavigateUrlField "BulkLoadID" DataNavigateUrlFormatString "Data11B.aspx?BulkLoad...
    I am getting the following Error What is the proper syntax for this line (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    I am getting the following Error What is the proper syntac for this line Compiler Error Message: CS1513: } expected Source Error: Line 330: if(Request.QueryString["Category"] ! null) Line 331: { Line 332: category NVarChar.Parse(Request.QueryString["Category"]); Line 333: public void Submit4 ServerClick(string, category); Line 334: } Source File: D:\Domains\aspalliance.com\dotnetsolutions\testGetS...
    I am trying to convert my VB script to C# here are the line that are the culprit (VIP replies)
    ASPFriends.com 'aspngcs' list
    I am trying to convert my VB script to C# here are the line that are the culprit // in VB the failing line was like this // Dim parameterSearch As SqlParameter New SqlParameter("@Search", SqlDbType.NVarChar, 255) parameterSearch SqlParameter New SqlParameter("@Search", SqlDbType.NVarChar, 255) parameterSearch.Value Request.Params("txtSearch"); myCommand.Parameters.Add(parameterPortalID); Descripti...
    I can't create MDB File with ADO.net (VIP replies)
    microsoft.public.dotnet.languages.vb
    thank
    I completely disagree (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Hi all. I completely disagree with the ASP.NET Event Handling model. This is a final conclusion I came to after weeks of hard work on a quite more realistic web app than the MSPetShop ;) I firmly believe that the Event Handling model is cumbersome, complicated, unefficient and just, well, ...unpredictable! Last but not least, it comes to a complete contrast with the old ASP processing logic. Here ...
    i have to know what button of mouse clicked... (VIP replies)
    microsoft.public.dotnet.languages.csharp
    panel has not Key press event... that's why.. if i have to figure invoking any event out when panel clicked it is so difficult...what button is clicked .... button of Mouse like .. Left, Middle, and Right... how can i distiguish... i have to use Click event because panel has not key events... private void panScreen Click(object sender, System.EventArgs e) { MouseEventArgs mouse (MouseEventArgs)sen...
    I keep getting this error. pl help (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I get the following error. Ihave no idea why? Pl help Server Error in '/WebApplication1' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'EventHander' could not b...
    i know that is a stupid question but i need know. - httpWebRequest (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    private void button5 Click(object sender, System.EventArgs e) { HttpWebRequest request (HttpWebRequest)WebRequest.Create ("http://192.168.0.2/card/default.aspx?card " textBox1.Text); HttpWebResponse response (HttpWebResponse)request.GetResponse(); String ver response.ProtocolVersion.ToString(); StreamReader reader new StreamReader(response.GetResponseStream() ); string str reader.ReadLine(); while...
    I miss C inline and macros / Optimizing functions (VIP replies)
    microsoft.public.dotnet.framework.performance
    Is there any way to mark functions for optimization or is the only way for that to use something like an external preprozessor. Say e.g. i have a verrry simple function like... bool SetValueAndFire(string name, object value, EventHandler handler) { if(base.GetValue(name).Equals(value)) return true; if(!base.SetValue(name, value)) return false; if(handler ! null) handler(this, new EventArgs()); ret...
    I need help on how to build a cache for the following (VIP replies)
    ASPFriends.com 'aspngcache' list
    I am trying to build a cache for caching all records and even groups of records that would not be alter for even a day... even though there could be other querys that would not be cached. I would like to know how to cache the Select ALL records. I put together this code..what major mistakes have I made??? SQLStatement.Text "select * from dwKnowledgeBase "; SqlConnection myConnection new SqlConnect...
    I need help on how to email a Datagrid as a HTML (VIP replies)
    microsoft.public.dotnet.framework.aspnet.datagridcontrol
    I need help on how to email a Datagrid as a HTML So far i get the email message as a text with all the HTML code in it. Thanks Below is my code email message. this is what i have Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create MailMessage instance, set properties, and send Dim Mail As New MailMessage Dim sw As New System.IO.String...
    I need help with a login form too (VIP replies)
    microsoft.public.dotnet.languages.vb
    Hello. I was wondering if someone could help me too with a login form. Upon startup, I have to display a password screen and it should accept a user name and password. User name can be anything non blank. If there is no user name, an appropriate error message must be displayed. All of the following passwords are valid IT160, VB2Manager, BackDoor. No other password is valid. It must allow the user ...
    I'd guess I can't do this (VIP replies)
    microsoft.public.dotnet.languages.vb
    Given a button name Btn 5 and Index 5 I want to do something like dim zz as string Btn ??Index??.Text or given an array of buttons, do: BtnArray(4) Btn ??Index?? Not necessarily that simply, but is there a way I can create the name of a variable at runtime? Thanks
    I'm wondering about the .NET event model (VIP replies)
    microsoft.public.dotnet.framework
    I've been wondering about the proper way of doing events in .net! This is what I have right now: When an event is used by more than one class, you put it in the namespace, set the sender to object, and MyEventArgs e. When an event is only used by one class, you put it inside that class, set the sender to the class type, and MyEventArgs e. namespace Foobar { public delegate void FoobyEventHandler(o...
    ID of a newly created record (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hi, I'm trying to get the ID of a newly created record into a variable, so I can display it in a Label or something after being created. I know you can use @@identity in the sql statement, but I just can't seem to get it to go. Any help appreciated, Glyn Williams Here is my code: Public Sub addBike(Sender As Object, E As EventArgs) Dim myCommand As new SqlCommand() Dim myConnection As New SqlConne...
    IDE crashing (VIP replies)
    microsoft.public.vsnet.ide
    I am using Visual Studio.Net 2003 and have created a form that crashes the IDE EVERY TIME ; ). All I have to do is go anywhere into a procedure, type this. At the "dot", intellisense appears (as usual). When I use Tab, or click on an item in the list, I get an error about the IDE closing, save/send a bug report, etc. Any ideas? OFFENDING CODE using System; using System.Drawing; using System.Collec...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com