How do i store current time in database using javascript in asp.net

I have put Label outside the update panel ,so that if user get any message related to error or confirmation it get seen on top right side without Loading the whole page, but label is not getting any text , when i comment update panel it works but it loads whole page that i don't won't . So Help-Out . Here is Page Design Code where label is set : ------------------------------------
CSS i used for Label . ------------------------ .mess{ z-index:3; -o-box-shadow:1px 1px 1px 1px #322e2e; -moz-box-shadow:1px 1px 1px 1px #322e2e; -webkit-box-shadow:1px 1px 1px 1px #322e2e; box-shadow:1px 1px 1px 1px #322e2e; float:right; padding:10px; border-radius:25px 25px 25px 0; background-color:#5db620; color:#f1eded; margin:auto 5% auto auto; display:none; text-wrap:normal; } Javascript i used for label : this script i used when i commented the update panel , so when page is loaded & if label get any text it disappear after 10 sec . ------------------------------ C# code-behind used for label :Here i changing the css by using attribute [disply:inline] so whatever the text in label can be seen on button click . --------------------------------- protected void b1_Click(object sender, EventArgs e) { se.Attributes.Add("style", "display:inline"); se.Text = "Ok"; }
You don't need to include your CSS in this particular ASP.NET specific question.

以上就是How do i store current time in database using javascript in asp.net的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏