I always feel that these two projects have no motivation to do the exercises? Is it because the project's repeated use of the gridview display data makes me feel bored and not challenging, or is it because I cannot think of more efficient data applications ??? In short, it is good to practice more. I hope to try more interesting new things in the boring task next time .....
Archiving Problems and Solutions
1. After an error occurs, LINQ will not be automatically released, and the system will always prompt you to insert an existing object.
2. Thin line in the middle of two layer connections
<Div> </div>
Adaptive problem of Div height based on content
Height: 100%
How to center DIV in CSS (vertical horizontal center)
Http://www.7say.com/article.asp? Id = 184
3. fileupload conflicts with the submit panel.
Commandname conflicts with the return page judgment (the comman event takes effect only when the GV data source is bound at one time during the return)
4. Using response. Write ("") to transmit a script <SCRIPT> file will affect the CSS architecture.
Scriptmanager. registerstartupscript (this. butinsert, this. GetType (), "OK ",
"Alert ('added successfully');", true );
5. Automatically refresh the page
<Script language = JavaScript> window. Location. href = Document. url;
</SCRIPT> ");
Response. addheader ("refresh", "0 ");
Response. Redirect (request. url. tostring ());
6. my97datepicker calendar plug-in
<Script language = "JavaScript" type = "text/JavaScript" src = "../my97datepicker/wdatepicker. js"> </SCRIPT>
Onfocus = "New wdatepicker (this, '% Y-% m-% d % H: % m: % s', true, 'default ')"
7. The expressions required for modifying the foreign key of an object in LINQ (strange ORM ideology)
Lambda is used in method-based LINQ queries as a parameter for standard query operator methods such as where and where.
Old. xxx = dB. roleinfo. Single (P => P. roleid = (INT) roleinfotype. Super administrator );
How can I modify columns with foreign key constraints by using LINQ to SQL?
Http://forums.microsoft.com/china/ShowPost.aspx? Postid = 4084266 & siteid = 15
New orcas language features: lambda expressions
Http://blog.joycode.com/scottgu/archive/2007/04/09/100744.aspx
Lambda expressions (C # programming guide)
Http://msdn.microsoft.com/zh-cn/library/bb397687.aspx
8. ASP. NET user creden8
String strredirect = request. querystring ["returnurl"];
System. Web. Security. formsauthentication. setauthcookie (instance. roleinfo. rolename, true );
If (strredirect! = NULL)
Response. Redirect (strredirect );
System. Web. Security. formsauthentication. signout ();
Response. Redirect ("~ /Default. aspx ");
<Authentication mode = "forms">
<Forms loginurl = "~ /Default. aspx "timeout =" 60 "> </Forms>
</Authentication>
<System. Web>
<Authorization>
<Allow users = "Super administrator, VIP member, common member"/>
<Deny users = "*"/>
</Authorization>
</System. Web>
Authentication in ASP. NET:. Net security guidance
Http://www.iwms.net/n809c12.aspx
9. Enum Enumeration
When defining enumeration, you can directly use Chinese characters. Then, you can use the enumeration static method to read enumeration Chinese names enum. getname (typeof (xxxxtype), (INT) objvaule )??
We recommend that you use database storage if you want to consider multiple languages.
10. Merge Cells
Tablecell [] tempcells = new tablecell [GV. Rows [0]. cells. Count-1];
// Traverse rows
For (INT r = 0; r <GV. Rows. Count; r ++)
{
// Traverse cells in the row
For (INT I = 0; I <tempcells. length; I ++)
{
If (tempcells [I]! = NULL & GV. Rows [R]. cells [I]. Text. Equals (tempcells [I]. Text ))
{
Tempcells [I]. rowspan ++;
GV. Rows [R]. cells [I]. Visible = false;
}
Else
{
Tempcells [I] = GV. Rows [R]. cells [I];
Tempcells [I]. rowspan = 1;
}
}
}
11. Paging discussion of LINQ
Http://www.cnblogs.com/9527/archive/2007/07/05/807451.html
Big Data paging, delayed execution, and logging in dlinq to SQL
Http://www.mikecat.net/showtopic-36.aspx
How hard is it to update data in vs2008's LINQ?
Http://dev.yesky.com/msdn/319/3499319.shtml
LINQ experience (9) -- insert, update, and delete operations in a LINQ to SQL statement
Http://www.cnblogs.com/lyj/archive/2008/01/28/1056133.html
12. js mode window
Returnvalue
Http://dev.csdn.net/develop/article/47/47565.shtm
Web page mode Dialog Box Using ajax
Http://www.javaeye.com/topic/39062
Example: Special Effects on images in the signature bar
Http://bbs.duowan.com/viewthread.php? Tid = 12573003 ###
13. You must manually specify the write permission for the XML file.
SYS. webforms. pagerequestmanagerservererrorexception: Error cause