Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在页面加载时调用 gridview_SelectedIndexChanged 事件?
请指导我我正在使用asp.net c#这可以在页面加载时使用触发方法吗?
你可以:
protected void Page_Load(object sender, EventArgs e) { gridview_SelectedIndexChanged(gridview, null); }