Page 2 of 2 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 19:12 Post subject: |
|
 |
Hey, why not mix business with pleasure, right? 
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:21 Post subject: |
|
 |
iNatan wrote: | Hey, why not mix business with pleasure, right?  |
I like to keep those separate, then I get carried away and I forgot about the business part 
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:30 Post subject: |
|
 |
Permissions changed, why is it prompting this error?
What do I need to change the line into?
Quote: | Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'RonhrinDemo.WebForm1'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RonhrinDemo.WebForm1" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /default.aspx Line: 1 |
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 19:36 Post subject: |
|
 |
Interesting, because that is the underlying class behind the web form.
In IIS, try right-clicking the directory and converting it to a web application.
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:39 Post subject: |
|
 |
iNatan wrote: | Interesting, because that is the underlying class behind the web form.
In IIS, try right-clicking the directory and converting it to a web application. |
I saw your first post and removed it
Anyway, it worked, but now this error occurs everytime I push one of the buttons.
Quote: |
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'selectedOption' does not exist in the current context
Source Error:
Line 6: <head runat="server">
Line 7: <title>Ronhrin Demo - Input Page for Option
Line 8: <%=selectedOption%></title>
Line 9: <script type="text/javascript">
Line 10: window.onload = function () { |
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 19:41 Post subject: |
|
 |
Yes, because I wasn't sure what was that specifically - I have not touched ASP.NET in sometime.
That selectedOption is defined in Input.aspx.cs. It should have found it.
Code: | public int selectedOption; |
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:43 Post subject: |
|
 |
iNatan wrote: | Yes, because I wasn't sure what was that specifically - I have not touched ASP.NET in sometime.
That selectedOption is defined in Input.aspx.cs. It should have found it.
Code: | public int selectedOption; |
|
Did you code all that manually or did you design half of it in a visual program?
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 19:44 Post subject: |
|
 |
No, I did it manually. There is no design to speak of, just some buttons on a page. 
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:47 Post subject: |
|
 |
iNatan wrote: | No, I did it manually. There is no design to speak of, just some buttons on a page.  |
How do I make it found the selectoption function?
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 19:50 Post subject: |
|
 |
No idea, for me in Visual Studio it finds it. :\
Input.aspx.cs
Do you have that file in the same dir as Input.aspx?
|
|
Back to top |
|
 |
Ronhrin
Banned
Posts: 6428
Location: Paradigms are changeable, reality is absolute.
|
Posted: Sat, 6th Feb 2010 19:54 Post subject: |
|
 |
iNatan wrote: | No idea, for me in Visual Studio it finds it. :\
Input.aspx.cs
Do you have that file in the same dir as Input.aspx? |
I have all files in the same dir, except the mdb file which is in /AppData
He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759
|
|
Back to top |
|
 |
LeoNatan
Banned
Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
|
Posted: Sat, 6th Feb 2010 20:13 Post subject: |
|
 |
I don't know man, it should be working. :\
|
|
Back to top |
|
 |
Page 2 of 2 |
All times are GMT + 1 Hour |