|
well the selected index has changed...
when you press the back button, the page is not refreshed, it's just taken from the local cache; so when you will post it to the server, it will compare the old index with the new index and see that they differ.
|
|
|
|
|
Hi, thanks for the reply,
So how can I avoid this situation, that is, not causing the handler to be invoked
(since i didn't actually changed the DropDown list selection....)
Best,
P.
|
|
|
|
|
Don't use the back button; use a hyperlink;
|
|
|
|
|
Hi
I am getting this error when i am begnining the transaction.(sqltran=sqlconn.BeginTransaction) "Execute requires the command to have a transaction object when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized"
But wen i am removing this statement(sqltran=sqlconn.BeginTransaction) the error goes .
Wat cud be the reason???
Thanks
Monika
Monika
|
|
|
|
|
Hi,
giving a litbit of code snippet would be gud idea!
just mark the error line.
and also can you send the whats the error message?
thanks
Nitin...
|
|
|
|
|
hi all,
I have created a template for sending emails to the clients.This template gets values from the database and fills them in.Now I need to retrive the contents of this HTML template in asp.net.
Any ideas on this.
Thanks in advance
Regards
Anuradha
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
hi,
I am trying to send mail in HTML fomate, the code works well when i send mail to yahoo and gmail. But while sending mail to rediffmail id I am getting Delivary Failed mail, but that Id was correct.When i am trying to send to our own mail server the mail was not delivaring, it was in pending state for more than 24 Hr. But i want to send mail to our own server. What has to be done to make it work??? I had set the msg.Priority = MailPriority.High also.
Plz any one suggest me to rectify this problem
Thanks in advance
Bye
Exelio
Known is drop, unknown is ocean
|
|
|
|
|
Try to send mail using plain text format, to determine if it's the format of the mail that is the problem, or the mail delivery in general.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Thankz very much for your suggestion, but still i am getting the same error,
This is the code which I am using,
msg.Subject = "test Mail"
msg.Priority = MailPriority.High
msg.To = sarathy@exelio.com
msg.From = sarathy1234@yahoo.co.in
msg.Body = "This is an test mail with plain test"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(msg)
Known is a drop, unknown is ocean
|
|
|
|
|
Then you know that the error has nothing to do with sending html mail.
Is the mail address that you are using as from address registered on the mail server? Most mail servers only allow their own users to send mail through it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I tried this way also as you suggested, but still i am getting the same problem.
plz it's a little bit urgetnt
Bye
Exelio
|
|
|
|
|
Is the mail address that you are using as from address registered on the mail server? Most mail servers only allow their own users to send mail through it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
The mail address which i used is sarathy@exelio.com, it's an registered mail id. Past one year i am using it.
Thank you very much sir
bye
Exelio
|
|
|
|
|
But is it the server that handles this email acount that you are trying to use to send mail?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
Ya the server which i try to connect has that mail id.
Thanks for your replies
Bye
Exelio
|
|
|
|
|
I have a array of file names to be added to a Crystal report. The array size changes. So one option i have is to bind the array to the Formula Feild or to add formula feilds (for that matter any type of fields) to an existing crystal report from the program.
Is there any way to do either of this
AMIF
|
|
|
|
|
ihave the same problem after that i draw the report ..
i work to solve this but i am not optimistic
|
|
|
|
|
hi,
i have 2 dropdownlist inside a datagrid,i want to populate the 2nd dropdownlist based on the value selected from the first dropdownlist
kavitha
|
|
|
|
|
Hi Kavitha,
create two dropdownlist as "ddlParent" and "ddlChild".
Populate the "ddlParent" using
if(!Page.IsPostBack)
{
SqlDataAdapter ad = new SqlDataAdapter("SELECT PersonID FROM Person",myConnection);
DataSet ds = new DataSet();
ad.Fill(ds,"Person");
ddlParent.DataSource = ds;
ddlParent.DataTextField = "PersonID";
ddlParent.DataValueField = "PersonID";
ddlParent.DataBind();
}
Now in the selectedIndexChanged event of the "ddlParent" you will implement the code that will fill the "ddlChild".
private void ddlParent_SelectedIndexChanged(object sender, System.EventArgs e)
{
int personID = Convert.ToInt32(ddlParent.SelectedItem.Value);
string query = "SELECT PhoneNumber,PhoneID FROM Phone WHERE PersonID = "+personID;
SqlDataAdapter ad = new SqlDataAdapter(query,myConnection);
DataSet ds = new DataSet();
ad.Fill(ds,"Phone");
ddlChild.DataSource = ds;
ddlChild.DataTextField = "PhoneNumber";
ddlChild.DataValueField = "PhoneID";
ddlChild.DataBind();
}
Hope this works fine.
with regards
Satips
|
|
|
|
|
hi every body,
i was trying to download a file from server. i have used the following code
in my application.
'printout is a literal
code here
Dim dir As New IO.DirectoryInfo(Server.MapPath("backup"))<br />
Dim finfo As IO.FileInfo() = dir.GetFiles("*.*")<br />
Dim ff As IO.FileInfo<br />
PrintOut.Text = "<h5>All files in Server</h5><br><table border=1><tr><th>File name</th><th>File Size</th><th>backuped on</th></tr>"<br />
For Each ff In finfo<br />
PrintOut.Text = PrintOut.Text + "<tr><th><a href='" & ff.FullName & "' target='_blank'>" & ff.Name & "</a></th><th>" & CType(ff.Length / 1024, Integer) & "KB</th><th>" & ff.CreationTime & "</th></tr>"<br />
Next<br />
PrintOut.Text = PrintOut.Text + "</table>"
in my machine (client) this works very nicely. but i have hosted the site in the server.
after that i have accessed the site using the browser; then the code doesn't works. when i click the link nothing happens ;
please help me.
thanks in advance..
sebastian
|
|
|
|
|
hi everybody,
i tried to send email message from an asp.net application using following code
imporrts system.web.mail
---------->
dim objmail as new mailmessage()<br />
objmail.from=txtfrom.text<br />
objmail.sub=txtsub.text<br />
objmail.to=txtto.text<br />
objmail.body=txtbody.text<br />
dim objsm as smtpmail<br />
objsm.send(objmail)
this is the code which i was used. in some machines, this works very nicely;
but in some machines i got some error;
"Send Using configuration is Invalid"
and in some other machines i got the message like this--->
"Could not access CDO Message Object"
can anyone say how to solve this problem;
with thanks and love
Sebastian
|
|
|
|
|
If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.
---
b { font-weight: normal; }
|
|
|
|
|
thankz dear i will chech it out
bye
|
|
|
|
|
i have tested this ; it worked very nicely; thanks
|
|
|
|
|
u have to assign smtp server name in smtp object
Mahendra
|
|
|
|