Note that there are some explanatory texts on larger screens.

plurals
  1. POlinkbutton style
    primarykey
    data
    text
    <p>i'm making a workbook creator in C#.net ( using visual studio )</p> <p>the book is build from the text part and the question part.</p> <p>all the answers for the question are in side the text and the user need to click on the right answer. if he's right then the word become green and if he's wrong it become red.</p> <p>i'm using linkbutton for this and i need it to be without and "link" style.</p> <p>i use this code for the question part:</p> <pre><code>public class question { public void createQusetion(Panel leftside, string text, string question,string answer) { string[] Qbuttonstext = text.Split(' '); for (int i = 0; i &lt; Qbuttonstext.Length; i++) { LinkButton answerButton = new LinkButton(); if (Qbuttonstext[i] == answer) { answerButton.ID = "answer"; } else { answerButton.ID = "word" + i.ToString(); } answerButton.Text = Qbuttonstext[i].ToString()+" "; answerButton.CssClass = "textbuttonB4"; answerButton.Click += new EventHandler(checkAnswer); leftside.Controls.Add(answerButton); } } } </code></pre> <p>i used css stylesheet and used this code: </p> <pre><code>.textbuttonB4 a:link { style:none; color:Black; font-size:18px; border-bottom-style:none; background-color:transparent; text-decoration: none; } .textbuttonB4 a:hover { style:none; color:Black; font-size:18px; border-bottom-style:none; background-color:transparent; text-decoration: none; } .textbuttonB4 a:visited { style:none; color:Black; font-size:18px; border-bottom-style:none; background-color:transparent; text-decoration: none; } </code></pre> <p>when the code running the text is still appears as a link.</p> <p>after looking the web for solution, dont konw why its not working.</p> <p>sorry for the previous version of this question.</p> <p>asaf</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload