dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: SteveHi

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: About Content code at top of the aspx page

    Thanks Arjay for your reply.

    I am using ASP.NET in Visual Studio 2017 (latest version). It's a Web Forms project.

    Steve
  2. About Content code at top of the aspx page

    Hello

    At the top of my aspx page, I have


    <%@ Page Language="VB" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="success_test1.aspx.vb" Inherits="Success_test1" %>

    ...
  3. Replies
    5
    Views
    630

    Re: Web.config error in 2017

    Thanks, Arjay

    Yes, IIS is installed - I can see the icon next to the clock on my screen. I haven't created a virtual application, no. I wouldn't know how to do it! The error implies that I should...
  4. Replies
    5
    Views
    630

    Re: Web.config error in 2017

    Hello Arjay

    This is the output of my 'Build' test from within VS2017 itself.

    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    ========== Publish: 1 succeeded, 0...
  5. Replies
    5
    Views
    630

    Re: Web.config error in 2017

    Hello Arjay

    Thanks for your reply.

    Unfortunately, I am still getting that same error as administrator in Cmd Prompt which is how I usually compile:
    ...
  6. Replies
    5
    Views
    630

    Web.config error in 2017

    Hello

    I am coming to terms with the Web Forms Identity template and when I try to compile my Web Forms project in VS 2017, I get the following: error ASPCONFIG in my Web.config(18) file:

    'It is...
  7. Re: Local variable cannot be referred to before it is declared - VS error

    Marvellous!

    Many thanks, Victor - error has now disappeared.

    I have tried to rate your post but the forum tells me to share it out more!

    Thanks again.
  8. Re: Local variable cannot be referred to before it is declared - VS error

    Hello VictorN

    Thanks for replying.

    That line is already above the second line:


    Dim cmdText As String = "SELECT COUNT(strEmail) FROM university WHERE strEmail = @strEmail AND hashed =...
  9. Re: Local variable cannot be referred to before it is declared - VS error

    Thanks, DataMiser for your reply.

    I cannot move
    Dim cmd As New OleDbCommand(cmdText, connection) above


    Dim cmdText As String = "SELECT COUNT(strEmail) FROM university WHERE strEmail =...
  10. Local variable cannot be referred to before it is declared - VS error

    Hello

    I have this code in my Visual Studio 2017 Web Forms project which is giving me a red underline error: Local variable 'cmdText' cannot be referred to before it is declared.


    Protected...
  11. Replies
    5
    Views
    1,299

    Re: Green underline in code

    That's now working, Victor. Thank you!
  12. Replies
    5
    Views
    1,299

    Re: Green underline in code

    I have just checked here, Arjay, https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/keywords/ and no, 'target' is not reserved.

    Thanks for replying.
  13. Replies
    5
    Views
    1,299

    Green underline in code

    Hello

    In my VS 2017 code which says 'thank you' to a user for sending a form, I am getting a green underline under the word 'target':


    Dim target =...
  14. Replies
    2
    Views
    2,459

    Re: CC and BCC not working in SMTP

    Many thanks for your reply, vedikaledange

    I will need to customise your code a little but it's looking impressive.

    Thanks again.
  15. Replies
    0
    Views
    1,831

    IP address and location

    Hello

    I am aiming to show a site visitor's location (nearest main city) on my Web site home page - to make their visit a little more personalised. This can be done, I assume, via the user's IP...
  16. Replies
    2
    Views
    2,459

    CC and BCC not working in SMTP

    Hello

    In the Webmaster's inbox, I can see:

    From: Sender's email address
    To: Webmaster's email address
    CC: Assistant Webmaster's address

    But the sender does not receive a copy of his own...
  17. Replies
    0
    Views
    454

    CC not working in SMTP code

    Hello

    I have the following SMTP code. The code works apart from the CC. The person copied in (me@myEmail.com) does not receive any message at all. When I click on 'Start Debugging' in VS 2013, I...
  18. Replies
    5
    Views
    989

    Re: Does this button actually send my form?

    Thanks for your reply.

    I am not very good at those breakpoints, but if I press F9 here in my Contact.aspx.vb file:

    35105

    and then go to Contact.aspx | File | View in Browser, the page just...
  19. Replies
    5
    Views
    989

    Re: Does this button actually send my form?

    Hello DataMiser

    Thank you for your reply.

    My Web hosting service assures me that the real SMTP password, which is fixed and not a variable, is correct and that I should be using port 25 and the...
  20. Replies
    5
    Views
    989

    Does this button actually send my form?

    Hello

    I have a Web page with a contact form on it that doesn't seem to be sending the form (my own email should be copied in).

    The 'Send' button in my aspx page looks like this:


    ...
  21. Replies
    5
    Views
    559

    Re: Variable or ID?

    I think it is now resolved.

    Once I got rid of this:


    'Smtpserver.UseDefaultCredentials = False
    'Smtpserver.UseDefaultCredentials = True

    both of them, it was fine.
  22. Replies
    5
    Views
    559

    Re: Variable or ID?

    I am afraid that didn't work, DataMiser.

    The error is



    That error is misleading in my view because I can email from that SMTP server, with its credentials provided by my Web hosting service,...
  23. Replies
    5
    Views
    559

    Re: Variable or ID?

    I will post back a little later after I have tried it (time difference) but that sounds promising. I would never have thought of it.

    I am grateful - fingers crossed!
  24. Replies
    5
    Views
    559

    Variable or ID?

    Hello

    I have SMTP code that is giving me an authentication error although I have verified through PowerShell that my SMTP credentials are fine. So, I am tempted to think the error lies with my...
  25. Replies
    5
    Views
    499

    Re: Copying over files when uploading them

    Thanks!

    I think have done just about everything!

    The green underlines have gone, apart from one.

    I will need to read up, so I can learn, on why you write


    As String=string.empty
Results 1 to 25 of 48
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)