我可以在一个页面上有两个查询字符串 [英] can i have two query strings on a single page

查看:68
本文介绍了我可以在一个页面上有两个查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在querystring中分配product_name,并希望在任何想法后面的代码中使用product_id

i want to assign product_name in querystring and want to use product_id at code behind any idea

推荐答案

查询字符串与ASP.NET页面无关。您可以在同一页面上使用不同的查询字符串(不同的连接字符串,不同的数据库等),也可以在不同的页面上使你的问题纯粹是人为的,实际上根本就不存在。从这个意义上说,它无法解决,没有什么可以解决的。



想一想关注点分离:http://en.wikipedia.org/wiki/Separation_of_concerns [ ^ ]。



-SA
Query strings have nothing to do with ASP.NET pages. You can use different query strings (different connection strings, different databases, etc.) on the same page or same one on different pages. Your problem is purely artificial, in reality it simply does not exist. In this sense, it cannot be "resolved", there is nothing to resolve.

Think of separation of concerns: http://en.wikipedia.org/wiki/Separation_of_concerns[^].

—SA


这篇关于我可以在一个页面上有两个查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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