Click here to Skip to main content
16,010,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRunning a Share Point page inside of an ASP .Net page Pin
dptalt31-Aug-07 10:02
dptalt31-Aug-07 10:02 
AnswerRe: Running a Share Point page inside of an ASP .Net page Pin
Vasudevan Deepak Kumar1-Sep-07 2:22
Vasudevan Deepak Kumar1-Sep-07 2:22 
GeneralRe: Running a Share Point page inside of an ASP .Net page Pin
dptalt4-Sep-07 9:29
dptalt4-Sep-07 9:29 
QuestionAll Controls in my user control are null... Pin
RoyRose7831-Aug-07 8:00
RoyRose7831-Aug-07 8:00 
AnswerRe: All Controls in my user control are null... Pin
ToddHileHoffer31-Aug-07 8:57
ToddHileHoffer31-Aug-07 8:57 
GeneralRe: All Controls in my user control are null... Pin
RoyRose7831-Aug-07 9:10
RoyRose7831-Aug-07 9:10 
QuestionUsing Flat Files Pin
N a v a n e e t h31-Aug-07 7:49
N a v a n e e t h31-Aug-07 7:49 
AnswerRe: Using Flat Files Pin
ChrisKo31-Aug-07 13:55
ChrisKo31-Aug-07 13:55 
GeneralRe: Using Flat Files Pin
N a v a n e e t h31-Aug-07 18:44
N a v a n e e t h31-Aug-07 18:44 
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"




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.