Click here to Skip to main content
15,920,633 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWeird Validation Problems Pin
Muntyness31-Aug-07 6:11
Muntyness31-Aug-07 6:11 
AnswerRe: Weird Validation Problems Pin
Michael Sync31-Aug-07 6:25
Michael Sync31-Aug-07 6:25 
GeneralRe: Weird Validation Problems Pin
Muntyness31-Aug-07 6:41
Muntyness31-Aug-07 6:41 
Questionsoftware improvement web application Pin
pablopecora31-Aug-07 5:28
pablopecora31-Aug-07 5:28 
QuestionIn session ending Pin
hadad31-Aug-07 3:13
hadad31-Aug-07 3:13 
AnswerRe: In session ending Pin
\laddie31-Aug-07 4:42
\laddie31-Aug-07 4:42 
AnswerRe: In session ending Pin
Vasudevan Deepak Kumar31-Aug-07 7:27
Vasudevan Deepak Kumar31-Aug-07 7:27 
QuestionEnabling line breaks within a textbox? Pin
Goalie3531-Aug-07 3:12
Goalie3531-Aug-07 3:12 
AnswerRe: Enabling line breaks within a textbox? Pin
Fred_Smith31-Aug-07 5:14
Fred_Smith31-Aug-07 5:14 
Questionit's running IIS or Web Development Server? Pin
jonnynolimits31-Aug-07 3:06
jonnynolimits31-Aug-07 3:06 
AnswerRe: it's running IIS or Web Development Server? Pin
\laddie31-Aug-07 4:55
\laddie31-Aug-07 4:55 
Questionscript_calling ? Pin
sanjay_tutu31-Aug-07 2:55
sanjay_tutu31-Aug-07 2:55 
AnswerRe: script_calling ? Pin
pmarfleet31-Aug-07 4:19
pmarfleet31-Aug-07 4:19 
QuestionRe: script_calling ? [modified] Pin
sanjay_tutu31-Aug-07 19:53
sanjay_tutu31-Aug-07 19:53 
AnswerRe: script_calling ? Pin
pmarfleet1-Sep-07 1:11
pmarfleet1-Sep-07 1:11 
QuestionAuthentication Pin
jaysheel31-Aug-07 2:52
jaysheel31-Aug-07 2:52 
Hi,

I want to retreive the user id of the person who visits the page created by me. Till now I was using the System.Identity.Name method to retreive user id of the person. But this gives me the user id of the person who is logged in the system.It didnt give me any worries since I was using VS in my machine. Now when I try to run the page from IE of other machine it is giving error which says Input string was not in a correct format. I am including the codeline where it is giving error.


txtid.Text = Right(User.Identity.Name, 6)

Dim sconnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Mypath\DW\DW.mdb;User ID=Admin; Password="

Dim dbcon As New OleDbConnection(sconnection)



Dim myCommand = New OleDbCommand("Select associate_id from dwbi", dbcon)

Dim dr As OleDbDataReader

dbcon.Open()

dr = myCommand.ExecuteReader()

While (dr.Read())

MsgBox("textid.text")

If dr("associate_id") = txtid.Text Then 'This is where error is pointing

Response.Redirect("Update.aspx")

End If





End While



dr.Close()

dbcon.Close()

End If




End Sub





It is gving the error which says "Input string was not in a correct format"




QuestionMicrosoft.Web.UI.WebControls Treeview Pin
anand tcr31-Aug-07 2:32
anand tcr31-Aug-07 2:32 
AnswerRe: Microsoft.Web.UI.WebControls Treeview Pin
pmarfleet31-Aug-07 4:24
pmarfleet31-Aug-07 4:24 
GeneralRe: Microsoft.Web.UI.WebControls Treeview Pin
anand tcr31-Aug-07 21:19
anand tcr31-Aug-07 21:19 
GeneralRe: Microsoft.Web.UI.WebControls Treeview Pin
pmarfleet1-Sep-07 0:25
pmarfleet1-Sep-07 0:25 
QuestionDataGridview in ASP.Net Pin
somagunasekaran31-Aug-07 2:18
somagunasekaran31-Aug-07 2:18 
AnswerRe: DataGridview in ASP.Net Pin
www.Developerof.NET31-Aug-07 3:41
www.Developerof.NET31-Aug-07 3:41 
AnswerRe: DataGridview in ASP.Net Pin
Nouman Bhatti31-Aug-07 4:15
Nouman Bhatti31-Aug-07 4:15 
AnswerRe: DataGridview in ASP.Net Pin
Urs Enzler31-Aug-07 4:28
Urs Enzler31-Aug-07 4:28 
QuestionHow to create web application like windows application Pin
PadmaPriya.S31-Aug-07 1:49
PadmaPriya.S31-Aug-07 1:49 

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.