asp.net文本框值发生了变化 [英] asp.net textbox value getting changed

查看:73
本文介绍了asp.net文本框值发生了变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候!!!

我正在为编辑和添加用户创建一个网页。主键是自动编号。在Page load我调用这个函数id_displ()来获取自动编号字段的最大值并将其放入id的文本框中。此文本框仅用于向用户显示
ID值。有2个按钮addstudent和更新。我在底部有一个gridview,显示所有用户。当我单击任何行上的select时,将启用更新。然后来自该行的数据上升到用户字段,我可以在其中修改它们。但
更新无效。但是当我从page_load中删除id_disp()函数时,更新开始工作。但是文本框中没有任何值可以向用户显示id。所以如果有人知道如何同时显示id和更新。

I am creating a webpage for both editing and adding users. The primary key is autonumbered. At Page load I call this function id_displ() to grab the max of the autonumbered field and put it in to the textbox for id. This textbox is used only to display the ID value to the user. There are 2 buttons addstudent and update. I have a gridview at the bottom that displays all the users. When I click select on any row update gets enabled. Then the data from that row goes up to user fields where i can modify them. But update is not working. But when I remove id_disp() function from page_load update starts working. But there won't be any value in the textbox for id to display to user. So if anybody know how to do both display id and update.

推荐答案

我想你应该在正确的论坛上发帖提问。这适用于Project Online。您的问题听起来更像.Net / SharePoint开发

I think you should post your question in the right forum. This is for Project Online. Your questions sounds more like .Net/SharePoint Development

问候,

Markus


这篇关于asp.net文本框值发生了变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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