使用Gridview在刷新时遇到问题 [英] Using Gridview having problem in refreshing
问题描述
大家好,
我正在开发一个网络应用程序,我有一个gridview。 gridview不断刷新.Gridview有一列有文本框,还有一列有按钮。
现在我的问题是,我可以写入文本框,因为gridview在updatepanel.but as gridview不断更新,所以当我点击gridview按钮时会抛出一个错误,因为
Sys.WebForms.PageRequestManagerServerErrorException:$时出现未知错误b $ b在服务器上处理请求。从服务器返回的状态代码是:12029
请您需要。我正在等待答案以及任何其他人可以建议我的其他控件。
谢谢
请查看以下几点
1)检查时间web.config中的值out
< authentication mode = 表单 >
< 表格 loginUrl = Users_Login.aspx 超时 = 555555555 / >
< / authentication >
2)你也可以点击确认如果用户存在身份验证,则为按钮。就像你仍然得到的被认证是真的
3)此外你可以写一些像下面的代码来检查错误的原因究竟是什么
受保护的 Sub ScriptManager1_AsyncPostBackError( ByVal sender 作为 对象, ByVal e As Microsoft.Web.UI.AsyncPostBackErrorEventArgs)句柄 ScriptManager1.AsyncPostBackError
Dim conn As 新 SqlConnection
尝试
conn.ConnectionString = ConfigurationManager.ConnectionStrings( ApplicationDatabase 温泉n>)。ConnectionString
Dim comm As SqlCommand = conn.CreateCommand
comm .CommandText = AjaxRecordError
comm.CommandType = CommandType.StoredProcedure
comm .Parameters.AddWithValue( exMessage,e.Exception.Message)
comm.Parameters .AddWithValue( exStack,e.Exception.StackTrace)
comm.Parameters.AddWithValue ( exSource,e.Exception.Source)
comm.Parameters.AddWithValue(< span class =code-string> exServerName,Server.MachineName)
comm.Parameters.AddWithValue( date,DateTime.UtcNow)
comm.Parameters.AddWithValue( ip,Request.UserHostAddress)
conn.Open()
comm.ExecuteNonQuery()
Catch ex As 异常
最后
conn.Close()
结束 尝试
如果您发现结果,请告诉我们任何其他可能的解决方案......
修复链接
ASP.NET AJAX 1.0 RTM Bug [ ^ ]
编辑
基于错误代码12029
12029 ERROR_INTERNET_CANNOT_CONNECT
尝试连接服务器失败。请检查您的设置(连接,防火墙等)
或者我认为你是超时。所以在web.config中增加脚本超时的值
嗨!
我不会说英语。我是巴西人。
我删除了这个:'
我的城市:Criciúma。
我删除了'和我的城市:Criciuma。
不再ú。
错误12029.删除'或其他。
好吗?
Hi All,
I m developing a web application where i have one gridview. That gridview is continuously refreshes.Gridview has one column having textbox and also one column having button.
Now my problem is, i can write inside textbox as the gridview is in updatepanel.but as gridview continuously refreshing, so when i click on button of gridview it throws an error as under
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12029
Please be needful.I am waiting for the answer and also if any other control that anyone can suggest me.
Thanks解决方案Can you please check below points
1) check the time out value in web.config
<authentication mode="Forms"> <forms loginUrl="Users_Login.aspx" timeout="555555555"/> </authentication>
2) can you also verify on clicking on the button if authentication exists for the user. Like are you still getting is authenticated as true
3) Further you can write some thing like below code to check what exactly is the reason for the error
Protected Sub ScriptManager1_AsyncPostBackError(ByVal sender As Object, ByVal e As Microsoft.Web.UI.AsyncPostBackErrorEventArgs) Handles ScriptManager1.AsyncPostBackError Dim conn As New SqlConnection Try conn.ConnectionString = ConfigurationManager.ConnectionStrings("ApplicationDatabase").ConnectionString Dim comm As SqlCommand = conn.CreateCommand comm.CommandText = "AjaxRecordError" comm.CommandType = CommandType.StoredProcedure comm.Parameters.AddWithValue("exMessage", e.Exception.Message) comm.Parameters.AddWithValue("exStack", e.Exception.StackTrace) comm.Parameters.AddWithValue("exSource", e.Exception.Source) comm.Parameters.AddWithValue("exServerName", Server.MachineName) comm.Parameters.AddWithValue("date", DateTime.UtcNow) comm.Parameters.AddWithValue("ip", Request.UserHostAddress) conn.Open() comm.ExecuteNonQuery() Catch ex As Exception Finally conn.Close() End Try
Please let us know the result or in case you find any other possible solution as well....
Fix link
ASP.NET AJAX 1.0 RTM Bug[^]
EDIT
Based on the error code 12029
12029 ERROR_INTERNET_CANNOT_CONNECT
The attempt to connect to the server failed.So check your settings (connection ,firewall, etc.,)
Or I think you are getting timeout. So increase the the value for script time out in web.config
Hi!
I don''t speak English. I''m brazilian.
I removed this: ´
My city: Criciúma.
I removed ´ and my city: Criciuma.
No more ú.
For error 12029. Remove ´ or other.
Ok?
这篇关于使用Gridview在刷新时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!