|
are you getting this error only when you send mail with attachment?
Cheers!!
Brij
|
|
|
|
|
yes,but i havent tried without attachment
self confidence+hard work=SUCCESS
|
|
|
|
|
try once without attachment.I think there is some issue with SmtpClient or user credentials
Cheers!!
Brij
|
|
|
|
|
MS Lee wrote: above is my code, while i run this am getting the below error
"mail box unavailable,The server response was: 5.7.1 Unable to relay for murali.sg@gmail.com"
Error Clearly say's that The mailbox does not exist. Does that mailbox (mailid) exist?
|
|
|
|
|
Mail id is exists.but it shows the error at mail server(mail box unavailable)
self confidence+hard work=SUCCESS
|
|
|
|
|
Does your SMPT Server configure properly ?
|
|
|
|
|
I assume you're attempting to relay through your own GMail account here......that'll never work...Gmail / Hotmail / Yahoo and most of the free ones don't permit relaying (to stop spammers)...
You'll need to change the SMTP details (SMTPServer etc) to one that permits relaying.
C# has already designed away most of the tedium of C++.
|
|
|
|
|
I am designing web application in which i want to find Control's ID and TEXT from .ASPX file and I am also using master page.
Is there any method exist to find ID and TEXT in Code Behind(In C#)? Please suggest me any solution.
|
|
|
|
|
Page.FindControl(id)
Parwej Ahamad
|
|
|
|
|
Get a collection which contains all the controls in the page by
Page.Controls
and ioterate it one by one .you'll get everything about the controls
Cheers!!
Brij
|
|
|
|
|
Hi friends,
M working on master pages. i have a content page in which i have a htmlinputhidden control.
m assigning a value to hidden control everytime page post backs.
i can able to access value till 2 post backs after that m unable to access hidden value.
pls help me where m going wrong.
Thanks inadvance.
Soori
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
How you are accessing this control ? Could you post here that block of code only.
Parwej Ahamad
|
|
|
|
|
hi parwej,
I am accessing it like
this.Hdncontent.value
i can see this value while assigning but m unable to get after post back.
soori
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
Hdncontent Server side control Or Client side control ?
Parwej Ahamad
|
|
|
|
|
it is an htmlinputhidden control.
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
|
where is htmlinputhidden ? masterpage or content page?
Cheers!!
Brij
|
|
|
|
|
htmlinputhidden control is in content page.
thank you
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
Plz check the viewsource and use javascript alert to trace it. and one more thing it's always better to use asphidden control.
Cheers!!
Brij
|
|
|
|
|
m not at all using javascript here.
My requirement is i hav to show some value on the content page which will be changed in every postback.
first time page loads i will do some processing and store a value in hidden field.
and then click on some button this time i will get the value from hidden field and do some processing and store some value again.
i can see the value while assigning and in view source too bt i cant see the value after postback.
m accessing it like this.hidden1.value
thanks
No Defeat Is Final Until You Stop Trying!.......
|
|
|
|
|
hi all
i am calling a javascript function after postback. i have a save button on my page. whick user click on it..it saves the data and in the end i called a javascript function. calling javascript function code is below:
dim Str as string = "<script languange='javascipt'>functionName();</script>"
if (Not Page.IsStartUpScriptregister) then
Page.RegisterStartUpScript("clientscript",str)
end if
Now the problem is sometimes javascript not executes. i dont know why??
cud anyone have idea why sometimes function is not called
Thanks
Er. Jagwinder Singh
|
|
|
|
|
Register this script on page load.
Because when you are click on button at that point your script not being registered but when you will click next time then it would be work.
Parwej Ahamad
|
|
|
|
|
thanks for reply
but i dint get u. should i registered the script on page load. then how to call the function after registering the script
Er. Jagwinder Singh
|
|
|
|
|
Yes Below block of code in Page load event
dim Str as string = "<script languange='javascipt'>functionName();</script>"
if (Not Page.IsStartUpScriptregister) then
Page.RegisterStartUpScript("clientscript",str)
end if
Parwej Ahamad
|
|
|
|
|
whether you are using AJAX on the page?
Cheers!!
Brij
|
|
|
|