After the webform operation is complete, return to the line positioning on the home page, and webform return to the home page.
1. When a repeater table is bound to a row, a row id (unique id) is assigned, which is the primary key bound to the table.
2. Given a hidden domain
<Input id = "hidID" type = "hidden" runat = "server"/>
3. When you enter the editing page, the unique primary key is successively added to the hidden domain.
4. Add two js
Function levels (){
$ (". Biaoge tr"). eq (1). addClass ("sh ");
}
Function dingwei (){
$ ("#" + $ ("# HidID" (.val()).css ("background", "# CCCCFF ")
}
5. Call js during background Loading
If (! String. IsNullOrEmpty (this. hidID. Value ))
{
Page. ClientScript. RegisterStartupScript (this. GetType (), "", "<script> dingwei (); </script> ");
}
Else
{
Page. ClientScript. RegisterStartupScript (this. GetType (), "", "<script> levels (); </script> ");
}
Embedded WebForm in WinForm for data exchange. Data source: SQL Server 2008
First, can your winfrom program modify the database? If you can modify the settings, you do not need to log on to the webpage.
Secondly, do you write the winfrom program and your web program by yourself? If it is a program written by a person, it is not a problem to log on to the webpage with winfrom. If it is not written by a user, simulated logon is required.
Again, correct a conceptual error. For winfrom or web applications, you only need to perform operations on the same database, that is, modify them synchronously. If your winfrom cannot perform database operations, but you only use webBrowser, you just make a browser and you still need to rely on web applications to modify data.
At last, I figured out the concept and started your programming.
In the aspnet webform, why does the dynamically bound event or control disappear after sending back? How can this problem be solved?
Remember that the difference between the web page mode and the CS mode is that the web page mode is offline and the submitted echo mode
Page. IsPostBack is used to determine whether the page is Echo.
If (! Page. IsPostBack)
{
// Execute the preliminary code here
}
Else
{
// Generally, you do not need to execute things. However, when you need to modify the echo content, add something.
}