摘要:
1.最简单的Response.Write("<script>alert('查询语句执行出错!');window.location.href=DisplayData.aspx</script>");2.一般后台弹出提示框,都是用Page.RegisterStartupScript,不用Response.Write的Page.RegisterStartupScript("msg", "<script>alert('查询语句执行出错!');window.location.href=& 阅读全文
摘要:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundField DataField="ID" HeaderText="ID" /> <asp:BoundField DataField="Name" HeaderText="Name" /> <asp:TemplateFie 阅读全文
摘要:
使用高版本的SDK后再导入以前用低版本的project时,会遇到一些兼容性的问题。(1)Unable to resolve target 'android-5'因为本机中现在使用的是2.1的SDK,API的版本是7;而导入的工程使用的是2.0开发的,其API版本是5。需要将default.properties中的target=android-5改为target=android-7就好了。但要注意,也要同步将AndroidManifest.xml中的<uses-sdk android:minSdkVersion="5" />改为<uses-s 阅读全文
摘要:
1 /** 2 * 全屏设置 3 */ 4 private void HideStatusBase() 5 { 6 requestWindowFeature(Window.FEATURE_NO_TITLE); 7 int flag=WindowManager.LayoutParams.FLAG_FULLSCREEN; 8 Window myWindow=this.getWindow(); 9 myWindow.setFlags(flag,flag);10 }这段代码可以将屏幕全... 阅读全文
摘要:
这是一段很简单的在触摸屏幕时相应的方法,不需要调用,直接写到显示View中即可 /* * 屏幕触摸 * */ public boolean onTouchEvent(MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_DOWN){ //要进行的操作代码开始 Intent intent = new Intent(); intent.setClass(thisActivity.this, com.iowns.****.****Activity.class); fini... 阅读全文