为什么LoadPostData 执行不了, why the LoadPostData method was not be implement
2008-04-22 18:37
423 查看
发现
没有post回来的没有机会执行。
多个name相同的也不行, More input element have one name ( the same name)
哪为什么radiobutton可以执行到这个方法呢。,but we can see the raidobutton have the same name also
原来是在 page哪边注册了回调事件, because the radiobutton control is register the event on OnPreRender method.
protected override void OnPreRender(EventArgs e)
{
{
this.Page.RegisterRequiresPostBack(this);
}
}
我们也注册一下这个事情就可以了
then we register the event also.
没有post回来的没有机会执行。
多个name相同的也不行, More input element have one name ( the same name)
哪为什么radiobutton可以执行到这个方法呢。,but we can see the raidobutton have the same name also
原来是在 page哪边注册了回调事件, because the radiobutton control is register the event on OnPreRender method.
protected override void OnPreRender(EventArgs e)
{
{
this.Page.RegisterRequiresPostBack(this);
}
}
我们也注册一下这个事情就可以了
then we register the event also.
相关文章推荐
- MYSQL-执行“load data local infile”报错“The used command is not allowed with this MySQL version”
- Which data be post to the server when submitting a form
- The requested URL /get_data.xml was not found on this server.
- [SSMS][Visual Studio] 解決 - Unable to find the requested .Net Framework Data Provider. It may not be installed
- Method XXX was discovered in the .class file but cannot be resolved in the class
- Eclipse:Could not create the view: Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.packageview.P
- "The object cannot be deleted because it was not found in the ObjectStateManager."
- monogame Unable to load DLL 'openal32.dll': The specified module could not be found
- Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made
- DevExpress Exception Solution - The target "X" for the callback could not be found or did not implement ICallbackEventHandler
- mysql load data 到 table--- ERROR 1148 (42000): The used command is not allowed with this MySQL version
- Requested additional data downloads after package installation, but the data could not be downloaded or could not be processed.(Linux Wine)
- ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
- Diagnostics data was not saved to the credential store
- A new session could not be created. (Original error: Requested a new session but one was in progress) (WARNING: The server did not provide any stacktrace information)
- could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
- Why the "volatile" type class should not be used
- fix errors 1088: “Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied” and 1334: “Exception: System.IO.FileLoadException”
- Method Not Allowed / The requested method POST is not allowed for the URL
- [Eclipse问题]A class file was not written. The project may be inconsistent