Category Archives: UpdateProgress

[RESOLVED] problem in popup model onok

Hi all
I am using modelpopup to insert new data, I want in the ok button click to execute

But it didn't enter to it???
What is the solution now.

 <asp:Label ID="lblTriggleUpdateProgress" runat="server" Text=""></asp:Label>
    <ajaxToolkit:ModalPopupExtender ID="UpdateProgressModalPopupExtender" runat="server"
        TargetControlID="lblTriggleUpdateProgress" PopupControlID="pnlUpdateProgress"
        BehaviorID="UpdateProgressModalPopupExtender" BackgroundCssClass="modalBackground"
    <asp:Panel ID="pnlUpdateProgress" CssClass="modalPopupPanel" runat="server" Style="display: none;"
     Width="300px" Height="150px" >
        <div style="text-align: center;">

            // Input data


<asp:Button id="btn" runat="Server" onClientClick ="OpenModal" />

function OpenModal(){




Hope this will help.

[RESOLVED] Gmail Sent functionality

Hi friends,


How do I implement the "Sent Message" in Gmail

If I a compose a message and send it - Gmail displayes a sent message successful message

Next if the click on the inbox or the sent links it does not appear.The message appears only when v clcik the "Sent" message

I could do Session["message"] = "success"

and then use 

protected void Page_Load(object sender, EventArgs e)

if (Session["Success"] != null)
                        LMessage.Text = "Successfully Sent";


But I also need to clear the session variable to be displayed only when the message is sent and not always






Google uses AJAX styled behaviour. You can place a control in the appropriate location in the form. Send button should be an AJAX call to the server. During this time, display a image that suggests sending. After send ajax completes, place a message in the control - Message successfully sent. Set a timeout, after which the message is quietly removed.

Hi friends,


Thanks for the reply. Any other easy way of doing it other than Ajax




the simplest way is to have a label control with enableviewstate=false so that on any postbacks, the message is reset to empty.

[RESOLVED] System.Net.Mail.MailMessage from issue

I'm having problems with the "From".  No matter what i put in, it is always getting filled out with whatever account i'm using to log into the smtp services.   Here is the code.. not sure what i'm doing wrong by the examples I've looked at.


Dim pMail As New System.Net.Mail.MailMessage()
                Dim pSMTP As New Net.Mail.SmtpClient

                With pSMTP
                    .Host = System.Configuration.ConfigurationManager.AppSettings("SMTPHost")
                    .Port = System.Configuration.ConfigurationManager.AppSettings("SMTPPort")
                    .Credentials = New Net.NetworkCredential(System.Configuration.ConfigurationManager.AppSettings("SMTPUserName"), System.Configuration.ConfigurationManager.AppSettings("SMTPPassword"))
                    .EnableSsl = mSSL
                End With

                With pMail
                    .From = New System.Net.Mail.MailAddress(mFrom)

                    For i As Integer = 0 To mTo.Count - 1

                    .Subject = mSubject
                    .Body = mMessage
                    .IsBodyHtml = True
                End With



I've checked my mFrom property and it has the correct email address i'm trying to send it from.. Is the from just always filled out with the info that the email is sent from

check with your email provider. They may be put this for security reasons.

for my testing i was using gmail.. so your thinking it's most likey being put in there by them... I'll try another smtp server that i can use... thanks for the help


If you are using GMAIL it will use the gmail credentials you are passing.

If you have SMTP server of your own use that so that there won't be any restrictions.


Check folowing article for sending mail from application