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
    ASP.NET control problem (path reference) (VIP replies)
    ASPFriends.com 'aspngclient' list
    Moved from [aspngfreeforall] to [aspngclient] by Tim Musschoot Tim.musschoot@rug.ac.be I have an ASP.NET user control that includes some javascript. The control file (ascx) and javascript file (.js) are both in the same path. However, when I have an ASPX page in a different directory that uses the control, the javascript doesn't get referenced properly (I'm guessing that the control is trying to l...
    ASP.Net cookie -> ASP -> ASP.Net (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I'm having problems with cookies from asp.net to asp back to asp.net. It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net won't have anything to do with it. Can someone please help! The code below, going from aspx to aspx, works great the cookie as expected goes from qwerty to zxcvb and back. As soon as you hit the asp page, the cookie goes to...
    ASP.NET cookie problem (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Hi, I'm trying to use Cookies to store authentication data for my web site... my problem is that when (in global.asax, Session Start) I try to read to see whether the cookie has been written, I get a "Value null was found where an instance of an object was required." The code I'm using is: Line 5: Sub Session Start(Sender As Object, E As EventArgs) Line 6: Line 7: If Request.Cookies("UserEmail").V...
    ASP.Net DataGrid Sort event problems (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I am having a problem with the Sort event on a datagrid. Here's the situation. I have a SQL stored procedure that has numerous filters that the user can select. They can also sort on various columns in both directions, which I'm using the DataGrid SortCommand for. The problem that I'm running into is that the PostBack Sort event doesn't fire unless the DataGrid is bound to a valid Data Source on P...
    ASP.NET Datagrid sorting (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I want my gird to sort only the items on the current page when I click on a column header. I wrote a little test app, but when I sort it pulls in items from other pages and places them on the current page. i.e. If I have: IntegerValue StringValue CurrencyValue 0 Item 0 0 1 Item 1 1.23 then sort I will get: IntegerValue StringValue CurrencyValue 8 Item 8 9.84 7 Item 7 8.61 and what I want is: Integ...
    ASP.net DataSet WriteXml error in C# (VIP replies)
    microsoft.public.dotnet.xml
    mydataset.WriteXml(strPath "/my.xml"); produces this error: [ArgumentException: URI formats are not supported.] System.IO.Path.GetFullPathInternal(String path) 270 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) 233 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess acc...
    ASP.Net Editing Textbox (VIP replies)
    microsoft.public.dotnet.languages.csharp
    For various reasons, I have had to produce a quick (!) page to edit one column of data in a database with ASP.net. With this being my first foray into ASP.net, I apoligise for any basic erros I have made. The main problem is when setting up an ASP.net datagrid, which I can edit the single value of a specific column. I have wired up the update and edit methods to change the current edit row. I work...
    ASP.NET error in statement "myDataReader.Read()" called in SubmitButn_Click routine (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    ERROR FOR YOUR REFERENCE . THE ACTUAL CODE IS LISTED BELOW : Server Error in '/' 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: BC30451: The name 'myDataReader' is not declared. Source Error: Line...
    ASP.NET Exception on hosted server (VIP replies)
    microsoft.public.dotnet.framework.aspnet.security
    When I run my ASP.NET on my computer it works fine, even in medium trust which is what mt webhost uses. However on the webhost it generates this exception SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version 1.0.5000.0, Culture neutral, PublicKeyToken b77a5c561934e089 failed.] System.Security.CodeAccessSecurityEngine.CheckHelper(Pe...
    ASP.net File name (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Dear all, I am actually trying to get the File name of my ASP.net page. I am using this property of Page class Response.Write(Page.Page) and it gives me the following output: ASP.WebForm2 aspx which I dont need. I need it to be like this: WebForm2.aspx Any help very much appreciated.
    ASP.NET Identity Column Error (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Hello List, below is a method from my Abstraction Layer i.e. DAL: public DataSet GetEmploymentPageRecords(int pageSize, int pageNumber) { //Create all the data objects DataSet ds new DataSet(); SqlConnection conn new SqlConnection(ConfigurationSettings.AppSettings["spadnugDBConnectionString"] ); SqlDataAdapter da new SqlDataAdapter("GetEmploymentPageEntries", conn); da.SelectCommand.CommandType Co...
    ASP.NET Image Upload... Guru needed (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    We're sooo close. When we load the page to upload the image, all of the prms go through except the binary image data. Using SQL server with the data type set to "image". Please help! Thanks John %@ Page Language "vb" debug "true"% %@ Import Namespace "System.Data" % %@ Import Namespace "System.Configuration" % %@ Import Namespace "System.Data.SqlClient" % %@ Import Namespace "System.IO" % Script L...
    ASP.Net Images (VIP replies)
    microsoft.public.dotnet.framework.drawing
    I've had a couple of bugs where I've uploaded an image ( all of this in code ) resized it and saved the resized version to disk. But when the page then trys to display the resized image it is in use by another process. I've cleaned up after myself but still there is some persistance. If I leave it a few minutes the image loads no problem. So whats keeping hold of the image?
    ASP.net Mailling (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    Moved from [aspexchangeoutlook] to [aspngfreeforall] by Charles M. Carroll darthcarroll@asplists.com can anyone please tell me what the below code is AND what is need to run this code? CODE: %@ Page Language "C#" % %@ Import Namespace "System" % %@ Import Namespace "System.Web.Mail" % html head title Mail Message /title script language "C#" runat "server" public void on submit(Object Src, EventArg...
    ASP.NET not running (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    Following is the sample code of my .aspx file %@ Page Language "C#" % Script runat "server" void Page Load(Object sender, EventArgs EvArgs) { Response.Write("Hello World"); } /script THis file resides in wwwroot folder when i run the code by writing http://localhost/Hello1.aspx I get the following error HTTP 500.100 Internal Server Error ASP error Internet Information Services Technical Informatio...
    ASP.NET Oracle problem - please help (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hello colleagues, At this moment we have a real big problem using a .NET application with an Oracle database (v8.1.6). I hope someone has encountered this problem before and is able to help me with it. The problem is that we *Sometimes* get the ORA 24338 error when executing a query. This problem occurs random, sometimes twice a day, sometimes not at all. In the eventlog we get an exception like t...
    asp.net radiobutton doesnt recognize jscript function, but html radiobutton will (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have an asp radiobutton which calls a jscript function with its OnCheckedChanged event. However when the page loads it errors saying that the function doesn't exists. But when I change it from a asp.net radiobutton to an html radiobutton (Input element and type radio) the page loads and all is fine. Below is the asp.net control that can't see the jscript. I've had this problem in the past with o...
    ASP.Net Security Problem (VIP replies)
    microsoft.public.dotnet.framework.aspnet.security
    Hi, I have a problem with permissions with an ASP.Net Application and IIS and SharePoint on Windows 2000 SP4 with .Net Framework 1.1.4322. The SharePoint 2001 SP 2a Portal Server is setup for Internet Access(Extranet Solution). I have a very simple piece of code that uploads a documents to a SPS 2001 SP2a server( see code below ). The code works fine on the server when the Virtual Directory I crea...
    ASP.NET Server.ScriptTimeout being ignored (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I've created an aspx page that should time out every time it is executed, yet it never does. It seems as though the value of Server.ScriptTimeout is just being ignored by asp.net I've also set executionTimeout in Machine.Config and Web.Config to "3", which is also being ignored. I've tried rebooting, iisreseting, begging, and pleading. Can someone please tell me what I'm doing wrong? WebForm1.aspx...
    ASP.NET with ADirectory role based authentication (VIP replies)
    microsoft.public.dotnet.framework.aspnet.security
    Hi Everyone, I have some Questions relating to Active Directory and Asp.net. 1)I have created a role based authorisation using SQL Server but i want to use Active Directory as a datastore now? 2)Now if i want to allow the user to login credentials against the Active directory and then implementing the roles i have in my Database would i need to have roles in my Active Directory? 3)What i really wa...
    asp.net, ado.net & c# question (VIP replies)
    ASPFriends.com 'ngfx-sqlclient' list
    Moved from [aspngdata] to [ngfx sqlclient] by Charles M. Carroll charlesmarkcarroll@yahoo.com hello, i'm very new to .net, so please bear with me. i'm getting the following error message: "Compiler Error Message: CS0246: The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference?)" the code is below (i indicated the line where the erro...
    ASP.NET, DataGrid & array. (VIP replies)
    microsoft.public.dotnet.languages.csharp
    Hello! I'm trying to bind an array of custom objects to a ASP.NET DataGrid: private void Page Load(object sender, System.EventArgs e) { DataGrid1 new DataGrid(); DataGrid1.DataSource getAllShow(); Label1.Text getAllShow().Length; //This is OK! //Controls.Add(DataGrid1); } The method getAllShow() returns an array of custom objects from a DB. However Label1 shows a positive number ( 2), the datagrid...
    ASP.NET: Error "Login failed for user 'sa'." (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Dear all, When running the program, I recieved the following error "Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'sa'." In web.config file, the connection setting is below: " appSettings add key "PubsString" value "workstation id 'sha tongl xp1';uid sa;pwd '';server localhost;initial catalog 'Pubs'" /add /appSettings " Any help will be highly appreciated. Tony
    asp:Button OnClick inaccessible (VIP replies)
    ASPFriends.com 'aspngfreeforall' list
    When I try to access the "OnClick" property of a programatically made button, I get the error: 'System.Web.UI.WebControls.Button.OnClick(System.EventArgs)' is inaccessible due to its protection level CandidateVoteButtons.Controls.Clear(); for (int i 0; i n 1; i ) { Button b new Button(); b.Text ((TextBox)CandidateInputBoxes.Controls[i*2]).Text; b.ID "Button" (i).ToString(); b.OnClick "ProcessButto...
    asp:LinkButton (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webcontrols
    I have two Linkbuttons on my form and I am invoking the same method on OnClick event for each linkbutton. My question is how do I get the id of the linkbutton inside the method to determine which linkbutton was clicked? I checked the methods and properties of System.Object but could not figure out how to get the id value of the object invoking the event.
    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