页面加载执行速度很快 [英] page load execution which will be fast

查看:67
本文介绍了页面加载执行速度很快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


如果我有一个aspx页面,如果我在aspx和aspx.cs上写页面加载..........哪个页面加载一个将是执行,在aspx或后面的代码中将首先执行,为什么?

hi
if i had an aspx page and if i write pageload on aspx and also in aspx.cs..........which pageload one will be executed ,in aspx or in the code behind will be executed first and why?

推荐答案

你只能有一个,他们将执行相同的操作。他们最终以相同的方式编译。我更喜欢代码隐藏文件中的代码,但您不必这样做。
You can only have one and they will execute the same. They end up getting compiled the same way. I prefer code in codebehind files but you don't have to.


这篇关于页面加载执行速度很快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆