Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to fire OnTextChanged in Submit method?
Message
From
29/12/2008 16:38:59
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01370003
Message ID:
01370006
Views:
16
This message has been marked as the solution to the initial question of the thread.
>I have a textbox that fires when user changes the entry. The OnTextChanged method calls database and validates that the entry exist in the database. However, the user may not change the default entry in this text box (the text box gets a default entry from a cookie) and simply click on Submit. I need to call this OnTextChanged method in the Submit method. The following is the top line of the method:
>
>
>public void txtCostCenter_TextChanged(object sender, System.EventArgs e)
>
>
>In order to call this method in the Submit I need to pass the parameters (that I don't even use). How can I pass some dummy parameters that would satisfy the compiler in terms of type of parameters?
txtCostCenter_TextChanged(new object(),new EventArgs());
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform