asp.net页面缓存问题

yanning9090 2010-01-20 05:30:53
各位,我有这样一个问题哦,我在调用存储过程的时候,没注意将参数CommandType设置为Text. 找到错误后改正过来
结果发现,CommandType参数还是Text。郁闷死我了
...全文
117 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
jenny0810 2010-01-21
  • 打赏
  • 举报
回复
没遇到过这种问题 一般编译一下就好了
yanning9090 2010-01-21
  • 打赏
  • 举报
回复
项目重新生成 N 多遍了 楞是不明白 为什么还这样
cfvgodot 2010-01-21
  • 打赏
  • 举报
回复
[Quote=引用 17 楼 yanning9090 的回复:]
哎  就是每次编译都成功 还会出现这个问题啊~ 所有觉得特郁闷
[/Quote]

那你就别编译了 整个项目重新生成!再不行就砸了电脑
yanning9090 2010-01-21
  • 打赏
  • 举报
回复
哎 就是每次编译都成功 还会出现这个问题啊~ 所有觉得特郁闷
cfvgodot 2010-01-21
  • 打赏
  • 举报
回复
[Quote=引用 14 楼 yanning9090 的回复:]
而且会出现一个对话框说:
The source file is defferent from when the module was built.Would you like the debugger to use it anyway?
不论我选什么都是老样子!
[/Quote]

恩,你把这个对话框翻译一下!
cfvgodot 2010-01-21
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 sp1234 的回复:]
跟你的标题有什么联系?
[/Quote]
你可以选择按照标题来给他回答么!!!


楼主这个问题太神奇了,大家都告诉你再编译一次,要是编译成功了还这样,你就把电脑砸了狂喷微软吧!!!!

yanning9090 2010-01-21
  • 打赏
  • 举报
回复
而且会出现一个对话框说:
The source file is defferent from when the module was built.Would you like the debugger to use it anyway?
不论我选什么都是老样子!
tkscascor 2010-01-21
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 sp1234 的回复:]
跟你的标题有什么联系?
[/Quote]
.
zhulong1111 2010-01-21
  • 打赏
  • 举报
回复
mark
yanning9090 2010-01-21
  • 打赏
  • 举报
回复
我个人觉得会不会是缓存的问题啊
  • 打赏
  • 举报
回复
跟你的标题有什么联系?
yanning9090 2010-01-21
  • 打赏
  • 举报
回复
public static int ExecuteNonQuery(string connectionString, CommandType cmdType, string cmdText, params OracleParameter[] commandParameters)
{
// Create a new Oracle command
OracleCommand cmd = new OracleCommand();

//Create a connection
using (OracleConnection connection = new OracleConnection(connectionString))
{

//Prepare the command
PrepareCommand(cmd, connection, null, cmdType, cmdText, commandParameters);

//Execute the command
int val = cmd.ExecuteNonQuery();
cmd.Parameters.Clear();
return val;
}
}


public int UpdateCustomerSiteNo(int id,string siteno)
{
OracleParameter[] opp = new OracleParameter[] {
new OracleParameter("i_id",OracleType.Number),
new OracleParameter("i_site_no",OracleType.VarChar,30),
new OracleParameter("i_flag",OracleType.Number)
};
opp[0].Value = id;
opp[1].Value = siteno;
opp[2].Direction = ParameterDirection.Output;

OracleHelper.ExecuteNonQuery(OracleHelper.ConnectionStringDatabaseCMD, CommandType.StoredProcedure, "Update_Customer_SiteNo", opp);
return Convert.ToInt32(opp[2].Value);
}

UpdateCustomerSiteNo传入的是StoredProcedure,结果OracleHelper.ExecuteNonQuery这边接收的是Text
wuyq11 2010-01-20
  • 打赏
  • 举报
回复
贴出代码看看
chen_ya_ping 2010-01-20
  • 打赏
  • 举报
回复
什么问题,楼主
z415353144 2010-01-20
  • 打赏
  • 举报
回复
cmd.CommandType = CommandType.StoredProcedure;
重新生成
丰云 2010-01-20
  • 打赏
  • 举报
回复
清理你的IE吧,我也经常遇到奇怪的问题
yanning9090 2010-01-20
  • 打赏
  • 举报
回复
我重现编译了 通过单步调试才看到传过来的CommandType是Text 不是StoredProcedure
小_虎 2010-01-20
  • 打赏
  • 举报
回复
it's impossible.

懂得单步调试
staywithc 2010-01-20
  • 打赏
  • 举报
回复
没明白你要问什么
  • 打赏
  • 举报
回复
你重新编译了么

62,264

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧