Unterminated string constant
code in cs file
Expand|Select|Wrap|Line Numbers
- if (lblProcedureID != null)
- {
- lnkHold.Attributes.Add("onclick", "javascript:copyText('Procedure Id-" + lblProcedureID.Text + " Proceudre Title-" + ProcedureTitle.Text + " Procedure Description-" + ProcedureDesc.Value + "');");
- //lnkHold.Attributes.Add("onclick", "javascript:copyText('" + (ProcedureDesc.Value).ToString() + "');");
javascript in aspx file
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript" language="javascript">
- function copyText(copyDivText)
- {
- //var copyDivText = document.getElementById('labelclipboard').value;
- window.clipboardData.clearData();
- var returnVal = window.clipboardData.setData('Text', copyDivText);
- alert("Procedure details copied");
- }
- </script>
") expected"
please help as its a urgent requirement
Hemant Basvapattan
Bangalore