Sample for the override method:
private void CreateForm(DataTable dt, string headerText, string headerNotes)
{
}
and make a call like this:
CreateForm(dtForm,formTitle,formNotes);
Sample for string concatenation:
formTitle += "#" + formNotes;
call in the same way as you are doing
CreateForm(dtForm,formTitle)
and in the method do this way:
private void CreateForm(DataTable dt, string headerText)
{
string formNotes = "';
//some verification here like whether there is any text after the # in the
headerText variable
if(headerText.Length > headerText.IndexOf("#") + 1)
formNotes = headerText.Substring(headerText.IndexOf("#")+1);
//do the normal processing here
}
[quoted text, click to view] "Patrick Olurotimi Ige" wrote:
> Hitesh..
> Can you post me a sample!
>
>
>
> *** Sent via Developersdex
http://www.developersdex.com ***