No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
14 Posted Topics
Re: Hi, Check the availability of the value for the first checkbox before inserting the value into another textbox [CODE] if(textbox1.text!=" ") { textbox2.text=textbox1.text); } [/CODE] All The Best | |
Re: Hi, try this code protected void btn_clk(object s,eventargs e) { sqlcommand cmd=new sqlcommand("select email from usertable",connectionstring) string email; sqldatareader dr=cmd.executereader(); while(dr.read()) { email=dr[0]; SmtpClient c = new SmtpClient(yourIPAddress); MailAddress addr = new MailAddress(fromaddress); MailAddress add = new MailAddress(email); MailMessage msg = new MailMessage(); msg.To.Add(add); msg.From = addr; msg.IsBodyHtml = true; … | |
Re: Hi, You can do it using CDO.Message You can generate the report in a seperate file and call the file in CreateMHTMLBody() method. Here is an example CDO.Message msg=new CDO.Message() msg.to= toaddress msg.cc= msg.from= fromaddress msg.subject= msg.CreateMHTMLBody(reportpageurl,CDO.CdoMHTMLFlags.cdoSuppressNone,"",""); msg.send() | |
Re: Hi, You can directly pass it in the function paranthesis. see the code below <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function message(name) { alert("Hello" + name) } </script> </head> In my code behind file : btnok.Attributes.Add("Onclick", "message(textbox1.text);"); | |
Re: Hi, To send an sms u have to use a sms gateway just as we use payment gateway in shopping cat application. regards | |
Re: Hi, What is @class_id? You are trying to pass a value to the sql statement but the variable @class_id does not contain any value. First you have to declare a variable,then initialize it and then you can add it as a parameter to the sql statement. regards | |
Re: Hi, I think you want to implement your application as a three tier architecture. i.e., seperating presentation, business logic and data access Well i can suggest you some other way. first you have created a class called Prod [CODE] public partial class Prod : System.Web.UI.Page { } [/CODE] Now create … | |
Re: Hi, You can do it using sessions. in the first page add the textbox1 value to a session variable in the onclick event session["tb1"]=textbox1.value; in the second page assign the value in the session variable to textbox2 in Page_Load textbox2.value=session["tb1"]; u dont need to pass the value to the second … | |
Re: Hi, You might have stored the name of the customer in the database. Just write a query to fetch the name from the table and add it to the textbox. protected void dropdownlst_selectectchange(object s, evetntargs s) { string str=dropdownlist1.selecteditem.text; string sql="select name from customer where custid="+str; sqlcommand cmd=new sqlcommand(sql,connectionstring) sqldatareader … | |
Re: Hi, You have written a function for e-mail validation in a seperate cs file. You can call the function in the onclick event handler as for suppose your event handler is btnclk then [code=ASP.NET] protected void btnclk(object s,eventargument e) { // create object of cs class bool x=object.ValidateEmailAddress(txtEmail.Text) if(x==yes) { … | |
Re: Hi, You can do it using javascript and css. Try this code it might help. <head runat="server"> <title>Untitled Page</title> <style type="text/css" runat="server"> .cs { background-color:Window; } .cs1 { background-color:ButtonFace; } </style> <script type="text/javascript"> function mov() { var btnid= document.getElementById('btn1'); btnid.className='cs'; } function mout() { var btnid= document.getElementById('btn1'); btnid.className='cs1'; } </script> … | |
Re: Hi, Your problem can be solved by using sessions. store the value you have entered in the textbox in a session variable and when the master page opens for the second time just insert the valuein the session variable into the text box. I hope this would solve your problem. | |
Re: Hi, If ur doubt is how to add names to the dropdown list ,To add country names to a dropdown list,there must be a source from which the dropdown list control takes the data.So first the names of the countries should be stored in a database from where they can … | |
Hi, i want to play a vedio clip in my web page.ihave added a media player control to the visual studio toolbox using the following procedure. Right click in the toolbox,select Choose items from the drop down,select Com Components tab from the dialog box and then check the corresponding checkbox … |
The End.