Click here to Skip to main content
16,011,849 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: it's urgent please Pin
gauthee7-Mar-07 17:52
gauthee7-Mar-07 17:52 
QuestionHow to create these GridViews? Pin
shapper7-Mar-07 13:47
shapper7-Mar-07 13:47 
AnswerRe: How to create these GridViews? Pin
Naveed Kamboh8-Mar-07 3:36
Naveed Kamboh8-Mar-07 3:36 
QuestionWanted: Opinion about ASP.NET UI components suites Pin
Gunman697-Mar-07 12:33
Gunman697-Mar-07 12:33 
QuestionUser Control Usage Pin
Sam Heller7-Mar-07 12:01
Sam Heller7-Mar-07 12:01 
AnswerRe: User Control Usage Pin
Guffa7-Mar-07 12:41
Guffa7-Mar-07 12:41 
GeneralRe: User Control Usage Pin
Sam Heller7-Mar-07 22:57
Sam Heller7-Mar-07 22:57 
Questiona little help here Pin
blitz2bleach7-Mar-07 11:45
blitz2bleach7-Mar-07 11:45 
im doing a samle project that i want to include in my project..

here is the sample code...

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>


<%@ Import Namespace=System.Web.HttpException %>




<title>Northwind Database Login






Sub doInsert(Source as Object, E as EventArgs)
Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("C:\Documents and Settings\Joy.PHOENIX-1D0486C\Desktop\userId.mdb") & ";"
Dim MySQL as string = "Insert into Members (uid, pwd, fullname, email) " & _
"Values (@uid, @pwd, @fullname, @email)"
Dim MyConn As New Data.OleDb.OleDbConnection(strConn)
Dim Cmd As New Data.OleDb.OleDbCommand(MySQL, MyConn)
With Cmd.Parameters
.Add(New Data.OleDb.OleDbParameter("@uid", frmuid.Text))
.Add(New Data.OleDb.OleDbParameter("@pwd", frmpwd.Text))

.Add(New Data.OleDb.OleDbParameter("@fullname", frmfullname.Text))
.Add(New Data.OleDb.OleDbParameter("@email", frmemail.Text))
End With
MyConn.Open()
cmd.ExecuteNonQuery()
MyConn.Close
'Put a label on your page to contain the 'success' response:
lblMessage.Text = "Thank you for signing up. An email will be sent to you shortly." & _
"Your response will be needed from that email to activate your account"

End Sub







uid <asp:textbox id="frmuid" runat="server">
pwd <asp:textbox id="frmpwd" runat="server">
fullname <asp:textbox id="frmfullname" runat="server">
email <asp:textbox id="frmemail" runat="server">
<asp:button
id="button1"
="" onclick="doInsert" text="Submit" runat="server">


<asp:label id="lblMessage" runat="server" width="288px" forecolor="#C00000" font-size="Medium"
="" font-italic="True" font-bold="True">




--this code is like a Simple Log in and insert the data in the database.. a made already a blank database..but when i run it this is the error i've got
-System.web.HtppException-{"'(URL HERE or Data Path)\userId.mdb' is not a valid virtual path."}
-would someone describe what is the meaning of this error and what would be the solution or whatever?Confused | :confused:



_Thanks for helping
AnswerRe: a little help here Pin
Guffa7-Mar-07 12:47
Guffa7-Mar-07 12:47 
AnswerRe: a little help here Pin
Sam Heller7-Mar-07 12:51
Sam Heller7-Mar-07 12:51 
QuestionUploading ASP.NET website Pin
hamidreza_buddy7-Mar-07 10:45
hamidreza_buddy7-Mar-07 10:45 
QuestionHow do I send an aspx file to a particular frame location Pin
Vernware7-Mar-07 9:37
Vernware7-Mar-07 9:37 
AnswerRe: How do I send an aspx file to a particular frame location Pin
Arindam Tewary7-Mar-07 22:45
professionalArindam Tewary7-Mar-07 22:45 
GeneralRe: How do I send an aspx file to a particular frame location Pin
Vernware9-Mar-07 2:54
Vernware9-Mar-07 2:54 
GeneralRe: How do I send an aspx file to a particular frame location Pin
Vernware9-Mar-07 10:44
Vernware9-Mar-07 10:44 
QuestionDatabase Pin
Tyrone_whitey7-Mar-07 9:30
Tyrone_whitey7-Mar-07 9:30 
AnswerRe: Database Pin
Naveed Kamboh8-Mar-07 0:35
Naveed Kamboh8-Mar-07 0:35 
QuestionOpening a new Window when Log In/Sign In is success Pin
blitz2bleach7-Mar-07 9:18
blitz2bleach7-Mar-07 9:18 
QuestionPages created from data Pin
grantg7-Mar-07 9:07
grantg7-Mar-07 9:07 
AnswerRe: Pages created from data Pin
Sam Heller7-Mar-07 13:00
Sam Heller7-Mar-07 13:00 
QuestionExport asp.net page to Word with Image Pin
BAO THANH7-Mar-07 5:58
BAO THANH7-Mar-07 5:58 
QuestionGrouping ASP.NET controls together Pin
mail5723527-Mar-07 5:40
mail5723527-Mar-07 5:40 
AnswerRe: Grouping ASP.NET controls together Pin
kubben7-Mar-07 6:42
kubben7-Mar-07 6:42 
AnswerRe: Grouping ASP.NET controls together Pin
Jon Sagara7-Mar-07 11:43
Jon Sagara7-Mar-07 11:43 
Questionwindow opening Pin
netJP12L7-Mar-07 5:39
netJP12L7-Mar-07 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.