Hii everyone...
i am working on a project in which i am making some words as hyperlinks in the textbox in asp.net.
i want that on clicking that button a function that i have already defined is executed rather than a page being opened and also the function needs a parameter passed to it.
FreeTextBox1.Text = FreeTextBox1.Text.Substring(0, position) + "<a href='#' runat='server' onServerClick='view_sugg(no_of_misspell)'>" + temp_input[tls] + "</a>" + FreeTextBox1.Text.Substring(position + temp_input[tls].Length);
protected void view_sugg(int sno)
{
ListBox1.Items.Clear();
Errorword.Text = error_sl[sno].errorword;
for (int i = 0; i < error_sl[sno].sugg.Length; i++)
{
ListBox1.Items.Add(error_sl[sno].sugg[i]);
}
int nl = ListBox1.Items.Count;
if (nl == ...
Go to the complete details ...