Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - windows_auth
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

windows_auth

 Post Reply Post Reply Page  <12
Author
pmkosana View Drop Down
Newbie
Newbie
Avatar

Joined: 09 February 2004
Location: Germany
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmkosana Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 5:11am

thank you Guzy and forgive me Mart

 

I was using dataReader for a substitute and it is commented ,but for now I"m using dataset

my code has no more errors but the dataset could not appear because of a datagrid error

can someone help,where can I put this try code for my datagrid

 

the error I get "'Login' is not a member of 'System.Data.DataSet'."

 

try

mydatagrid.datasource=DS.Login("Login1")

mydatagrid.databind()

catch ex as exception errorlabel.text=ex.message

end try

and It is inside my  module -method-function

 

 

thankx in advance

Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 5:17am

txtID.DataBindings.Add(new System.Windows.Forms.Binding("Text", dsTemplate1, "Template.ID"));

This is my databinding in C#.

 

Lee


Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 9:00am

Datasource=Dataset.Tables("YourSQLTable").Rows(x).Collumn("S omeCollumn")

Or something like that. Idd, Login is not a sub function of Dataset..



Edited by Diep-Vriezer
Gone..
Back to Top
pmkosana View Drop Down
Newbie
Newbie
Avatar

Joined: 09 February 2004
Location: Germany
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmkosana Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 7:28am

thank you for you advices

help me with the format

<code>

try

 mydatagrid.datasource=DS.Tables("tStudents")

mydatagrid.databind() catch ex as exception errorlabel.text=ex.message

end try

 

I still have a another problem of declaring an errorlabel ,can anyone tell me where can i declare it in my form of inside the fuction,and plz

</code>

thanks in advance

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 7:39am

Try this

Try

   mydatagrid.Datasource=DS.Tables("tStudents")

   mydatagrid.Databind()

Catch e As Exception

    errorlabel.text=e.message

End Try

Gone..
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.