Yzk commented: Avenged sevenfolds: Thumbs up +13
Tried it, didn't work
I am so glad I posted all of this, my hard drive crashed this morning.
Please guys, I really need help here. Last night I was using my computer and it was working fine. There were zero problems. Naturally, I switched it off and went to bed, it shut down fine. This morning, I go to turn it on, and it sits on the dell setup screen for far longer than normal, then it comes up with the error:
"Primary hard disk drive 0 not found"
Please guys, I really cannot afford to lose this machine. It's a dell inspiron 4100 notebook.
Thanks in advance,
:cry: Slade
Once again Paladine buddy, you've done a great job. Congrats man, good code.
Everyone is welcome in these forums! Welcome to the forums! (see)
lol, sorry about all the comments in there too, I was debugging and forgot to remove them before posting. I might wait until I'm fully finished the internal GUI before I post the code. ahhh what the hey, here's the header:
Imports System.Web.Security
Imports sladesfaculty.header
Public Class header
Inherits System.Web.UI.UserControl
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents imgHome As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgForums As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgGallery As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgLinks As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgMission As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgMembers As System.Web.UI.WebControls.ImageButton
Protected WithEvents imgFacLogin As System.Web.UI.WebControls.ImageButton
Protected WithEvents lblTest As System.Web.UI.WebControls.Label
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'verify authentication
'Put user code to initialize the page here
'verify authentication
If Page.User.Identity.IsAuthenticated Then
'display Credential information
lblTest.Text = "Current User:<b> " & Page.User.Identity.Name
End If
Dim currentpage As String
currentpage = Request.RawUrl
Select Case currentpage
Case "/sladesfaculty/default.aspx"
imgHome.ImageUrl = "/sladesfaculty/Images/Navigation/homeactv.gif"
imgForums.ImageUrl = "/sladesfaculty/Images/Navigation/foruminac.gif"
imgGallery.ImageUrl = "/sladesfaculty/Images/Navigation/galryinac.gif"
imgLinks.ImageUrl = "/sladesfaculty/Images/Navigation/lnksinac.gif"
imgMission.ImageUrl = "/sladesfaculty/Images/Navigation/msninac.gif"
imgMembers.ImageUrl = "/sladesfaculty/Images/Navigation/mbrsinac.gif"
Case "/sladesfaculty/Default.aspx"
imgHome.ImageUrl = "/sladesfaculty/Images/Navigation/homeactv.gif"
imgForums.ImageUrl = "/sladesfaculty/Images/Navigation/foruminac.gif"
imgGallery.ImageUrl = "/sladesfaculty/Images/Navigation/galryinac.gif" …
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="FacLogin.aspx.vb" Inherits="sladesfaculty.FacLogin"%>
<%@ Register TagPrefix="uc1" TagName="header" Src="header.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Slades Faculty</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server">
<table style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" height="100%" cellSpacing="0"
cellPadding="0" width="100%" border="0">
<tr>
<td style="HEIGHT: 1px"><uc1:header id="Header1" runat="server"></uc1:header></td>
</tr>
<tr>
<td align="center" height="100%" valign="middle">
<table cellPadding="0" align="center" border="0" height="168" width="284" cellspacing="0">
<tr>
<td colspan="3" align="left"><asp:Label id="lblCurrentUser" runat="server" Font-Size="X-Small"></asp:Label>
</td>
</tr>
<tr>
<td rowspan="3" width="18" valign="top"><IMG src="Images/OG/lgnlft.gif"></td>
<td width="248" height="24" valign="top"><IMG src="Images/OG/lgntop.gif"></td>
<td rowspan="3" width="18" height="168"><IMG src="Images/OG/lgnrght.gif"></td>
</tr>
<tr>
<td height="118" width="250">
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" background="Images/OG/lgnbg.gif">
<tr>
<td><asp:Label id="Label1" runat="server" Font-Size="X-Small" BackColor="Transparent" ForeColor="Black">Username:</asp:Label></td>
<td align="right"><asp:TextBox id="txtUser" runat="server" BorderStyle="Inset" BorderColor="Black"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td><asp:Label id="Label2" runat="server" Font-Size="X-Small" BackColor="Transparent" ForeColor="Black">Password:</asp:Label></td>
<td align="right"><asp:TextBox id="txtPass" runat="server" BorderStyle="Inset" BorderColor="Black" TextMode="Password"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td></td>
<td align="right">
<asp:CheckBox id="chkPersist" runat="server" Font-Size="X-Small" ForeColor="Black" Text="Remember Me?"></asp:CheckBox></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="248" height="26" valign="middle" background="Images/OG/lgnbtm.gif" align="right">
<input type="submit" value="Login" id="cmdLogin" runat="server" name="cmdLogin"></td>
</tr>
</table>
<asp:Label id="lblStatus" runat="server" ForeColor="Red" Font-Size="X-Small"></asp:Label>
</td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
</form>
</body>
</HTML>
I got it working guys! and for your reference, I will show you the code.
My Web.Config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="strSqlConnectionString" value="server=SLADE;database=sladesfaculty;"/>
<add key="strWebAdminEmail" value="slade@sladesfaculty.com" />
<add key="strWebDevEmail" value="ninjawatch@sladesfaculty.com" />
</appSettings>
<system.web>
<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes
more slowly, you should set this value to true only when debugging and to
false at all other times. For more information, refer to the documentation about
debugging ASP.NET files.
-->
<compilation defaultLanguage="vb" debug="true" />
<!-- CUSTOM ERROR MESSAGES
Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
Add <error> tags for each of the errors you want to handle.
"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.
-->
<customErrors mode="Off" />
<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible modes are "Windows",
"Forms", "Passport" and "None"
"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
its settings for the application. Anonymous access must be disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
you authenticate them in your application. A user credential token …
Hey all, I only want a few extra links to appear once authorized and not have the whole web app off limits by using deny users="?". I want it much the same as daniweb, the userCP link isn't visible until a user has logged in, how do I do this in VB .NET?
heh, that's the thing, it was a laptop HDD.
THanks dude, you truly are a good help.
can you think of any other ways I can do this? Just so that a user can put inputs for the title of the html page and also the body. PLEASE! if you can think of a way to do this than I would give you a special thanks on the actual site, paladine, tekmaven, you allready get one.
Slade
p.s. you too dani, and a link to this site because it is the best lot of forums I have come across.
What I want of my login system is that when a user is logged in (there is only about 5 and all are declared in the web.config), I want two more imagebuttons to appear in the header, what code will I need to do that?
N.B. I'm using VB .NET
if [b]HttpResponse.Cookies[/b] = FormsAuthentication.Authenticate then
imgButton1.visible = true
Is that on the right track? Any ideas guys?
I used FDISK, since the end OS is going to be 98 SE anyways.
hi, I ended up fixing that one. What happened was, I didn't realize the sensitivity of the program an dso I just copied code directly off the net, of course, space characters and whatever else was included in this, hence the error. I ended just retyping the whole lot, then it worked fine.
Thanks for the help tho!
Slade
Any ideas on how to create one partion of all the memory on the HDD? At the moment, it's all unpartitioned space and needs to be formatted using ntfs, all in DOS. Any ideas?
Hi, just curious. By going into DOS and typing oh say:
Format C:
and then answering yes, does that make the format ntfs or fat32?
Thanks in advance, oh and whats the useable memory loss after formatting in FAT.
heh, haven't had the chance to check out your band yet, but I'll get there. I'm sooo busy nowadays it's not funny.
Hi,
On my asp .net site, I want a login page so that when the user is logged in, a few extra links are made visible on the header control (.ascx). Also, there will only be about 4-6 users logging in here, I also want to give each one the ability to edit their own info from a database table. I have allready tried "Forms" authentication and this is what happens.
<authentication mode="Forms" />
<Forms name=".ASPXSession" loginUrl="FacLogin.aspx" protection="All" />
<credentials passwordFormat = "Clear">
<user name="admin" password="admin"/>
</credentials>
</forms>
</authentication>
Of course, this doesn't work, making me really quite angry and frustrated. The error message I receive is as follows:
Parser Error Message: Unrecognized configuration section 'forms'
There is little or no documentation on this error and I feel like killing myself someone.
Please help :sad:
is it possible for vs .net just to copy an allready existing page and edit that? Like a template?
Nice avatar by the way. DBZ used to be my favorite Anime. ^_^
It's cool hey!
There is still more problems... how do I save this page on the server (after user inputs have been made) and how do I make the link to the page automatically appear on the home page? (has the same name as the page title). SO we have figured out how to pass the values onto another page, but how do we save that page once the "submit page" button has been pressed?
nah, didn't show up, and the drivers are installed off the xp address so none are included.
Forgot: Running windows XP Pro
I recently did some research for an assignment for work on graphics programs so as to decide what to use. I found that psp is great for photo editing, but photoshop kicks the hoo ha out of it in digital art. Most of the better art that can be done with psp is all third party (plugins). I haven't used psp since version 7 I think, but I remember compared to the photoshop adjacent version... I didn't like it.
Personal preference!
Slade
Windows, nor bios, will detect the usb hdd. It's 250gb, the cable plugs into a usb port on the computer and a usb 2.0 on the hdd. There is definitely power to it, and everything is connected right, so whats wrong?
lol I'm all ears
<a href="http://www.yoursite.com/app.exe" >CLICK HERE TO INSTALL MY AWESOME APP</A>
is that what you're after?
If you define it in the web config, then it isn't available for users to view. Hence it is secure.
Hope this helped.
Slade
Aye Carumba! -> Bart
Hey all, I just wanna know how to record the time and day a link on my website is clicked to a label, what code do I need to use to get the date and time?.
Private Sub lnkVac_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkVac.Click
Dim Timevisited as string
Response.Redirect("Vacancies.aspx")
label1.text = Timevisited
End Sub
What code do I need to use to get the date and time?
Thanks,
Slade.
A program....
Why does it even matter?
Another one, how to I import the project files, I am getting errors for some of them. The web one is the main one I would like to get into though, so I can change the aspx files to suit my sites design.
words -> letters
Whenever I go to update visual studio 2003 I get the following message:
Visual Studio .net 2003 setup encountered errors while attempting to download required files. Check your web browser configuration settings and your connection hardware, and then try again.
Ok... I am connected to the net, what web browser settings would need to be changed?
yeah, it was still being a pain though, apparently you have to create a project, edit it, then save it before the profile saves.
weird huh?
Slade
lol it's cool buddy... I think that's the info I need. What I'm talking about thought is this:
<html>
<hea><title>(user input goes here)</title>
<Body>
(User input goes here)
</body>
</html>
does that clear it up for you?
Sure did dude!
Many Thanks!
Is there any possible way to manipulate the background image property of a cell <td>? So that I can actually change the BG image when a link is clicked? No?
Well, they aren't full on heavy metal, but they are a cross between a couple of genre's including punk. I really like them though, they have the whole screaming thing going on, you gotta love that. Their website is at http://www.avengedsevenfold.com/ they are so cool it makes me want to cry. Some of their better songs are "Chapter Four", "I won't see you tonight" (parts 1 & 2). The name Avenged Sevenfold actually comes from the bible in chapter four of the genesis when Cain murders his brother Abel, God casts him out and Cain fears he will be murdered freely by anyone but God says that anyone who murders Cain will be Avenged Sevenfold. Although they claim not to be a religious band, the song Chapter four is also about this story. Some of their songs sound dark, but others sound like God himself wrote it.
Check them out! You won't be dissapointed.
p.s. what do you think of AFI's album "Sing the Sorrow"
ewww! -> sissy
Hi, I've recently been to www.bink.nu and I liked the navigation. On my site I would like a similar navigation. For the tabs, I have images, I cannot put a link ontop of the image though! Please help me out here! THe image is supposed to change according to whatever link is active. take for example, the home link is active, then the image behind the tab behind the link is a lighter color than the rest.
Help would be greatly appreciated
Thanks,
Slade
Milo -> sugar
I wish I could help dude, I am waiting for someone to answer my questions too. Just be patient and one of the moderators will get to you :).
Hey, I'm making a website as you all know by the millions of threads I've created, and I have a members area. I will have a datagrid that will display data and an image (chosen by the user). All data is bound to a database stored procedure. I suppose I will give each user a certain path and filename for their image. e.g. zorba will get www.sladesfaculty.com/images/imgZ.jpg. How do I enable the users to overwrite this file, but not any others?
If there is a better alternative to this, please tell me :confused:
Thanks,
Slade