ClientScript.RegisterClientScriptBlock? [英] ClientScript.RegisterClientScriptBlock?
问题描述
在我的Web应用程序时,我上传的视频,然后点击保存按钮,如果视频被上传我写的code显示消息的视频被上传。我的code是如下:
In my web application when i upload a video and click the save button, if the video is uploaded i write the code to display the message video is uploaded. My code is as follows:
ClientScript.RegisterClientScriptBlock(GetType(), "sas", "<script> alert('Inserted successfully');</script>", false);
在警告框出现是带有一个白色背景。我点击确定按钮,在提示框,但该页面不会回previous页它显示相同的空白。
When the alert box appears is comes with a white background. I clicked on ok button in that alert box but the page is not going back to the previous page it is showing the same white space.
你能解决这个问题?如果你不明白,我会解释清楚。
Can you solve the problem.? If you not understand i will explain clearly.
在当地它工作正常,但是当我在网上更新它不工作。
In local it is working fine but when i update in online it is not working.
推荐答案
海斯里达尔,
我找到了答案为您的概率
Hai sridhar, I found an answer for your prob
ClientScript.RegisterClientScriptBlock(GetType(), "sas", "<script> alert('Inserted successfully');</script>", true);
false改为true
change false to true
或尝试这种
ScriptManager.RegisterClientScriptBlock(ursavebuttonID, typeof(LinkButton or button), "sas", "<script> alert('Inserted successfully');</script>", true);
这篇关于ClientScript.RegisterClientScriptBlock?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!