Click here to Skip to main content
15,905,427 members
Home / Discussions / C#
   

C#

 
AnswerRe: Extended ASCII Pin
Heath Stewart4-Oct-05 11:10
protectorHeath Stewart4-Oct-05 11:10 
GeneralRe: Extended ASCII Pin
mcyrrer5-Oct-05 9:24
mcyrrer5-Oct-05 9:24 
QuestionPlotting Charts on a userform.. Pin
james3774-Oct-05 9:00
james3774-Oct-05 9:00 
AnswerRe: Plotting Charts on a userform.. Pin
parvinder sehrawat5-Oct-05 1:09
parvinder sehrawat5-Oct-05 1:09 
GeneralRe: Plotting Charts on a userform.. Pin
james3775-Oct-05 2:12
james3775-Oct-05 2:12 
QuestionStrange xml problem Pin
thepersonof4-Oct-05 8:50
thepersonof4-Oct-05 8:50 
QuestionRe: Strange xml problem Pin
David Stone4-Oct-05 20:48
sitebuilderDavid Stone4-Oct-05 20:48 
AnswerRe: Strange xml problem Pin
thepersonof5-Oct-05 6:49
thepersonof5-Oct-05 6:49 
GeneralRe: Strange xml problem Pin
thepersonof6-Oct-05 7:01
thepersonof6-Oct-05 7:01 
QuestionReading IPTC from image file Pin
yarns4-Oct-05 7:33
yarns4-Oct-05 7:33 
QuestionHTML code to .TXT Pin
ventomito4-Oct-05 7:28
ventomito4-Oct-05 7:28 
AnswerRe: HTML code to .TXT Pin
Yoyosch4-Oct-05 7:31
Yoyosch4-Oct-05 7:31 
GeneralRe: HTML code to .TXT Pin
ventomito4-Oct-05 7:44
ventomito4-Oct-05 7:44 
AnswerRe: HTML code to .TXT Pin
Heath Stewart4-Oct-05 10:56
protectorHeath Stewart4-Oct-05 10:56 
GeneralRe: HTML code to .TXT Pin
ventomito5-Oct-05 10:00
ventomito5-Oct-05 10:00 
AnswerRe: HTML code to .TXT Pin
Daniel Bright4-Oct-05 11:20
Daniel Bright4-Oct-05 11:20 
Questionpopulating the dynamically generated textboxes on click of a dynamically generated button. Pin
shivanimatta4-Oct-05 7:15
shivanimatta4-Oct-05 7:15 
I have a web page with dynamically geneated textboxes and buttons. On click of a button, I want to pull the values from the database and populate the textboxes. I am gettinng confused between the sequence in which the client and server side code gets called. If I call server side first and then client, practically it happens in opp order . For eg-

TableCell tblCell5 = new TableCell();
System.Web.UI.WebControls.Button btn = new System.Web.UI.WebControls.Button();
btn.Text = "Copy";
btn.ID = "btnFetch"+ count.ToString();
counter = count;
btn.CommandArgument = count.ToString();
btn.Command += new CommandEventHandler(RemoveFiles);

btn.Attributes.Add("onclick","setit(" + count + "," + crash +","+ cr +","+ cav+"); ");
tblCell5.Controls.Add(btn);
tblRow.Cells.Add(tblCell5);

Even if I call in this order and set the values of variables in RemoveFiles, the javascript functions gets called first and by that time, the variables are not set.

Also if I try to call javascript from server side function, he javascript function is not yet loaded. For eg-
protected void RemoveFiles(Object sender, CommandEventArgs e)
{
stag = 1;
Response.Write(" alert("+ e.CommandArgument.ToString() +")");

cr = 6;
cav = 9;
hrs=10;
crash = 6;
Response.Write(" setit(' + count + ',' + crash +','+ cr +','+ cav+'); ");
}


Any suggestions?
QuestionSimple 2*2 output to textbox from application Pin
james3774-Oct-05 7:13
james3774-Oct-05 7:13 
AnswerRe: Simple 2*2 output to textbox from application Pin
Dan Neely4-Oct-05 8:12
Dan Neely4-Oct-05 8:12 
GeneralRe: Simple 2*2 output to textbox from application Pin
james3774-Oct-05 8:52
james3774-Oct-05 8:52 
GeneralRe: Simple 2*2 output to textbox from application Pin
Dan Neely4-Oct-05 9:40
Dan Neely4-Oct-05 9:40 
QuestionDataGrid Edit Event Pin
Yoyosch4-Oct-05 7:09
Yoyosch4-Oct-05 7:09 
QuestionDatatable Adding Row Pin
SJR_14-Oct-05 6:59
SJR_14-Oct-05 6:59 
AnswerRe: Datatable Adding Row Pin
vineas4-Oct-05 11:37
vineas4-Oct-05 11:37 
QuestionC# Network Problem Pin
theDexter4-Oct-05 6:34
theDexter4-Oct-05 6:34 

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.