|
uglyeyes wrote: For i = 0 To dlScChart.Items.Count - 1
dlScChart.Items(i).FindControl("placeholder1").Controls.Add(chart)
Next
Where is dlScChart defined and created?
You also may get better results if you posted this question in the right forum.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
Just an Idea as its not letting me post asp scripts as a whole
----------
datalist id="dlScHead"
ItemTemplate
.. ctype(DataBinder.Eval(Container.DataItem,"ScoreCardID"),string).. |
datalist ID="dlScChart" DataSource=..(GetRecords(Cstr(DataBinder.Eval(Container.DataItem, "ScoreCardId")))) ..
ItemTemplate
<asp:placeholder id="Placeholder1" runat="server">
/ItemTemplate
<%# Server.htmlDecode(DataBinder.Eval(Container.DataItem,"Quarter1").tostring()) %>
<%# Server.htmlDecode(DataBinder.Eval(Container.DataItem,"Quarter2").tostring()) %>
<%# Server.htmlDecode(DataBinder.Eval(Container.DataItem,"Quarter3").tostring()) %>
<%# Server.htmlDecode(DataBinder.Eval(Container.DataItem,"Quarter4").tostring()) %>
|
/ItemTemplate
/asp:datalist
|
|
|
|
|
No it means nothing to me.
Like I said - post your question in the right forum (hint: try ASP.NET or Web Development ). You may get an answer there.
This forum is for VB/VB.NET questions.
Also a hint for pasting code..... check the checkbox named Ignore HTML tags in this message (good for code snippets) .
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
Hi all,
im new to vb.net and im trying to lure myself to it.
im trying to create a simple logon program using MS ACCESS as my database.
can somebody help me out on how to validate a log-in transaction.
i'am totally lost on this.
tnx...
-::maximus::-
|
|
|
|
|
Like 95% of people, you're jumping in too deep. If you're new to VB, learn he langue first, then worry about databases.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How can I create a batch file using vb.net and then execute the batch file by clicking a button on the form. After the batch file has finished executing, it will be deleted.
Thank you for any reply
|
|
|
|
|
A batch file is just text. Just create a text file, called something.bat. Process.Start will run it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
or
You can simply do it using shell function without creating a batch file.
Shell("CommandLine1 & CommandLine2", AppWinStyle.Hide)
Regards,
Chatura Dilan
|
|
|
|
|
When I run my application, and type letter “a” (letters), I need to type a Unicode character(s) instead of letter “a”(in word pad or any word processing application). I have seen applications like that, but I have no idea how to do that
Do you have any ideas?
Thank You,
&
Regards,
Chatura Dilan
|
|
|
|
|
Wonder if any of you guys could point me in the right direction? Everywhere I've searched on Google always shows me how to do this with a datagrid - but not a form - and it just doesn't seem to want to work how I want it work.
I've created a form which correctly displays all my fields in a recordset. I can scroll through them, add new records, delete records, etc. etc. and everything is fine.
I now want to add a Search field to the form so that when the user enters a search string, it automatically searches through the dataset for EITHER the CompanyName OR the CompanyID - and refreshes the display to display the appropriate search result (ie. populates the currently open form with the appropriate record).
-- modified at 18:21 Wednesday 31st May, 2006
I partly figured it out - but can't get it to work with an OR part of the SQL. Any advice would be appreciated. The CompanyID is an Autonumber field.
Dim strSearch As String = "SELECT * FROM tblCustomersParent WHERE CustomerName Like '%" & txtSearchString.Text & "%'"<br />
<br />
Me.OleDbSelectCommand1.CommandText = strSearch<br />
Me.LoadDataSet()
|
|
|
|
|
Are you trying to do a like on the auto number field?
"SELECT * FROM tblCustomersParent WHERE CustomerName Like '%" & txtSearchString.Text & "%' or CompanyID = " & txtCompanyName
You should really look at using parameterized queries as well.
Mike Lasseter
|
|
|
|
|
Hi - yes, the query was pretty much like you've suggested. I had tried:
"Select * From tblCustomersParent Where CompanyName Like '%" & txtSearchString.Text & "%'" & _<br />
" or CompanyID Like '%" & txtSearchString.Text & "%'"
and then...
"Select * From tblCustomersParent Where CompanyName Like '%" & txtSearchString.Text & "%'" & _<br />
" or CompanyID Like " & txtSearchString.Text
... and ended up just commenting out the OR bit
What do you mean when you say, "parameterized queries"? Could you show me an example?
|
|
|
|
|
hi,
A DATABASE IS RETRIEVED IN A DATAGRID then i want to use "find box" to find the record exactly the same as MS ACCESS USES.
bye.
|
|
|
|
|
I haven't worked with MS Access in a while, so I'm not sure how they do it. The easiest way to do this is to cycle through the rows until you find what you need.
Dim row As DataGridViewRow
For Each row In DataGridView1.Rows
If row.Cells(0).Value.ToString = TextBox1.Text Then
DataGridView1.CurrentCell = row.Cells(0)
Exit For
End If
Next
The 0 in the cells parameters should match whatever column you want it in.
HTH
|
|
|
|
|
Thanks leeland
but datagridviewrow is not defined , so it is showing systex error.
what is datagridviewrow here.please explain.
|
|
|
|
|
DataGridView is the .Net 2005 version of the DataGrid (2003). You should be able to use the same type of logic to find values in the datagrid.
Mike Lasseter
|
|
|
|
|
I need a program which will read the local machine users and group membership and export this information to either a tab delimited file or an xml file.
Any help appreciated, I can get the active directory users and groups easilly, but am stumped on how to get it from the local machine. FYI I got handed this for a security audit and don't want to have to go to each computer to get it.
Thanks in advance.
|
|
|
|
|
hi everybody
how i execute this winzip to a file by using vb.net
and return the new file.zip
thanks
|
|
|
|
|
Well, if you want to do it completely "behind the scenes" you'll need to get the command line add-in.
[^]
Once you have that installed, you can create a string for the additional parameters and pass it to a shell command
str = "c:\path\to\winzipcl.exe file.zip file1 file2 file3"
shell(str)
|
|
|
|
|
Well if you provide a more meaningful subject line then maybe you'll get a better response. The one you have used here and in your previous post are simply crap and do not mean anything.
BTW double posting - especially when someone has already answered your previous post - is considered bad manners on forums such as The Code Project.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
If it were a *help* I could have helped you .
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Hi!
How can i copy a file to a diferent domain?
Use vb.NET language and do not share a folder option.
Is it possible?
Thank all.
Kosta
|
|
|
|
|
As long as you have rights to the directory on the remote domain you can write to it. The only difference is that when you connect, you have to use a username that is recognized on the remote domain. You'll also need to use the full username: Domain\Username
|
|
|
|
|
hi everybody
please help me
how i can use the external program in vb.net for example winzip and where this program must be placed
thanks
|
|
|
|
|
Shell("Drive\Path\FileName.Ext")
|
|
|
|