Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 刷新页面时CSS样式出错_C#_Javascript_Jquery_Html_Css - Fatal编程技术网

C# 刷新页面时CSS样式出错

C# 刷新页面时CSS样式出错,c#,javascript,jquery,html,css,C#,Javascript,Jquery,Html,Css,我有一个本地版本和由IIS托管到服务器上的版本 当我点击链接加载我的页面时,所有的样式都很好,并且支持它的位置: 我选择所有数据并提交运行此C#代码的页面 newRecord.NumberofItems=Convert.ToInt32(totalitems); cPostFunctions测试=新的cPostFunctions(); test.InsertNewRecord(newRecord); //添加消息 响应。写入(“警报(\'Entry Submitted\”);”; Page_En

我有一个本地版本和由IIS托管到服务器上的版本

当我点击链接加载我的页面时,所有的样式都很好,并且支持它的位置:

我选择所有数据并提交运行此C#代码的页面

newRecord.NumberofItems=Convert.ToInt32(totalitems);
cPostFunctions测试=新的cPostFunctions();
test.InsertNewRecord(newRecord);
//添加消息
响应。写入(“警报(\'Entry Submitted\”);”;
Page_EntrySubmitted(null,EventArgs.Empty);
在Page_EntrySubmitted方法中,它所做的只是将文本框、下拉列表和标签设置为NULL

当页面在警报后刷新时,会发生以下情况:

我所有的风格都被穿过去了,但它似乎在延伸一切


这只发生在服务器上,而不是我的本地版本上

我认为当您再次创建页面时,您需要清除以前的html内容。

您可以共享到您的服务器的链接,以便我们试着调试它吗?您可以共享完整的代码。它可能缺少一些css文件
newRecord.NumberofItems = Convert.ToInt32(totalitems);

cPostFunctions test = new cPostFunctions();

test.InsertNewRecord(newRecord);

//Add Message
Response.Write("<script langauge=\"javascript\">alert(\"Entry Submitted\");</script>");

Page_EntrySubmitted(null, EventArgs.Empty);