使用querrystring插入formview [英] formview insert using querrystring

查看:115
本文介绍了使用querrystring插入formview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在要使用查询字符串传递给页面的表中插入2个值.
我正在使用formview控件.
因此,这些查询字符串值需要绑定到2个ID.

是我想使用oninserting事件来修改文本框的一种方式来访问文本框,但是我99%的确确保了它的愚蠢.:\

I want to insert 2 values in a table which i am passing to the page using query string.
i am using the formview control.
so these query string values need to be bound to the 2 ids.

is der a way to acess the textboxes i was thinking of using the oninserting event to modify the text boxes but i m 99%sure its stupid.:\

Can you suggest how smart ppl do it?

推荐答案

总体而言,这是一个非常糟糕的主意,因为它违背了Web基础知识.如果要使用查询字符串传递和存储这些值,则每次请求该网页时都会这样做.如果用户将该网页添加为书签,它将每次都更新值,而无需用户理解为什么每次都将其改回.

请查看此链接,以获取有关GET和POST之间的区别的更多信息:
http://www.cs.tut.fi/~jkorpela/forms/methods.html [^ ]

祝你好运!
That would be a very bad idea overall because it goes against the web basics. If you would pass and store these values using a query string, it would do so every time the webpage is requested. If the user would bookmark that web page it would update the values every time without the user understanding why they are changed back every time.

Have a look at this link for more info on the difference between GET and POST:
http://www.cs.tut.fi/~jkorpela/forms/methods.html[^]

Good luck!


这篇关于使用querrystring插入formview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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