Click here to Skip to main content
15,922,427 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Clear Session While Browser Close Pin
carlecomm20-Jan-10 18:20
carlecomm20-Jan-10 18:20 
Questionasp:menu control working slow on large amount of data on a page Pin
sanjubaba18-Jan-10 20:06
sanjubaba18-Jan-10 20:06 
QuestionReporting Service Error Pin
sekannak18-Jan-10 17:53
sekannak18-Jan-10 17:53 
QuestionCss Stylesheet - text-align property not working as I understand it should Pin
Tina P18-Jan-10 16:51
Tina P18-Jan-10 16:51 
AnswerRe: Css Stylesheet - text-align property not working as I understand it should Pin
Rutvik Dave18-Jan-10 17:10
professionalRutvik Dave18-Jan-10 17:10 
GeneralRe: Css Stylesheet - text-align property not working as I understand it should Pin
Tina P18-Jan-10 18:01
Tina P18-Jan-10 18:01 
GeneralRe: Css Stylesheet - text-align property not working as I understand it should Pin
m@dhu18-Jan-10 19:27
m@dhu18-Jan-10 19:27 
QuestionTry Catch Pin
kris_viswa18-Jan-10 16:48
kris_viswa18-Jan-10 16:48 
hi
I am posting code wherein i am populating my datatable from an excel sheet and reading the sheet name through the user input in textBox5. Inspite of wrong value in the textbox my catch code do not execute and instead the default error page is displayed where as the expected routine is that it displays the message in lblmessage so that user corrects the entry.

Try
query = "SELECT * FROM [" & TextBox5.Text & "$]"



'Create the connection object
conn = New OleDb.OleDbConnection(connString)
'Open connection
If conn.State = ConnectionState.Closed Then conn.Open()
'Create the command object
cmd = New OleDb.OleDbCommand(query, conn)
da = New OleDb.OleDbDataAdapter(cmd)
ds = New DataSet()


da.Fill(ds)

Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = (ex.ToString())
Finally
conn.Close()
End Try

may i request guidance from experts to understand the above problem

thanks in advance
kris
QuestionFont growing on server transfer Pin
kris_viswa18-Jan-10 16:29
kris_viswa18-Jan-10 16:29 
AnswerRe: Font growing on server transfer Pin
yesu prakash18-Jan-10 20:08
yesu prakash18-Jan-10 20:08 
QuestionDoes SOAP protocol assure data transmit? Pin
Fired.Fish.Gmail18-Jan-10 16:28
Fired.Fish.Gmail18-Jan-10 16:28 
AnswerRe: Does SOAP protocol assure data transmit? Pin
ZHAOBING_NTU18-Jan-10 23:22
ZHAOBING_NTU18-Jan-10 23:22 
QuestionSessionID to be stored in the URL Pin
indian14318-Jan-10 13:32
indian14318-Jan-10 13:32 
AnswerRe: SessionID to be stored in the URL Pin
Prosanta Kundu online18-Jan-10 17:13
Prosanta Kundu online18-Jan-10 17:13 
AnswerRe: SessionID to be stored in the URL Pin
Brij18-Jan-10 19:51
mentorBrij18-Jan-10 19:51 
QuestionRetrieve value from Details View Pin
Samb198518-Jan-10 10:53
Samb198518-Jan-10 10:53 
QuestionProblem with paging with Grid View and Details View Pin
Samb198518-Jan-10 10:42
Samb198518-Jan-10 10:42 
Questionread from excel Pin
arkiboys18-Jan-10 4:55
arkiboys18-Jan-10 4:55 
AnswerRe: read from excel Pin
Stryder_118-Jan-10 5:58
Stryder_118-Jan-10 5:58 
GeneralRe: read from excel Pin
arkiboys18-Jan-10 21:41
arkiboys18-Jan-10 21:41 
QuestionCrystal Report Pin
mgomathi18-Jan-10 4:53
mgomathi18-Jan-10 4:53 
QuestionDivide single column into five in gridview Template [modified] Pin
trinhitc18-Jan-10 3:24
trinhitc18-Jan-10 3:24 
AnswerRe: Divide single column into five in gridview Template Pin
Anurag Gandhi19-Jan-10 1:58
professionalAnurag Gandhi19-Jan-10 1:58 
QuestionClient Centric or Server Centric Pin
AndyInUK18-Jan-10 2:18
AndyInUK18-Jan-10 2:18 
AnswerRe: Client Centric or Server Centric Pin
RichardGrimmer18-Jan-10 4:30
RichardGrimmer18-Jan-10 4:30 

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.