Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

TRAORE cheickna

@TRAORE cheickna
About
Posts
9
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem to send message from MSMQ
    T TRAORE cheickna

    Hello, I created a WCF service into my asp.net app in order to store some messages into queue using MSMQ before send them to users. The first part work fine because i can see all messages in a pickup directory with Windows Explorer. I also can see the message number using windows service manager throw my private queue. The second part don't work i.e my messages aren't sent and i have no error message. I don't understand where the problem come from. The code i use is following : msmqQueuePath is my Queue name

    Public Sub GetMailMessages() Implements ISvcEmailManagement.GetMailMessages

        Try
            ' Create an instance of MessageQueue. Set its formatter.
            Dim \_msmqQueue As New MessageQueue(msmqQueuePath)
            '\_msmqQueue.Formatter = New XmlMessageFormatter(New Type() {GetType(\[String\])})
            \_msmqQueue.Formatter = New BinaryMessageFormatter
            \_msmqQueue.MessageReadPropertyFilter.SetAll()
            ' Add an event handler for the ReceiveCompleted event.
            AddHandler \_msmqQueue.ReceiveCompleted, AddressOf msmqQueue\_ReceiveCompleted
            Dim returnValue As IAsyncResult
            ' Begin the asynchronous receive operation.
            returnValue = \_msmqQueue.BeginReceive()
            signal.WaitOne()
            ' Do other work on the current thread.
            Return
        Catch ex As Exception
            Dim Msg As String = ex.Message
            Throw ex
        End Try
    
    End Sub
    

    The receiveCompleted function is :

    Public Sub msmqQueue_ReceiveCompleted(ByVal sender As Object, ByVal e As ReceiveCompletedEventArgs)
    Try
    Dim emailMsg As EmailEntities.CEmailMessage = e.Message.Body
    'Remplir l'objet Message avec TO, FROM, BODY, SUBJECT en supposant que le message soit au bon format
    Dim mailMessage As MailMessage = New MailMessage()
    mailMessage.To.Add(New MailAddress(emailMsg.sTO))
    mailMessage.From = New MailAddress(emailMsg.sFROM)
    mailMessage.Subject = emailMsg.sSUBJECT
    mailMessage.Body = emailMsg.sBODY
    Dim oclient As SmtpClient = New SmtpClient()
    Try
    oclient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory
    oclient.Send(mailMessage)
    Catch ex As SmtpFailedRecipientsException
    Dim i As Integer
    For i = 0 To ex.InnerExceptions.Length - 1

    ASP.NET csharp help asp-net wcf data-structures

  • How to crypt my URL
    T TRAORE cheickna

    Hello, To open many aspx pages in my application il use parameters and sometimes the user name and password as required. For instance :

    Response.Redirect("subscribe.aspx?From=LoginUser&UserName=" & txtUserName.Text & "&UserEmail=" & txtEmail.Text & "&UserPassword=" & txtPassword.Text)

    the probem is that after running this code the URL become :

    Response.Redirect("subscribe.aspx?From=LoginUser&UserName="toto" &UserEmail=" toto@yahoo.fr"&UserPassword="totototo")

    You undertand this is not a ggod thing because user can see theses information and worse google can record thes infos. Is there any way to crypt URL Informations? Thanks in advance

    ASP.NET dotnet tutorial question

  • How to protect a page requested only by an external tool or administrator?
    T TRAORE cheickna

    Hello, There is a page into my asp.net application which must be requested only by myself (administrator) or by an externel tool like Windows task scheduler, pingdom, curl.exe, and so on. Because this page contains some code to send e-mail to many users. When the page is requested par the following url http://www.mysite.com/Send.aspx the code behind do the work. This page is'nt accessible by my web site interface but it's located at the web site roots. Is there anyway to protect this page to avoid someone (a non-authorize user) run it??? thank's for your help

    ASP.NET csharp asp-net com help tutorial

  • How to implement an asynchronous code?
    T TRAORE cheickna

    Hello, Into my asp.net application every day i download an xml file and store the values in my database. After did this, i display this xml file using an aspx page. After displaying, an e-mail is sent to 2000 users who are subscribe to this info. My problem is that i want to dipslay first the page to confirm there is no problem, then send the e-mail but because i use Response.Redirect function my code for sending e-mail is never run. If i send first the e-mail, i must wait for the end (5 minutes) before displaying xml value into my page. Therefore i would to display my page and execute at the same time the function to send e-mail or sending the e-mail in asynchronous mode. The part of my code with this problem is the following :

    'Storing data in my database
    iRes = mydb.DBRecordPublication(strFilename, sDate, snumero, sDoc)
    If iRes >= 0 Then
    'Displaying data on screen
    Dim NomMagazine As String = strFilename
    Response.Redirect("ShowNews.aspx?News=" & NomMagazine & "&DateNews=" & sDate & "&ConnecString=" & mydb.GetConnectionString())
    'Sending e-mail : Never run after Response.Redirect
    Dim strRes As String = myMail.SendSommaire(Me.Context)
    end if

    thanks in advance for any help

    ASP.NET help csharp asp-net database xml

  • How to implement an automatic task in asp.net
    T TRAORE cheickna

    Bonjour Philippe, Thank's for your reply, have you some link about this technic (ISQ Solutions) i never use it nor hear from it. Thanks

    ASP.NET tutorial csharp asp-net

  • How to implement an automatic task in asp.net
    T TRAORE cheickna

    Hello, Into my asp.net application i want to create a task to do something at some hour, for example twice a day i.e 6:00 PM and 10:00 PM I think about web service but i don't know if this is the best method. Have you any suggestions about this subject. thank's in advance

    ASP.NET tutorial csharp asp-net

  • Problem to submit an ASP.NET form by the ENTER KEY
    T TRAORE cheickna

    Thanks Jacques, Great, great, great! It was so simple. Merci beaucoup!!!

    ASP.NET help csharp asp-net tutorial question

  • Problem to submit an ASP.NET form by the ENTER KEY
    T TRAORE cheickna

    Hi, Thank's for your reply. Using panel work fine but i met a piece of problem. I have three Button controls on my aspx page whose one is defined as DefaultButton into my panel properties. In some cases this defaultButton is set to Visible=false and enable=false. Because the two others Button are not declared Default in the panel the same problem when i hit Enter Key occurs. Have you any others good suggestions for me? Thank's in advance

    ASP.NET help csharp asp-net tutorial question

  • Problem to submit an ASP.NET form by the ENTER KEY
    T TRAORE cheickna

    Hello, Into my asp.net application, i use a masterpage and many content pages. On my masterpage there is 3 asp.net imagebutton controls. in order to display a content page i click on one of this control which use Response.Redirect function. the problem i have is when i use a content page by typing for example informations like Name,email, password, i.e, then if i try to hit enter key to validate my values i am surprise to see that it's the code behind the fisrt image button on my master page wich is run. I have only one button on my content page and i don't understand why the EnterKey don't run the click envent os thif button? Thanks for any help

    ASP.NET help csharp asp-net tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups