Click here to Skip to main content
15,896,727 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: How to create web application like windows application Pin
Urs Enzler31-Aug-07 4:24
Urs Enzler31-Aug-07 4:24 
AnswerRe: How to create web application like windows application Pin
Vasudevan Deepak Kumar31-Aug-07 7:29
Vasudevan Deepak Kumar31-Aug-07 7:29 
Questionruntime dropdownlist in grid..., Pin
Member 387988131-Aug-07 1:20
Member 387988131-Aug-07 1:20 
AnswerRe: runtime dropdownlist in grid..., Pin
VenkataRamana.Gali31-Aug-07 1:36
VenkataRamana.Gali31-Aug-07 1:36 
GeneralRe: runtime dropdownlist in grid..., Pin
Member 387988131-Aug-07 1:44
Member 387988131-Aug-07 1:44 
GeneralRe: runtime dropdownlist in grid..., Pin
VenkataRamana.Gali31-Aug-07 1:56
VenkataRamana.Gali31-Aug-07 1:56 
GeneralRe: runtime dropdownlist in grid..., Pin
Member 387988131-Aug-07 2:01
Member 387988131-Aug-07 2:01 
GeneralRe: runtime dropdownlist in grid..., Pin
Imran Khan Pathan31-Aug-07 1:57
Imran Khan Pathan31-Aug-07 1:57 

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.