Click here to Skip to main content
15,897,968 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Not Active5-Jul-11 7:59
mentorNot Active5-Jul-11 7:59 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Shameel5-Jul-11 8:10
professionalShameel5-Jul-11 8:10 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Shameel5-Jul-11 8:15
professionalShameel5-Jul-11 8:15 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Cyberoxy5-Jul-11 8:20
Cyberoxy5-Jul-11 8:20 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Shameel5-Jul-11 8:24
professionalShameel5-Jul-11 8:24 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Cyberoxy5-Jul-11 8:35
Cyberoxy5-Jul-11 8:35 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Not Active5-Jul-11 8:45
mentorNot Active5-Jul-11 8:45 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Cyberoxy5-Jul-11 8:40
Cyberoxy5-Jul-11 8:40 
Ah I just found why runat="server" and id attribute were unreadable to you when I put bold on them. Thats why you guys didnt see anything. Im so stupid hehe!

When I debug it, i got compile error:
<b>Server Error in '/ELMARIE Website' 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: Cannot create an object of type 'System.Boolean' from its string representation 'multiple' for the 'Multiple' property.</b>

<b>Source Error:

Line 115:
Line 116:
<b>(Red)Line 117:&lt;select runat="server" name="order" multiple="multiple" size="12" style="width:330px;" id="dlist1" onchange="swapImage1()"&gt;</b>
Line 118: &lt;optgroup label="Sow Seeds of Love"&gt;
Line 119: &lt;option selected="selected" value="Images/NoneImage.gif"&gt;None&lt;/option&gt;
</b>

You see I have put runat="server" and also id attribute in the html elements
<u><b>Markup:</b></u>

<select id="dlist1" runat="server" name="order" multiple="multiple" size="12" style="width:330px;" onchange="swapImage1()">
<optgroup label="Sow Seeds of Love">
....
....
....
</optgroup>
</select>

<b><u></u>Code Behind:</b>

string selectedValue = <b>dlist1</b>.Value;
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Shameel5-Jul-11 8:42
professionalShameel5-Jul-11 8:42 
GeneralRe: urgent - problem with html tags in asp.net c# (code behind) Pin
Not Active5-Jul-11 14:15
mentorNot Active5-Jul-11 14:15 
AnswerRe: urgent - problem with html tags in asp.net c# (code behind) Pin
berba6-Jul-11 20:38
berba6-Jul-11 20:38 
QuestionWebMethod called from Javascript mis-behaving Pin
markymark825-Jul-11 4:31
markymark825-Jul-11 4:31 
QuestionCannot use a leading .. to exit above the top directory. Pin
benams4-Jul-11 13:41
benams4-Jul-11 13:41 
AnswerRe: Cannot use a leading .. to exit above the top directory. Pin
Not Active4-Jul-11 14:25
mentorNot Active4-Jul-11 14:25 
GeneralRe: Cannot use a leading .. to exit above the top directory. Pin
benams4-Jul-11 20:03
benams4-Jul-11 20:03 
GeneralRe: Cannot use a leading .. to exit above the top directory. Pin
Yuri Vital4-Jul-11 22:40
Yuri Vital4-Jul-11 22:40 
QuestionGet all the values from HttpContext.Current.Cache Pin
siva4553-Jul-11 20:15
siva4553-Jul-11 20:15 
AnswerRe: Get all the values from HttpContext.Current.Cache Pin
Andy_L_J3-Jul-11 20:32
Andy_L_J3-Jul-11 20:32 
SuggestionRe: Get all the values from HttpContext.Current.Cache [modified] Pin
RaviRanjanKr3-Jul-11 20:57
professionalRaviRanjanKr3-Jul-11 20:57 
GeneralRe: Get all the values from HttpContext.Current.Cache Pin
Not Active4-Jul-11 2:21
mentorNot Active4-Jul-11 2:21 
GeneralRe: Get all the values from HttpContext.Current.Cache Pin
RaviRanjanKr4-Jul-11 6:33
professionalRaviRanjanKr4-Jul-11 6:33 
QuestionOnly Save Contentpage Pin
Elham M2-Jul-11 6:03
Elham M2-Jul-11 6:03 
AnswerRe: Only Save Contentpage Pin
Not Active2-Jul-11 7:22
mentorNot Active2-Jul-11 7:22 
GeneralRe: Only Save Contentpage Pin
Elham M2-Jul-11 9:06
Elham M2-Jul-11 9:06 
GeneralRe: Only Save Contentpage Pin
Not Active2-Jul-11 10:02
mentorNot Active2-Jul-11 10:02 

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.