下拉列表问题 [英] A dropdownlist problem

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

问题描述

大家好,

我有一个购买物品的aspx页面。

它包含4个字段..

1.purchase id(文本框)

2.product id(下拉列表)

3.dateofpurchase(文本框)

4.购买的物品数量(文本框)


如果产品ID不可用,页面中有一个按钮可将控件重定向到另一个页面以输入新的产品详细信息...

在页面中我必须提供新产品的产品ID ..以及有关新产品的其他详细信息。


输入所有关于产品的详细信息后我必须单击一个按钮,将控件重定向到上一页(购买)。

当我加载到购买页面时,如果将新产品作为所选项目,
i需要获取产品ID ..


请帮帮我......


问候,

Mathew

解决方案


大家好,

我有一个购买物品的aspx页面。

它包含4个字段..

1 .purchase id(文本框)

2.product id(下拉列表)

3.dateofpurchase(文本框)

4.购买的物品数量(文本框)


如果产品ID不可用,页面中有一个按钮可将控件重定向到另一个页面以输入新的产品详细信息......


在页面中我必须提供新产品的产品ID ..以及有关新产品的其他详细信息。


输入产品的所有详细信息后我必须单击一个按钮,将控件重定向到上一页(购买)。

当我加载到购买页面时,如果将新产品作为所选项目,
i需要获取产品ID ..


请帮帮我......


问候,

Mathew



Mathew,


你需要记住页面之间所选项目的内容。



这意味着你要去必须将产品ID存储在服务器上或Cookie或隐藏字段中的某处。


如果将此值存储在服务器上,您将使用Session ...它很简单,让你记住表格之间的这些信息。


查看会话:如何在网页之间传递信息以获取更多信息。


干杯!


-Frinny



Hi Mathew ,


您将需要记住页面之间所选项目的内容。



这意味着你将不得不将产品ID存储在服务器或Cookie或隐藏字段或其他地方。


如果你将这个值存储在服务器上使用Session ...这很简单,让你记住表格之间的这些信息。


查看会话:如何在网页之间传递信息以获取更多信息。


干杯!


-Frinny



嗨Frinny,


我借助于产品ID的价值会话..我需要在添加新产品后立即在下拉列表中显示该值作为选定项目....


请帮助我...


问候,

Mathew


<块引用>


嗨Frinny,


我在Session的帮助下传递了产品ID的值..我需要显示其中的值添加新产品后,下拉列表作为选定项目....


请帮助我...


问候,

Mathew



试试这个:

展开 | 选择 | 换行 | 行号


Hi all,
I am having an aspx page to purchase an item.
it contains 4 fields..
1.purchase id(textbox)
2.product id(dropdownlist)
3.dateofpurchase(textbox)
4.number of items purchased(textbox)

if the product id is not available, there is a button in the page to redirect the control to another page to enter the new product details...

in tht page i have to give product id for the new product.. and other details about new product.

After entering all the details about a product i have to click on a button which redirects the control to the previous page(purchase).

i need to get the product id if the new product as the selected item when i load into the purchase page..

Please help me...

regards,
Mathew

解决方案

Hi all,
I am having an aspx page to purchase an item.
it contains 4 fields..
1.purchase id(textbox)
2.product id(dropdownlist)
3.dateofpurchase(textbox)
4.number of items purchased(textbox)

if the product id is not available, there is a button in the page to redirect the control to another page to enter the new product details...

in tht page i have to give product id for the new product.. and other details about new product.

After entering all the details about a product i have to click on a button which redirects the control to the previous page(purchase).

i need to get the product id if the new product as the selected item when i load into the purchase page..

Please help me...

regards,
Mathew

Hi Mathew ,

You''re going to need to remember what the selected item was between the pages.


This means that you''re going to have to store the productID somewhere either on the Server or in a Cookie or Hidden field or something.

If you store this value on the server you''d be using Session...it''s pretty easy and will let you remember this information between forms.

Check out Sessions: How to pass information between web pages for more information.

Cheers!

-Frinny


Hi Mathew ,

You''re going to need to remember what the selected item was between the pages.


This means that you''re going to have to store the productID somewhere either on the Server or in a Cookie or Hidden field or something.

If you store this value on the server you''d be using Session...it''s pretty easy and will let you remember this information between forms.

Check out Sessions: How to pass information between web pages for more information.

Cheers!

-Frinny

Hi Frinny,

I passed the value of Product Id with the help of Session.. i need to display tht value in the dropdown list as a selected item just after a new product is added....

Please help me...

Regards,
Mathew


Hi Frinny,

I passed the value of Product Id with the help of Session.. i need to display tht value in the dropdown list as a selected item just after a new product is added....

Please help me...

Regards,
Mathew


Try this:

Expand|Select|Wrap|Line Numbers


这篇关于下拉列表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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