The Problem is that I cannot use only eventhandler delegate. I am using Infragistics controls and For example i cannot add same function to Button.Click and Infragistics.Win.UltraWinEditors.UltraTextEditor.EditorButtonClick because it has type EditorButtonEventHandler. Maybe there is any way to handle such event using reflection?
rull
Posts
-
Capturing Event -
Capturing EventIs there is any way to handle events of different types by one function. For example I want to handle events of EventHandler type and my custom events with single function that have different number of parameters or have no parameters.
-
ReturnURL problemHi all. I have a such problem with ReturnURl parameter when using custom authentication in web site.
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, false);
returns me not to same page from which authentication was requested. The problem is in get parameters. I have page, for example: default.aspx?cnt=1&cat=34 . So ReturnUrl looks like : LoginPage.aspx?ReturnUrl=/default.aspx?cnt=1&cat=34 and &cat=34 is not a value of ReturnUrl - it is separated parameter in this string - so it redirect to default.aspx?cnt=1 How i cat solve this problem? Thanks Rull. -
save datagridIn your code you always write
testnodes.xml
file getting info fromnodes.xml
oncomboBox1_SelectedIndexChanged
. So you read data from one file, select, and than write to another file?(button1_Click
). -
save datagrid -
save datagridCall dataGrid1.DataBind() function after setting DataSource property.
-
SMS feature in asp.net websiteYou can find and use some WebService.
-
TextArea ScrollbarIs it possible to change textarea scrollbar width? Ruslan.
-
add Xml in C#Example from MSDN: using System; using System.IO; using System.Xml; public class Sample { public static void Main() { XmlDocument doc = new XmlDocument(); doc.LoadXml("" + "Pride And Prejudice" + ""); XmlNode root = doc.DocumentElement; //Create a new node. XmlElement elem = doc.CreateElement("price"); elem.InnerText="19.95"; //Add the node to the document. root.AppendChild(elem); Console.WriteLine("Display the modified XML..."); doc.Save(Console.Out); } }
-
Does anyone know how to use web user controls and placeholders?You can write: WebUserControl1 ctrl = (WebUserControl1)LoadControl("WebUserControl1.ascx"); PlaceHolder1.Controls.Add(ctrl); or WebUserControl1 ctrl = (WebUserControl1)LoadControl("WebUserControl1.ascx"); Controls.Add(ctrl);
-
Email Existing CheckHow I Can check existence of email on server using an Application or standart Windows programs? Ruslan