3 Replies - 1448 Views - Last Post: 18 October 2013 - 08:39 AM Rate Topic: -----

#1 lions1855  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 01-October 13

Converting VBScript to ASPX Net

Posted 01 October 2013 - 03:24 PM

Hi

I need someone to help converting this code.
<%
Dim Strgroups

Const STAFF_GROUP = "cn=staff"
Const STUDENT_GROUP = "cn=student"

Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)

If IsArray(CurrentUser.MemberOf) Then
        strGroups = lcase(CurrentUser.MemberOf)
Else
        strGroups = LCase(Join(CurrentUser.MemberOf))
End If


If InStr(strGroups, STAFF_GROUP) Then
%>
       <a href="http://capitawebservices/internetbuilder">Columbus</a>
<%
 End If
%>


Mod edit - Please :code:

Is This A Good Question/Topic? 0
  • +

Replies To: Converting VBScript to ASPX Net

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1134
  • View blog
  • Posts: 7,094
  • Joined: 07-September 06

Re: Converting VBScript to ASPX Net

Posted 01 October 2013 - 03:29 PM

What problems are you having? We won't just do your work for you.
Was This Post Helpful? 0
  • +
  • -

#3 lions1855  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 01-October 13

Re: Converting VBScript to ASPX Net

Posted 02 October 2013 - 04:07 AM

Hi

I was not looking to have the community do the work but to assist on turning the code into modern vb.net. The code is very simple. The purpose is to redirect the a user, login through an aspx web page and who is a member of a group, to a particular web page.

The code was programmed in an old method which seems to me is not very secure. Nevertheless, it is my impression that as a community we can help each other.

Thanks
Was This Post Helpful? 0
  • +
  • -

#4 h4nnib4l  Icon User is offline

  • The Noid
  • member icon

Reputation: 1181
  • View blog
  • Posts: 1,673
  • Joined: 24-August 11

Re: Converting VBScript to ASPX Net

Posted 18 October 2013 - 08:39 AM

Ahh, but if you expect the community to do the translation, then that would count as "the work" in this situation. The way it works here is you make a (legitimate) attempt, and if it doesn't work, you post the code and tell us what isn't working, and we'll help you fix that problem.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1