could u explain?? place textbox in templatefield of gridview. then u can edit..
CST
could u explain?? place textbox in templatefield of gridview. then u can edit..
CST
i think these modifications will make it work protected void btnSubmit_Click(object sender, EventArgs e) { MailMessage message = new MailMessage(); message.To.Add(new MailAddress(txtTo.Text, "any user Name"); mMail.From = new MailAddress(txtFrom.Text, "any user Name"); message.Subject = txtSubject.Text; message.Body = txtBody.Text; try { SmtpClient sm = new SmtpClient(); sm.Send(message); litStatus.Text = "Your email has been sent"; } catch (Exception ex) { litStatus.Text="Error sending email"; } } } in web.config, configure smtp think this shud work
CST
u can use objectdatasource to enforce 3 tier architecture. u can create classes in the business layer and then link methods in those classes with UI controls like gridview and display data in them.
CST
if u are using report wizard, then u have option to get formatted colored reports in style tab of report wizard. or u can manually do that by changing properties of report fields.
CST
u can easily deploy web sites by creating a website in web server and just copying files from local site to server using FTP. or u can use Copy website option in Visual studio. regarding ur prob, when u work on local site, u will be creating virtual directory in IIS.. in server u will be actually creating website.. and u have to configure the website properties in IIS in the server i think this will be helpful http://support.microsoft.com/kb/323972 try.. bye..
CST
yes u can do it by custom code. dont use the update option of gridview. place a button in the page and in button clik u can write sql query to insert values in each row to dbase by looping thru the rows in the gridview.. u can ,make use of SqlTransaction to insert all the records in a transaction. foreach(GridviewRow gv in Gridview1.Rows) { // write code for inserting values into database from each row }
CST
Hi all.. Im a bit confused..Iam a hard core gaming fan.. I am plannin to buy a new gaming machine.. but iam confused whether to get a gaming PC or a PS3 or XBOX.. Which is the better option..Opinions please thanks,
CST
its already friday.. bored of daily work.. now to get home as fast as i can, and play some PC games.. Hitman, NFS ..
CST
Thanks a lot for ur reply.
CST
Thanks a lot for ur reply.
CST
Thanks a lot for ur reply. found it quite useful.
CST
Hi all, I want to get all the sundays between 2 dates in sql. Please help.. Thanks and regards,
CST
Hi, like i have a function LoadItems() I tried to call it as: But it is giving error.. Thanks,
CST
Hi all, I have a enum in a user control UC1. I want to access that enum in another user control UC2.. How to do that in ASP.NET/C#? THANKS IN ADVANCE,
CST
Hi all, I would like to know how to call a function from a control in aspx page.. Thanks,
CST
Thanks a lot.. Let me try with it.
CST
Hi all, Can anybody give syntax of Response.Redirect while passing multiple values in ASP.NET/C#... I want to pass 4 values for getting them by Request.Querystring. Thanks, cfit
dfdf
Can anybody tell where I can download SqlHelper class (SqlHelper.vb) for using in my application... Thanks and regards, cst...
dfdf