If you are using ASP.net Then there must be an event called Selection Changed.
try writing code in that event.
User Profile
Collapse
-
By Default
ASPNET or IUSR account which is used to execute ASP.net websites has only guset permissions. you must sent executeable permission for your website to some Administrator Level account. in that case you will be able to access registry. otherwise it will throw an exceptionLeave a comment:
-
Code:System.Diagnostics.Process objProcess = new System.Diagnostics.Process(); objProcess.StartInfo.FileName = "FULL PATH TO FILE"; objProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; objProcess.StartInfo.UseShellExecute = true; objProcess.Start();
Leave a comment:
-
I dont think so , by default there is any function or not but you can try to use this on
in DATALIST Control there is an evet called Item Created in that event you can do one thing . check here your lable.text.leng ht is more then xxx number of characters , then delete the remaining string.
...Code:void Item_Created(Object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.ItemLeave a comment:
-
Hello
I fixed the Proble
the solution was
Code:string[] str = this.txt.Text.Split((char)13);
Leave a comment:
-
...Code:using System.Web.Mail; MailMessage mail = new MailMessage(); mail.From = "abc@mm.com"; mail.To = Some Email; mail.Cc = Some Mail; mail.Subject = "Inspection Request"; String strMessage = "Blah Blah Blah" mail.Body = strMessage; mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");Leave a comment:
-
MultiLine Data Split Problem
Hello
I am developing software for a machine, i receive data from machine in this format
Now i want to devide this entire string into a string array,
How can i do that ?
I m writing Code like this
Can any bod please help me to split the string by each line....Code:string[] str = this.txt.Text.Split("\r\n",StringSplitOptions.None);
No activity results to display
Show More
Leave a comment: