Forum: VB.NET Jul 17th, 2009 |
| Replies: 3 Views: 1,206 Lets say that in the loadmain you set text for a label like this
Label1.Text = "Load Main"
But you want to do the same thing if you click a button, then create a function called for example... |
Forum: VB.NET Jul 8th, 2009 |
| Replies: 2 Views: 407 Let's say you have a variable temp
Dim temp As String = "05/02/2005"
Dim ar() As String = temp.Split("/")
TextBox1.Text = ar(0)
The result of ar(0) is 05 i hope that help you. |
Forum: VB.NET Jun 25th, 2009 |
| Replies: 6 Views: 1,276 Ok once you have a connection set up, the easiest way to go is using a dataset you can basically do this. i did not test this.
Dim statement As String = "SELECT EmployeeId, FName FROM tblEmployee"... |
Forum: VB.NET Jun 11th, 2009 |
| Replies: 2 Views: 670 Hi, you should open the connection cn.Open() and then cn.Close() also you have a problem and the insert statement you are calling label1.text as lable1.text.
besides that check your table and see... |
Forum: VB.NET May 26th, 2009 |
| Replies: 5 Views: 687 Just double check this, I am not sure. but when you say this
For i As Integer = 1 To CheckBoxList2.Items.Count
I think the checkboxlist index start in 0. |
Forum: VB.NET May 26th, 2009 |
| Replies: 5 Views: 687 |
Forum: VB.NET May 26th, 2009 |
| Replies: 5 Views: 687 Make sure your dropdownlist does not have duplicate values, for example if you result set when you bind the sub category dropdownlist have a duplicate value, when postback is going to go back to... |
Forum: VB.NET May 19th, 2009 |
| Replies: 6 Views: 799 Try this
Select a.SubCat_Name from SubCategory as a inner join category as b on a.SubCat_Cat_id = b.Cat_id
where b.Cat_name = '" & DirectCast(e.Item.FindControl("chkCategory"), CheckBox).Text &... |
Forum: VB.NET May 18th, 2009 |
| Replies: 6 Views: 799 ok, i do not know if this is the best solution but it work.
I test this try to replace your statement in values, notice the event OnItemDataBound that makes the trick.
aspx
<table>
... |
Forum: VB.NET May 18th, 2009 |
| Replies: 6 Views: 799 well i can tell you right now why.
you are retreiving category and sub category and the same resultset and your data is show as example.
Category Sub_Categor
Network ... |
Forum: VB.NET May 7th, 2009 |
| Replies: 2 Views: 359 Hi,
I do not know if this can help but try it
replace dr(0) for dr.GetString(0) and dr.GetString(1).
also try in the select retrieve exact the two fields that you want, i do not know what is the... |