473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Converting to a Masterpage

I have a radioButtonList that works perfectly until I add a masterpage. The original code was:

string temp = Request["WOFound"];

After reading some other posts I tried all of the following but none of them worked.

string temp = WOFound.SelectedIndex.ToString();
string temp = WOFound.SelectedIndex;
string temp = WOFound.SelectedValue.ToString();
string temp = WOFound.SelectedValue;
string temp = WOFound.SelectedItem.ToString();
string temp = WOFound.SelectedItem.Text;
string temp = WOFound.SelectedItem.Value;
string temp = WOFound.Text;

If anyone could help me out I would appreciate it very much.

Cheers,
Dave
May 8 '07 #1
1 1265
devsusen
136 100+
Hi,

the earlier code
Expand|Select|Wrap|Line Numbers
  1. string temp = Request["WOFound"];
is the correct code to get a value of a radio button. Regarding the masterpage thing is not clear to me. But what seems to me that some how u have duplicate input type named WOFound

Please check your form if u have such problem.

I have a radioButtonList that works perfectly until I add a masterpage. The original code was:

string temp = Request["WOFound"];

After reading some other posts I tried all of the following but none of them worked.

string temp = WOFound.SelectedIndex.ToString();
string temp = WOFound.SelectedIndex;
string temp = WOFound.SelectedValue.ToString();
string temp = WOFound.SelectedValue;
string temp = WOFound.SelectedItem.ToString();
string temp = WOFound.SelectedItem.Text;
string temp = WOFound.SelectedItem.Value;
string temp = WOFound.Text;

If anyone could help me out I would appreciate it very much.

Cheers,
Dave
susen
May 9 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Leffe Andersson | last post by:
Hi folks! I have a MasterPage with some public methods, and I would like to call them from a (app_code) class. Is it possible to set a directive or an assembly reference to a MasterPage from a...
9
by: User | last post by:
OK, I asked in a reply, but I've wasted far too long so I'm going to put a new post out there in hopes that it will be more visible. I have a MasterPage. I want to call a method declared in that...
3
by: Alex Maghen | last post by:
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing,...
5
by: Islamegy® | last post by:
In my project i have two master page which i change dynamic in runtime.. The first one with 1 ContentPanel "onepanel.master", the second with 2 contentPanel"twopanel.master".. but when i switch...
4
by: cevans | last post by:
Is there a way to load a MasterPage programmatically? Not switch a page's masterpage but to create a MasterPage object that holds a given masterpage. So I know I can do: MasterPage master =...
5
by: k.vanderstarren | last post by:
Hi All, I'm trying to convert some ASP.NET code that I found at http://weblogs.asp.net/dannychen/archive/2005/12/02/432190.aspx from VB to C#. I've managed to convert the portion that is in...
2
by: ThunderMusic | last post by:
Hi, Maybe there is another way of doing this, but here's my problem... I have my web site where I have a master page to have a common layout and a common behavior on all my pages (that's what...
7
by: Bon | last post by:
Dear all I create a master page with image buttons on the left-hand side for navigation. When a user clicks the student button, the content (i.e. ContentPlaceholder) in masterpage will be...
2
by: Frank Milverckowitz | last post by:
Hi, New to .NET... question about Masterpages vs. using Frameset I'm using Visual Studio 2005 and notice that the generated pages are of DTD/Doctype that don't support framesets. To use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.