View Complete Post
I have a small question about Button.Click events, namely how can I call a method with some extra arguments?
My code is this:
btn.Click += new RoutedEventHandler(Method);
But I would really like it to be of the following form:
btn.Click += new RoutedEventHandler(Method(x));
That is, having an extra argument. However, this does not work.
How can I create something that has the desired operation?
When i place the button in the website and i click the button,it runs as a full page.But i ant the website to run in the iframe.How do i do that?Because i want to place many button for different uses so i need it to view in iframe instead of a full page
I am having a problem of updating the main form button backcolor property from another class. I have attahced the code. Please tell how can i rectify this problem.
PopUp is another class, in which i want that when ToolStripDropDown closes it change the form button BackColor from Orange to WhiteSmoke.
public partial class PopUp : ToolStripDropDown
protected override void OnClosed(ToolStripDropDownClosedEventArgs e)
Form1 f1 = new Form1();
// f1._pushed = false;
f1.Controls["button1"].BackColor = Color.WhiteSmoke;
It seems that this line works, i checked it using MessageBox it changes the backcolor property but it does not updated to the form displayed on the screen.
Can anyone help me
I want to catch the html button click event on a class file including html text box value..
<p><input name="" type="text" value="Enter Name*"/></p><p><input name="" type="text" value="Enter Email*"/></p>
<p> <input name="Input" type="submit" value="Submit" /></p>
plz tell me how can i do this..
Hi!! I need your help again.
I have a gridview with a button in the first column of the footer row and some controls (textbox, dropdowlist...) in the rest of the columns. I want to click that button and insert into a database table using an stored procedure the text properties of the controls in the other columns.
I don't know what's wrong... could you help me or post me a link to read it??
I'm setting the insert command with my stored procedure, I'm setting the storedprocedure as the insertcommandtype, I'm able to load the controls with correct values, but finally when I click the insert button that's not work!!!!