Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: C# Network Problem Pin
mav.northwind4-Oct-05 7:04
mav.northwind4-Oct-05 7:04 
GeneralRe: C# Network Problem Pin
4-Oct-05 8:01
suss4-Oct-05 8:01 
GeneralRe: C# Network Problem Pin
theDexter4-Oct-05 9:07
theDexter4-Oct-05 9:07 
QuestionCPU Usage Pin
manojk_batra4-Oct-05 6:32
manojk_batra4-Oct-05 6:32 
AnswerRe: CPU Usage Pin
Heath Stewart4-Oct-05 10:53
protectorHeath Stewart4-Oct-05 10:53 
GeneralRe: CPU Usage Pin
manojk_batra4-Oct-05 18:04
manojk_batra4-Oct-05 18:04 
AnswerRe: CPU Usage Pin
Heath Stewart5-Oct-05 6:47
protectorHeath Stewart5-Oct-05 6:47 
QuestionDisplaying an owned form when main form is shown Pin
Luis Alonso Ramos4-Oct-05 5:11
Luis Alonso Ramos4-Oct-05 5:11 
AnswerSolved! Pin
Luis Alonso Ramos4-Oct-05 5:42
Luis Alonso Ramos4-Oct-05 5:42 

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.