2013年3月12日 星期二

使用 Div 做訊息框

Good look Commend Div

.Comment
	{
	    width:556px;
	    left:18px;
	    position:absolute;
	    border:2px solid #eaeaea;
	    border-radius: 6px;
	}
	.CommentText
	{
        padding:5px;    
	}
	.CommentArrow
	{
	    background-image:url("http://127.0.0.1:8080/_images/web/smallarrow.gif");
	    background-repeat:no-repeat;
	    width:34px;
	    left:-18px;
	    top:11px;
	    height:51px;
	    position:absolute;
	}
<div class="Comment">
    <div class="CommentArrow" />
    <div class="CommentText">
        Commend Text
    </div>
</div>

Sample

  1. in vb 2010, how do i do this? i want to use linq to connect to the db and also use linq to query it. So i have a form with a gridview. I add a datasource. Now i want to bind the gridview to the db using linq and linq for connection string. But when i configure the gridview to a datasource it automatically configures dataset and connection string. How do i use linq to make the connection?
  2. After that i want to use a linq query and display results in another gridview. How do i do that?
  3. Where do i use the using system.data.linq statement in my app? on the form or in a seperate class?
  4. how to use datacontext for this, where do i write it?New class or on same form? or Partial Class?


沒有留言:

張貼留言