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
U

ublend

@ublend
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • multiselect listbox - set selections using delimeted string
    U ublend

    thanks for the reply - I found that I was making it way too complicated... :laugh: Condango had the solution: to highlight from database to multiselect where SelectedDisplayValue is the value from database(eg SelectedDisplayValue= 3,4,10) For i = 0 To (objListbox.Items.Count - 1) If InStr(SelectedDisplayValue, objListbox.Items(i).Value) Then objListbox.Items(i).Selected = True End If Next

    ublend

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

  • Link protection
    U ublend

    how are you authenticating your users? - If you are using a database to store their userID and password, you could use a script like this to signify that they are authenticated: ----use your database connection then check the form data against the data in your admin table like: Dim myPW, username,mystatus username=request("username") myPW=request("myPW") Set RSlog = Server.CreateObject("ADODB.Recordset") RSlog.Open "Select * from Admin where username='"&myLogin&"' and   password='"&myPW& "'", Conn, 2, 2 If not RSLog.eof or not RSLOG.eof then myStatus="IN" end if then lower in my page, where I want active links or not, I would code something like this: Response.Write ("<a href="yourURLorFilepath/" & RS("filename")& """>Link</a>") else response.write("link not available") end if Hope that helps. Happy coding

    ublend

    ASP.NET com tutorial question

  • Link protection
    U ublend

    Have you tried setting the navigateUrl property based on the status of their login? If variable <> "your logged in value" Then Me.HyperLink1.NavigateUrl = "" End If

    ublend

    ASP.NET com tutorial question

  • multiselect listbox - set selections using delimeted string
    U ublend

    I have a multiselect listbox that sends selections to the database field separated by commas - no problem there. No problem displaying the data. I need to allow folks to edit the form data so I have a formview with all fields bound but when I try to bind the multiselect listbox, I get an error (because the data does not match the listbox items) - So, I put the data into an array, intending to use the array values to set the selected items in the listbox. But I am a long time asp coder and cannot get my brain around how to do this with asp.net (VB)... I'm sure that I need to loop through the array values and compare them to the listbox values (loop within loop...) I cannot believe I am the only one out there who has had to set the selections of a listbox this way... Any help is MOST appreciated. This rediculous issue is holding up my entire project..... Thanks

    ublend

    ASP.NET help csharp asp-net database data-structures
  • Login

  • Don't have an account? Register

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