Click here to Skip to main content
16,006,826 members
Home / Discussions / C#
   

C#

 
GeneralChild Form Help, Very Urgent! Pin
Kyle Maldonado4-Dec-07 12:41
Kyle Maldonado4-Dec-07 12:41 
GeneralRe: Child Form Help, Very Urgent! Pin
Christian Graus4-Dec-07 13:33
protectorChristian Graus4-Dec-07 13:33 
GeneralRe: Child Form Help, Very Urgent! Pin
Kyle Maldonado4-Dec-07 13:34
Kyle Maldonado4-Dec-07 13:34 
GeneralRe: Child Form Help, Very Urgent! Pin
J$4-Dec-07 13:38
J$4-Dec-07 13:38 
GeneralRe: Child Form Help, Very Urgent! Pin
Anthony Mushrow4-Dec-07 13:44
professionalAnthony Mushrow4-Dec-07 13:44 
GeneralRe: Child Form Help, Very Urgent! Pin
Kyle Maldonado4-Dec-07 13:50
Kyle Maldonado4-Dec-07 13:50 
GeneralRe: Child Form Help, Very Urgent! Pin
CKnig4-Dec-07 19:12
CKnig4-Dec-07 19:12 
QuestionInput string was not in a correct format Pin
pmillio4-Dec-07 12:31
pmillio4-Dec-07 12:31 
Hi i have written the code below, its job is to bring up a popup when a button is clicked, however although the popup comes up when information is entered into the popup it brings back an error saying, input string was not in correct format.

Hi that works but it doesnt take across "WorkSchedule_ID" because although the popup loads, when i enter information into it, the result is still "input string was not in a correct format". I tried this but it didnt work, the offending line is "strPrimaryKey =e.Item.DataBind("WorkSchedule_ID").ToString;". WorkSchedule_ID is coming from the database and each recored has its on unique ID, how can i pass it through to the page?


protected void btnModify_Click(Object sender, DataGridCommandEventArgs e)
{

if (e.CommandName == "Submit")
{

string strPrimaryKey = (string)e.CommandArgument;
strPrimaryKey =e.Item.DataBind("WorkSchedule_ID").ToString;

//int intPrimaryKey = Convert.ToInt32(strPrimaryKey);

strEvent = "<script language='javascript'>\r\n";
strEvent = strEvent + "popup('sow_notes.aspx?WorkSchedule_ID=" + strPrimaryKey;

strEvent = strEvent + "&survey_id=" + Request.QueryString["survey_id"].ToString();
strEvent = strEvent + "&sow_type_id=" + Request.QueryString["sow_type_id"].ToString();

strEvent = strEvent + "&surveytype_id=" + Request.QueryString["surveytype_id"].ToString();
strEvent = strEvent + "&property_id=" + Request.QueryString["property_id"].ToString() + "');\r\n";

strEvent = strEvent + "</script>";ViewState["sEvent"] = strEvent;
}

}
GeneralRe: Input string was not in a correct format Pin
Vikram A Punathambekar4-Dec-07 17:07
Vikram A Punathambekar4-Dec-07 17:07 
GeneralSerializing a class tha uses Generic.list Pin
ONeil Tomlinson4-Dec-07 12:23
ONeil Tomlinson4-Dec-07 12:23 
QuestionHow to compile more then one project in same time ? Pin
Yanshof4-Dec-07 11:56
Yanshof4-Dec-07 11:56 
AnswerRe: How to compile more then one project in same time ? Pin
Dave Kreskowiak4-Dec-07 14:34
mveDave Kreskowiak4-Dec-07 14:34 
QuestionListView: set "BackColor" in a SubItem Pin
Patricio Tapia4-Dec-07 10:51
Patricio Tapia4-Dec-07 10:51 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Insincere Dave4-Dec-07 11:32
Insincere Dave4-Dec-07 11:32 
QuestionListView: set "BackColor" in a SubItem Pin
Patricio Tapia4-Dec-07 10:50
Patricio Tapia4-Dec-07 10:50 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Skippums4-Dec-07 11:48
Skippums4-Dec-07 11:48 
GeneralRe: ListView: set "BackColor" in a SubItem Pin
Vasudevan Deepak Kumar4-Dec-07 18:04
Vasudevan Deepak Kumar4-Dec-07 18:04 
Generalhelp me!!! Pin
Shani Aulakh4-Dec-07 10:36
Shani Aulakh4-Dec-07 10:36 
Generalsimulating e-mail between project's forms Pin
Genius.Boy4-Dec-07 10:34
Genius.Boy4-Dec-07 10:34 
GeneralperformClick doesn't work Pin
gizmokaka4-Dec-07 10:24
gizmokaka4-Dec-07 10:24 
GeneralRe: performClick doesn't work Pin
Dave Kreskowiak4-Dec-07 10:46
mveDave Kreskowiak4-Dec-07 10:46 
GeneralRe: performClick doesn't work Pin
gizmokaka4-Dec-07 11:19
gizmokaka4-Dec-07 11:19 
General'The Binding Handle Is Invalid' error Pin
Lutosław4-Dec-07 9:41
Lutosław4-Dec-07 9:41 
GeneralApp_Code folder not found Pin
ss.mmm4-Dec-07 8:46
ss.mmm4-Dec-07 8:46 
GeneralRe: App_Code folder not found Pin
pmarfleet4-Dec-07 9:26
pmarfleet4-Dec-07 9:26 

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.