|
Sorry now i can't help you
As you have written in VB i don't understand its very difficult BOSS
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hai friend,
i can surely do it using ur concept..thanks a lot..
Regards
M.Ramesh
|
|
|
|
|
hai,
i am using somany code to send mail.but it dosenot work.if know the code replay to me..
|
|
|
|
|
sugunavathysubramanian wrote: i am using somany code to send mail
OK
sugunavathysubramanian wrote: but it dosenot work
Whats the problem you are facing ?
sugunavathysubramanian wrote: f know the code replay to me.
Ya i have your code in my machine Just saw in Google home Page
Just kidding How can we know without looking into the code
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
This is explicitly covered in the article I link to in my sig.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Your signature link, if used everytime you recommend it, properly has more hits then bbc.co.uk!
|
|
|
|
|
Imports System.Net.Mail
Try
Dim userEmailAddress As String = _Setting.SMTPUsername
'Create the MailMessage instance
Dim _MailMessage As New MailMessage(userEmailAddress, ToUserId)
'Assign the MailMessage's properties
_MailMessage.Subject = Subject
_MailMessage.Body = Body
_MailMessage.IsBodyHtml = False
'Create the SmtpClient object
Dim smtp As New SmtpClient
smtp.Host = _Setting.SMTPServer
smtp.Port = _Setting.SMTPPort
Dim networkCredential As New Net.NetworkCredential(SMTPUsername, SMTPPassword)
smtp.Credentials = networkCredential
'Send the MailMessage (will use the config settings)
smtp.Send(_MailMessage)
Catch ex As Exception
Trace.WriteLine(" Class:- SMTPGateway, Function:- SendEmail() : Error: " + ex.ToString, Tracing.MSG_EXCEPTION)
End Try
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
how to return value from server in remoting i
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
When i am calling any event of server then its return some boolean value
(True or false) to client.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
OK..
so what do you want it to do? Can you explain in more detail
|
|
|
|
|
in remoting object am using delegates and eventhandler so delgates does not use return function so how i get return value from server
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hello Friends..
I'm using alert script to display a msgbox. the problem is when i press the button to display msgbox it is not working but if i press the button twice the msgbox is displayed . I'm using updatepanel.
Code written is
ButtonName.Attributes.Add("onclick","alert('USER MSG')");
how to solve this problem
ArunVijay
|
|
|
|
|
ButtonName.Attributes.Add("onclick","alert('USER MSG');");
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
I cant get it. can you tell the solution to it
ArunVijay
|
|
|
|
|
Why not just define the button as pure HTML ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ok i will try that. but what is the actual problem of using Asp.Net Button.
ArunVijay
|
|
|
|
|
Could be many things. I suspect at the core, it's that you're fighting the framework, which wants to add it's own onclick handler. Either way, it seems like the ASP.NET control is superfluous here.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello friends,
In my app, i have a logout buton for which i have written the following code.
Session.Remove("UserID");
Session.RemoveAll();
Session.Abandon();
Response.redirect("home.aspx");
But when i press logout button i come back to the last page.
that should not be happen bcoz i am having a logincheck usercontrol on that page that cheks wheither Session("UserID") is null or not.......
Deepak Nigam
|
|
|
|
|
As per your comments
When User clicks log out button you are clearing Session and redirecting user to Home Page this what you have implemented ...
But it is behaving relatively against it
Deepak Nigam wrote: But when i press logout button i come back to the last page.
How are you going again back to last page ?
If you saying by clicking back Button then Page might be coming from browser Cache
Deepak Nigam wrote: bcoz i am having a logincheck usercontrol on that page that cheks wheither Session("UserID") is null or not.......
As Good practice you should check user credentials in every page
By creating a base which will check User Credentials in every Page LOad
This Page need extend from System.Web.UI.Page and your all Page should extends this Page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I come back to last page by clicking the Back button on the browser.
Deepak Nigam
|
|
|
|
|
Deepak Nigam wrote: I come back to last page by clicking the Back button on the browser.
This will come from Cache. If you are checking the Credentials in every page then this should not cause any problem. e.g If user is in My Application Page where there are many controls like buttons etc to retrive some data. Now if i click Sign Out from this Page I will get redirect to Home Page ok Its fine
Now When user click back button browser will show My Application Page from Cache . Now if User clicks any server control in that page like button now Page Load will occure if you are checking Any user Credentials in My Application Page User wont be able to do anything he will get redirected to
Home Page
So its better to create a base class that will check user Credentials in its Page Load(What you are doing in user control) and your pages should extent this base page
Any how if you don't want ot Cache your page you will have to write this lines
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now); //or a date much earlier than current time
Add at the every page
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks Sandeep..........
It works.
Deepak Nigam
|
|
|
|
|
hi,
how can we write codes inside a gridview. i want to check some conditions before displaying data. how can i do it.
|
|
|
|