Click here to Skip to main content
15,887,398 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Javascript Detection Pin
Gavin Roberts17-Apr-07 1:36
Gavin Roberts17-Apr-07 1:36 
GeneralRe: Javascript Detection Pin
Guffa17-Apr-07 1:42
Guffa17-Apr-07 1:42 
QuestionSince there is a hidden java forum in CP... Pin
tatchung15-Apr-07 23:32
tatchung15-Apr-07 23:32 
AnswerRe: Since there is a hidden java forum in CP... Pin
Tamimi - Code15-Apr-07 23:47
Tamimi - Code15-Apr-07 23:47 
GeneralRe: Since there is a hidden java forum in CP... Pin
tatchung16-Apr-07 0:58
tatchung16-Apr-07 0:58 
GeneralRe: Since there is a hidden java forum in CP... Pin
Tamimi - Code16-Apr-07 1:38
Tamimi - Code16-Apr-07 1:38 
AnswerRe: Since there is a hidden java forum in CP... Pin
Bradml16-Apr-07 2:51
Bradml16-Apr-07 2:51 
QuestionRandom Hell Pin
L Viljoen15-Apr-07 21:52
professionalL Viljoen15-Apr-07 21:52 
Hi Guys I am trying to generate a random footnote everytime a page inside my site is loaded.

Trouble is my randomiser keeps staying with one index basically not doing anything

Please help!!!!


Heres my code for my Footnote:

private void SetFootnote()
{
try
{
SqlConnection conn = new SqlConnection(SqlDataSource1.ConnectionString.ToString());
conn.Open();

//Get the row and read into dataset
string query = "Select * From Footers;";
SqlDataAdapter adapter = new SqlDataAdapter(query, conn);
DataSet data = new DataSet();
adapter.Fill(data, "Footers");
conn.Close();
//Get a Random footnote and set
Random ran = new Random(0);

int rowIndex = ran.Next(data.Tables[0].Rows.Count - 1);
string footer = data.Tables[0].Rows[rowIndex][0].ToString();

FootNote.InnerHtml = footer;
//Close Connection

}
catch (Exception)
{
}
}

Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com

AnswerRe: Random Hell Pin
Guffa15-Apr-07 22:11
Guffa15-Apr-07 22:11 
AnswerRe: Random Hell Pin
L Viljoen15-Apr-07 22:13
professionalL Viljoen15-Apr-07 22:13 
GeneralRe: Random Hell Pin
Guffa16-Apr-07 7:05
Guffa16-Apr-07 7:05 
QuestionMoving selected rows from one gridview to another gridview Pin
Atif Ali Bhatti15-Apr-07 11:13
Atif Ali Bhatti15-Apr-07 11:13 
QuestionASP.net Hello world [modified] Pin
Eytukan15-Apr-07 4:27
Eytukan15-Apr-07 4:27 
AnswerRe: ASP.net Hello world Pin
Guffa15-Apr-07 5:39
Guffa15-Apr-07 5:39 
GeneralRe: ASP.net Hello world Pin
Eytukan15-Apr-07 5:49
Eytukan15-Apr-07 5:49 
AnswerRe: ASP.net Hello world Pin
Christian Graus15-Apr-07 11:05
protectorChristian Graus15-Apr-07 11:05 
GeneralRe: ASP.net Hello world Pin
Eytukan15-Apr-07 15:25
Eytukan15-Apr-07 15:25 
GeneralRe: ASP.net Hello world Pin
Christian Graus15-Apr-07 17:07
protectorChristian Graus15-Apr-07 17:07 
Questionjavascript !! Pin
Tamimi - Code15-Apr-07 3:03
Tamimi - Code15-Apr-07 3:03 
AnswerRe: javascript !! Pin
Guffa15-Apr-07 3:21
Guffa15-Apr-07 3:21 
GeneralRe: javascript !! Pin
Tamimi - Code15-Apr-07 3:30
Tamimi - Code15-Apr-07 3:30 
AnswerRe: javascript !! Pin
Bradml15-Apr-07 4:37
Bradml15-Apr-07 4:37 
GeneralRe: javascript !! Pin
Tamimi - Code15-Apr-07 18:55
Tamimi - Code15-Apr-07 18:55 
AnswerRe: javascript !! Pin
RichardGrimmer16-Apr-07 1:06
RichardGrimmer16-Apr-07 1:06 
GeneralRe: javascript !! Pin
Tamimi - Code16-Apr-07 1:44
Tamimi - Code16-Apr-07 1:44 

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.