Adobe Tutorial Help please?

Hi,
Trying to do the tutorial but have no idea of C#. I have
tried running the code through a convertor but keep getting errors.
Can anyone convert this from C# to VB
<script runat="server">
protected void Page_Load(Object Src, EventArgs E)
// Don't cache this page.
Response.Expires = -1;
Response.AddHeader("Pragma", "no-cache");
Response.AddHeader("cache-control", "no-store");
if (IsPostBack)
// Check user credentials entered on the page
if ((emailaddr.Value ==
DS_uidAndPwd.FieldValue("emailaddr",null)) &&
(password.Value == DS_uidAndPwd.FieldValue("password",null)))
// The user has been authenticated.
// 1. Create the authentication ticket.
// 2. Redirect to the appropriate page.
// 1. Create the authentication ticket.
// Create and use the forms authentication ticket.
FormsAuthenticationTicket ticket = new
FormsAuthenticationTicket(1,
Request.Form["emailaddr"],
DateTime.Now, // issue time
DateTime.Now.AddMinutes(30), // expires in 30 minutes
false, // not persistent
"member"); // role assignment gets stored in the UserData
// Create a new (encrypted) HttpCookie using the ticket just
created
// and name it accordingly to the value specified in the
<forms> element
// in the web.config file.
HttpCookie cookie = new
HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(ticket));
// Add the cookie to the outbound response.
Response.Cookies.Add(cookie);
// Redirect as appropriate.
String returnUrl;
if (Request.QueryString["ReturnURL"] == null)
returnUrl = "/members/index.aspx";
else
returnUrl = Request.QueryString["ReturnURL"];
Response.Redirect(returnUrl);
else
Msg.Text = "Invalid Credentials: Please try again";
</script>
Many Thanks

Here you go, looks wrong though, the line:
If True Then
will always evaluate as true, that your are saying here is:
if true = true then
which leaves the else block a pointless exercise because its
always going to
be true
<script language="VB" runat=server>
Protected Sub Page_Load(ByVal Src As Object, ByVal E As
EventArgs)
If Page.IsPostBack Then
' authenticate user
' NOTE: how this check is done and a discussion of what
happens
is discussed in the
' next two sections: Authenticate the login credentials and
' Create the FormsAuthenticationTicket (with
RedirectFromLoginPage).
If True Then
FormsAuthentication.RedirectFromLoginPage(emailaddr.Value,
False)
Else
Msg.Text = "Invalid Credentials: Please try again"
End If
End If
End Sub
</script>
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com
ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk
"ricky0110" <[email protected]> wrote in
message
news:e6ron9$6u9$[email protected]..
> Hi,
>
> Trying to do the tutorial but have no idea of C#. I have
tried running the
> code through a convertor but keep getting errors. Can
anyone convert this
> from
> C# to VB
>
> <script language="C#" runat=server>
> protected void Page_Load(Object Src, EventArgs E)
> {
> if (IsPostBack)
> {
> // authenticate user
> // NOTE: how this check is done and a discussion of what
happens is
> discussed in the
> // next two sections: Authenticate the login credentials
and
> // Create the FormsAuthenticationTicket (with
> RedirectFromLoginPage).
> if (true)
> {
>
FormsAuthentication.RedirectFromLoginPage(emailaddr.Value,
> false);
> }
> else
> {
> Msg.Text = "Invalid Credentials: Please try again";
> }
> }
> }
> </script>
>
>
> Many Thanks
>

Similar Messages

  • Unable to download Adobe Reader Help please

    I just started working at my new job as a receptionist and i am trying to download the adobe reader but after i click on the "RUN" button is asks me for a user name and a password. How can i go about fixing this problem, can anybody help Please?

    Your account on that computer is not a system administrator account. This is standard practice on workplace workstations. It saves a lot of headaches for companies. You need to get in touch with your I/T person or department and have them either: change your account to a system admin (which I don't think they'll do-but it's worth a shot) or have them perform the install.

  • PROP RES DLL not responding blocks my printer since installing Adobe XI Help please

    An error message-PROP RES DLL not loading- appears every time I try to use my printer, since downloading Adobe XI.I then cannot use my printer.
    Please advise in simple language, how I can clear up this problem.

    Try reinstalling or updating your printer driver.
    If you need more help with this, tell us your operating system & version, as well as the exact printer model you are using.

  • Adobe reader help please

    hi. have just subscribed and paid for adobe reader convert pdf to word docs on my phone. now on the pc, will not allow me to convert to word, just asks me to subscribe but i already have! please help!

    Hi there nmharris,
    You should definitely be able to use your subscription on both your phone and your computer. It sounds like you just haven't signed in to ExportPDF on your computer.  From the ExportPDF website, click Sign in at the upper-right corner, and log in to the service with your Adobe ID credentials. Now, when you click ExportPDF, you'll be prompted to select PDF files to export, instead of being asked to subscribe.
    Please let us know if you need additional help.
    Best,
    Sara

  • Flash tutorial help, please?

    Hello! Let me start by saying that I am very familiar (not a
    pro by any means) with Flash (I own CS4 pro) and I just completed
    the Flex 3 video series here on adobe.com. I am a pro with
    XML/PHP/HTML/Etc... But what I am asking is this! I want to be able
    to build a complete site like this:
    http://s3.envato.com/files/88829/index.html#/home
    I know that this site was designed using the GAIA platform
    but I would like to build a full site like this from scratch. I
    have read tons of books but am at a complete loss of where to
    start.
    PLEASE! For the love of Crom!!! Could someone please point me
    in the right direction. Is there a site ANYWHERE!!! (or even a
    really good book!) That explains the full development process, just
    one good tutorial could set me in the right direction!
    Thank you all every much!
    Sincerely yours, in mental illness...
    Tyr Rin

    Here are a few tutorial site that I visit often:
    http://www.gotoandlearn.com/
    http://www.actionscript.org/
    http://www.kirupa.com/
    http://www.flashandmath.com/
    http://www.lynda.com (paid service
    though)

  • Adobe download help PLEASE!!!

    I have two work video files that need to be played on adobe flash player. However, i go to their site and try download it. My computer asks me if i initiated the download, and i click yes, then it asks me if i want to download and i click yes. Then an adobe downloading window pops up and downloads it and says successful download. But it didn't ask me where i wasnted to save destination? I also can't find it anywhere on my computer? I go to add/remove programs and i see it there, but when i perform a search on my hard drive it is nowhere to be found? I tried deleting it and reinstalling it and no luck..
    Someone please helo me...What am i doing wrong?

    stack132 wrote:
     ...What am i doing wrong?
    Actually I am wondering what you are doing at all?  I've never seen questions like if you "initiated the download"...
    Anyway, from your mentioning Add/Remove Programs I see that you are on Windows.  Download these files
    FP uninstaller from http://www.adobe.com/go/tn_14157 (save to disk);
    FP installer for Internet Explorer http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe (save to disk);
    FP installer for all other browsers http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe (save to disk);
    Now close all browser windows, then run the downloaded uninstaller, followed by the relevant installer(s).

  • Adobe Air Help, Please!

    I do not know how to reach a forum where I can enter my question - I would be grateful if someone could direct me how to do this, please!
    My question is:-
    I keep getting a popup that I require to install Adobe Air. I have researched Adobe Air, and I do not use any of the Programmes or actions which Adobe Air is supposed to emhance. How can I stop this popup appearing, it is quite annoying!
    Thank you for any asistance.
    CxZAR

    You may want to try this user's suggestion:
    Windows 8.1 control program Adobe Air uninstall fails with "error occurred, contact administrator"

  • Hard drive died. Wrote back-up image to new drive, but can't open Adobe. Help, please.

    I own Adobe Acrobat 9 Professional.  This software can be installed on two computers.
    The hard drive in one of my two computers died.  Fortunately, I've been doing full-image back-ups (which include the operating system) to an external hard drive.  I copied the most recent image (a few hours old) onto the new hard drive.
    I can't open Adobe Acrobat 9 Professional from new hard drive.  It's telling me that I already have installed it twice and that I'm requesting a third installation which isn't permitted.
    How do I get a usable copy Adobe Acrobat 9 Professional on the new hard drive?
    Do I perform a Windows Control Panel "Delete" on the program and re-install it from scratch?
    Or, is there another procedure?
    OR, am I SOL?
    Thank you,
    Julie

    You don't mention the backup software you use, but it would SEEM that it is missing the "hidden" registration files on your hard drive
    I use multiple boot drives, via drive swap hardware, making and restoring backups each time I test new software... really easy to go back to "before install" by swapping a drive or restoring a backup... described at http://www.pacifier.com/~jtsmith/ADOBE.HTM
    The backup software I use is at http://www.terabyteunlimited.com/image-for-linux.htm - the program includes a "makedisk" routine to make a bootable CD, so the software runs on Linux, completely outside Windoze, and goes direct to the hardware controller, not through the Windoze drivers
    This creates a COMPLETE image to an external USB hard drive, and the restore works with all registration information intact

  • Adobe & Excel help please

    When publishing excel docs i used to get exactly what was in the work sheet. Now for some reason a Graphic logo  and the text box is missing. This seems to have happened since I  installed servise pack 2 for Vista, although this may be a coincedence. any ideas please

    Things have got worse now can not publish at all., Get this error
    Have uninstalled and reinstalled still have same error. Am trying to publish a worksheet from excel as said before have done this many time, some one must know whats going on LOL.

  • Adobe CEF Helper multiple instances causing problems using newest CC  1.5.1.369

    I just reinstalled all CC and Apps after a clean refresh wipe of PC.  Within one week I am having several crashes and lockups and other strange behavior while using Photoshop, Indesign and other apps.
    The lockups have been getting progressively worse, starting with very short delays while switching between apps or even switching to desktop to mouse click a file icon there which seemed almost like my machine would get focused on whatever app I was in and would not immediately release when I switched to do other things.  Now the lockups are getting longer.  Photoshop is also not fully closing down.  So later if I reopen it, a photoshop process is still running in Task Manager and I must force it down before I can open a new file in a new instance of photoshop. 
    Today I had one complete crash of PS, as well as some strange lockup when I had two small ad files open.  We are talking 1/6th page ads - small.  I had them open side by side when it locks up and only thing I can move is the mouse curser which has changed to an "unallowed" icon (circle with slash). Rest of application and tools were locked up.  In one of the files it would let me click a layer in the file and it would jump around the page.   I checked Task manager and multiple CEF helpers were running around 30-50,000K private memory working set, and one of the CEF helpers was fluctuating between 13-20% or so of CPU usage.  I immediately ended that service and photoshop started working again and I was able to save the files.   I'm still noticing other problems like not being able to select multiple items at one time to copy/paste seen both in Indesign and Adobe acrobat pdf files.
    I remember hearing about this issue long ago and checked the forums.  Low and behold the long time Adobe CEF Helper problem thread was closed by a staffer in Feb, 2014, stating the following:
    https://forums.adobe.com/thread/1235395?start=120&tstart=0
    Jeff A Wright Feb 14, 2014 8:37 AM (in response to Michael.Noble64)
    Locking this discussion as the cause of the excessive usage of Adobe CEF Helper was addressed in version 1.1.2.232.  For full release notes please see Creative Cloud app for desktop | Release Notes -http://helpx.adobe.com/creative-cloud/release-note/cc-release-notes.html.
    If you are experiencing difficulties with the Adobe CEF Helper please post a new discussion with the specifics of the behavior you are encountering.
    I am having problems with the CEF helper and I have CC 1.5.1.369 as far as I can tell, on a fresh install a week old.
    System:
    Windows prof 7 sp1 64bit, 32gb ram, SSD main drive and mechanical data drive
    Items added to this PC are autodesk products and Adobe CC Apps.   I don't have a number of addons for CC apps like photoshop, just one plugin for photoshop called Geographic Imager.
    Hopefully there is something more subtle I can try besides wiping my PC and reinstalling all the apps and settings again.  A pc refresh and install this time with up to date CC and Apps was meant to fix all my broken file associations issues from previous updates - which it did.  But was hoping not to end up with a dreaded CEF helper issue.  Any help would be appreciated as this seems to be getting worse daily.
    Other note, I turned off Syncing of settings when I first started noticing issues.  Haven't tried much else besides ending CEF helper services when forced to.

    I just want to note that my recommendations led my clients to purchase more than 5 licences of FMIS/AMIS througt the time.
    As I see how low is the passion to react to any problem on Adobe side, I would have probably changed my mind.
    This is really pain in the *** as any call to adobe official contact (taken on mind that to find one is a big quest by itself) lead just to reply "pay nasty amount for our consultancy Sir!" and it does not look any better here....
    I am no novice on FMS/AMS platform, working with it more than 6 years throught many projects and I would not ask for some stupid questions which could be solved just by looking to documentation or could be solved by some performance eperience.
    I am really upset for this :/

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Not able to open adobe XI Pro after I have filled out a documents and trying saving it. The program stops working & won't open up again.  Tried to complete a repair, rebooting nothing works. Help please.

    Hi,
    Can you pls. provide more details of the issue?
    OS/Platform
    It would be great if you can provide the MSI logs for repair from the %temp% directory.
    Thanks,

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it. help help help please - I have latest version of indesign - thanks

    I am pulling my hair out! I am using adobe indesign and just want to make a text box 'autofit text' as I change fonts a lot and want the font to automatically re-size as I change it.
    Is it not possible to create a text box, fill it with dynamic (data driven) text, but make the font size either scale up or down automatically, so that the entire text box is filled? This is a feature in PrintShop Mail Pro called COPY FIT. but no such feature in Indesign??
    help help help please - I have latest version of indesign - thanks, DJ

    lol... it seems to work, but I have another huge problem!
    Apparently .CSV files cannot contain page breaks in the data! The data I am trying to merge is a 'letter', with paragraphs, line breaks, etc.,
    But, after data merging, it ignores page breaks and only merges the first paragraph of each letter. (sigh)
    Solution? Hopefully, an EASY solution. lol as we have thousands of records.
    Is there a third party indesign plugin that will allow .xml, or .xls data merge import??
    Thx,
    DJ

Maybe you are looking for

  • Can I install and use XE on Windows 7 Home Premium 32 bit?

    I would like to install Oracle XE as a learning tool but have Windows 7 Home Premium 32 bit which I see in the installation guide is not supported. I guess the answer therefore is to upgrade to Windows 7 Professional which the XE Installation Guide s

  • Credit Memo Request creation in VA01 transaction Code

    Hi All, Thank You very much in advance for reading this Query. My Requirement is we have to create Credit memo Request in VA01 Transaction Code.But I tried to use the standard FM BAPI_SALESORDER_CREATEFROMDAT2 and It is throwing the Error "Unpermitte

  • HT1462 Disable Built in cam

    How can I disable my built in cam and set up a remote cam? I cannot get the built in cam to have more than one angle and position.

  • Slow Start up and unable to login

    Hi I am having a bizarre problem with Mac OSX 10.4.9 on a PPC G5. When I boot the Mac up it takes ages to start up. Once it crawls its way through the start up. It opens with the manual login prompt (type in your user name and password) it loses the

  • Oracle applications performance

    Does anyone have any good best practices regarding how to increase the performance of oracle applications ? Found this resource http://www.princetonsoftech.com/html_email/garfield/registerwebinar.asp?id=ggoracleapps but other than this doesn anyone h