VB.NET: Email and Popups in VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kushagra tiwari
    New Member
    • Nov 2008
    • 5

    VB.NET: Email and Popups in VB.NET

    Hi friends

    I am makin a system in VB.Net . Currently I am facing two problems.

    Problem 1 : I cannot add Send Email functionality as I do not know how to write the code.

    Problem 2: When i refresh the page ,which i need to do every 5 secs as the data gets updated from the RFID reader, the popup forms get closed automatically. I need to make these forms in separate tabs. I cannot do so as i do not know how to make UI in Separate tabs .

    Kindly help me out in these two issues as the product launch date is near. I hope you people can realize how imp it is

    Thank You
    With regards
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Hi kushagra tiwari,

    Welcome to the .NET forum.
    I have changed your title to better reflect your problem. In the future please use a title that is more descriptive of the problem that you are facing. This will help you get your question answered much more quickly. Check out How to get a faster answer to your question for more details on how to format your title in the .NET forum. Also, when you have time, please check out the posting guidelines.

    Originally posted by kushagra tiwari
    Problem 1 : I cannot add Send Email functionality as I do not know how to write the code.
    Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics.

    For instance, if you had searched this forum, you would have come across this article outlining a quick reference on how to use email.

    Originally posted by kushagra tiwari
    Problem 2: When i refresh the page ,which i need to do every 5 secs as the data gets updated from the RFID reader, the popup forms get closed automatically. I need to make these forms in separate tabs. I cannot do so as i do not know how to make UI in Separate tabs .
    Tabs are handled by the web browser. Since most web broswers don't let you manipulate the functionality of their tabs I think you are going to have great difficulty managing your tabs.

    You can implement a timer on each page/tab using JavaScript...if these pages were opened with JavaScript in the first place you should have no problem using JavaScript to close them after the allotted time has passed.

    -Frinny

    Comment

    • kushagra tiwari
      New Member
      • Nov 2008
      • 5

      #3
      Originally posted by Frinavale
      Hi kushagra tiwari,

      Welcome to the .NET forum.
      I have changed your title to better reflect your problem. In the future please use a title that is more descriptive of the problem that you are facing. This will help you get your question answered much more quickly. Check out How to get a faster answer to your question for more details on how to format your title in the .NET forum. Also, when you have time, please check out the posting guidelines.



      Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics.

      For instance, if you had searched this forum, you would have come across this article outlining a quick reference on how to use email.



      Tabs are handled by the web browser. Since most web broswers don't let you manipulate the functionality of their tabs I think you are going to have great difficulty managing your tabs.

      You can implement a timer on each page/tab using JavaScript...if these pages were opened with JavaScript in the first place you should have no problem using JavaScript to close them after the allotted time has passed.

      -Frinny
      Hi frinny

      You are right in sayin that popups are made of javascript. but the refresh time is of 5 sec and the popup forms are also require user and admins to enter or edit various kinds of details . So 5 sec is very less time for that and on refreshing the popup closes. thats why i needed to make these popups in seperate tabs ...plz tell if dere is a beter way to do or tell how to manage tabs

      Thank you for ur help and support ..lukin frwd to rply

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by kushagra tiwari
        ..So 5 sec is very less time for that and on refreshing the popup closes.
        I don't understand why your popups close when your page refreses unless you are using Panels (or <div>s) to serve as your popup.

        What are you referring to when you are talking about "popups"?

        Originally posted by kushagra tiwari
        thats why i needed to make these popups in seperate tabs ...plz tell if dere is a beter way to do or tell how to manage tabs
        When the user clicks the Link or Button you could specify that it be opened in a new window by setting the target="_blank" .

        For example, the following hyperlink will open the page in a new window:
        <a target="_blank" href="thePageUR L"> click here </a>

        Some browsers will open the page in a new window, where others will open the page in a new tab.

        There is no way to ask the user's browser to open the content in a new tab. It all depends on how the browser treats the target="_blank" .

        If you're using Panels (or <div>s) to display your popups you may be able to get around the issue of the content closing when the page refreshes by placing the content that updates within UpdatePanels.

        -Frinny

        Comment

        • kushagra tiwari
          New Member
          • Nov 2008
          • 5

          #5
          Originally posted by Frinavale
          I don't understand why your popups close when your page refreses unless you are using Panels (or <div>s) to serve as your popup.

          What are you referring to when you are talking about "popups"?



          When the user clicks the Link or Button you could specify that it be opened in a new window by setting the target="_blank" .

          For example, the following hyperlink will open the page in a new window:
          <a target="_blank" href="thePageUR L"> click here </a>

          Some browsers will open the page in a new window, where others will open the page in a new tab.

          There is no way to ask the user's browser to open the content in a new tab. It all depends on how the browser treats the target="_blank" .

          If you're using Panels (or <div>s) to display your popups you may be able to get around the issue of the content closing when the page refreshes by placing the content that updates within UpdatePanels.

          -Frinny

          Hi Frinny

          The code is written in VB.net and not ASP.net . Also, in the VB code part the Javascript is written to call the popup e.g Response.write" <Script>" and so on
          the window dimensions and all are given. I think that in VB.Net the popup closes when the Parent Form Refreshes. So i Need to figure out a way that this does not happen.

          Another Bug cropped up while testing is that on refreshing ,the Parent Page scrolls back on the top. This is very annoying as the Client wont be able to see the details. Is there a way we can stop this. An e.g which comes to my mind is the way Yahoo ppl implement it in their sites . On yahoo sports , on refresh of the page the scroll bar or the page stays dere only

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Originally posted by kushagra tiwari
            The code is written in VB.net and not ASP.net
            How can this not be an ASP.NET application???? ??
            Are you developing a web application or desktop application?

            Comment

            Working...