After the webform operation is complete, return to the line positioning on the home page, and webform return to the home page.

Source: Internet
Author: User

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.
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.