Click here to Skip to main content
15,890,185 members
Home / Discussions / Web Development
   

Web Development

 
GeneralJavascript: adding rows to a table dynamically. Pin
User 988521-Mar-08 1:01
User 988521-Mar-08 1:01 
GeneralRe: Javascript: adding rows to a table dynamically. Pin
User 988521-Mar-08 2:26
User 988521-Mar-08 2:26 
GeneralRe: Javascript: adding rows to a table dynamically. Pin
User 988523-Mar-08 6:38
User 988523-Mar-08 6:38 
GeneralCS0103 variable does not exist in this context Pin
scratchmonkey20-Mar-08 9:27
scratchmonkey20-Mar-08 9:27 
GeneralRe: CS0103 variable does not exist in this context Pin
Steve Echols20-Mar-08 11:12
Steve Echols20-Mar-08 11:12 
GeneralRe: CS0103 variable does not exist in this context Pin
scratchmonkey20-Mar-08 14:50
scratchmonkey20-Mar-08 14:50 
GeneralRe: CS0103 variable does not exist in this context Pin
Steve Echols20-Mar-08 19:37
Steve Echols20-Mar-08 19:37 
AnswerRe: CS0103 variable does not exist in this context Pin
scratchmonkey21-Mar-08 3:18
scratchmonkey21-Mar-08 3:18 
OK, the code in my original post should have looked like this:

aspx:

<br />
 <asp:DropDownList ID="ux_ddl_userName" <br />
                   runat="server" <br />
                   DataSourceID="user_data_source"<br />
                   DataTextField="user_name" <br />
                   DataValueField="user_name" <br />
                   AutoPostBack="true" ><br />
 </asp:DropDownList><br />


.cs:

<br />
string username = "";<br />
username = this.ux_ddl_userName.SelectedValue;<br />


The file names were Default.aspx and Default.aspx.cs, and the class name was _Default. The code-behind and the class were correctly identified in the Codefile and inherits properties of the page directive.

The "fix" ended up being to change the file names to DevDefault and change the class name to DevDefault. The original file and class names were generated by the IDE. I did find in the project, that there was a Default3 file that identified the same class in a different file, so that may have been where the conflict was. If it was looking at that _Default class, then the error would have made sense, since it was essentially empty. In fact, I'm sure that's what it was, since typing the control name didn't bring up the intellisense listing, but preceding the control name with "this" did bring it up. It was a name clash.

Thanks.
QuestionTop position of the web page [modified] Pin
KambojR19-Mar-08 21:51
KambojR19-Mar-08 21:51 
GeneralRe: Top position of the web page Pin
Guffa22-Mar-08 14:59
Guffa22-Mar-08 14:59 
GeneralJavascript -&gt; Scrolling menu Pin
Jacob Dixon19-Mar-08 13:37
Jacob Dixon19-Mar-08 13:37 
GeneralRe: Javascript -&gt; Scrolling menu Pin
Declan Bright20-Mar-08 2:09
Declan Bright20-Mar-08 2:09 
GeneralwebBrowser control embedded in page doesn't get body element Pin
keniagm19-Mar-08 11:49
keniagm19-Mar-08 11:49 
QuestionUsing Certificates with c# and ASP.NET Pin
sfog19-Mar-08 11:11
sfog19-Mar-08 11:11 
GeneralCross post - please ignore Pin
pmarfleet19-Mar-08 11:14
pmarfleet19-Mar-08 11:14 
QuestionHow do I add multiple images to an ASP page that transform from one image to another? Pin
PeterJohnson196919-Mar-08 5:31
PeterJohnson196919-Mar-08 5:31 
GeneralWeb services in vb Pin
WinCrs18-Mar-08 22:09
WinCrs18-Mar-08 22:09 
QuestionHow to fires F11 key automatically [modified] Pin
Vishnu Narayan Mishra18-Mar-08 21:55
Vishnu Narayan Mishra18-Mar-08 21:55 
AnswerRe: How to fires any keypress event ie. F11 Pin
Laddie18-Mar-08 23:38
Laddie18-Mar-08 23:38 
GeneralRe: How to fires any keypress event ie. F11 [modified] Pin
Vishnu Narayan Mishra19-Mar-08 0:06
Vishnu Narayan Mishra19-Mar-08 0:06 
GeneralRe: How to fires any keypress event ie. F11 Pin
Johnny ²19-Mar-08 1:04
Johnny ²19-Mar-08 1:04 
QuestionHttp 1.1 POST Method? Pin
AliAmjad18-Mar-08 10:25
AliAmjad18-Mar-08 10:25 
AnswerRe: Http 1.1 POST Method? Pin
Guffa22-Mar-08 15:01
Guffa22-Mar-08 15:01 
GeneralIIS - site renaming Pin
Yusuf18-Mar-08 9:55
Yusuf18-Mar-08 9:55 
GeneralRe: IIS - site renaming Pin
ram197424-Mar-08 19:26
ram197424-Mar-08 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.