|
thnx 4 your interest.I have a grid showing user names and below the grid there is a button.If I select three users in the grid by clicking the check boxes in front of them and clik on the button,then another page having detailed information about the selected users should display..
so my point is how to send these multiple names in qury to the database?
|
|
|
|
|
hi
Ok your explanation is Clearer than before, i understand what you want to do. but now you are Confusing me again when you say
so my point is how to send these multiple names in qury to the database?
Do you mean insert them into the Database ?
Explain more, i understand English is a Problem, but try a bit more to be details in your last Statement.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thank you so much for communication so far.
Dear Vuyiswa I mean that only i.e. I want to inser them into the database.
|
|
|
|
|
I sugest you have a column( called user id) hidden on the data gridview. When you check 4 boxes out of ten then you can use something like.
dim id as integer()
for i as integer = 0 to dgv.rowcount-1
if dgv.rows(i).cols(0).value = true' this is your checked column
id = cint(dgv.rows(i).cols("userid).value)
end if
next
I wrote this code in the reply window you may have to change some few things. id should be public to your project. Once you have populated user id's in the array then
In your new form load you can use something like
for i as integer = 0 to id.getupperbound(0)
sql = "SELECT * FROM table where field = " & id(i)
'decide what you can do here
next
|
|
|
|
|
Hi lnkgoeng,
Thnx a lot for providing me solution.Well I'll try this and will get back to you.
|
|
|
|
|
|
This should really be asked in the ASP.NET forum because it's not actually a question about C#, it's a "how should I architect my web based application".
|
|
|
|
|
Well I'll be writing the code in C#, so it's not all that daft a place to put it...It's a given that my environment is ASP. Thanks anyway though.
|
|
|
|
|
Hello
MSTest /testcontainer:"%comp_path%\TestProject\bin\Debug\TestProject.dll" /runconfig:"%comp_path%\localtestrun.testrunconfig"
/resultsfile:"%logspath%\StandardRealizationTestProject_%mydate%_%mytime%.trx" >>%logfile_path%
this is my test to run my tests over a script.
The TestData directory added in the localtestrun.testrunconfig does not used by the test and the tests does not run succefully ?
any suggestion...
dghdfghdfghdfghdgh
|
|
|
|
|
Hi All,
I am using the Asp.net, C# and SQL Reporting Services 2005 in my project.
What i am doing to send the contents ion mail that i create the aspx page at runtime and append its source in the Email body content. and just send the mail.
But when i use SQL Report my dynamic page and send the mail then these reports are not render at runtime thus in the mail it shows that "your browser does not support script" etc.....
When i run that dynamic page it is showing fine and reports also render very fine..
but when i see the page in debug mode in HTML format its giving same error "Your browser...."
what i m doing wrong ???
Why the report is not going in email ?
please help...
thanks
Nitin
|
|
|
|
|
Hi
i want to search in image to extract subImage from it, then compare subImage with another image(another image is my template), for example my template image is pen, then in an image, i want to search it to find pen (base on template image), but i don't know how to do this, can anyBody help me ?
thanks.
|
|
|
|
|
|
Hi Alan
can u give me sample code ?
thanks
|
|
|
|
|
are you looking for an exact grid of pixels in the image or something softer like a thing that looks to a certain extent like the other image.
If you have both images as bitmaps then take the colour value of pixel (0,0) in the image you are looking for. Then search the first image till you find a match. When you have a match check to see if pixel (1,0) matches the next pixel along in the image. If it does go to pixel(2,0) etc. If the pixel doesn't match go back to searching the image for the colour value from Pixel(0,0) again until you either find a match or run out of image to search.
Russell
|
|
|
|
|
Hi Russell
you mean i must search pixel by pixel ?
can u give me a sample code ?
thanks
|
|
|
|
|
when program startup, I will give a parameter to main meth.
then this parameter will transfer to MainForm(parameter of "Application.Run" method).
But if program has run, how fransfer this parameter or get the MainForm?
|
|
|
|
|
Do you mean you want send some values as parameters to Main?
This can be done like: Goto "Project properties -> Debug -> command line arguments" and put values separated by space.
|
|
|
|
|
yes.
But i want to send this parameter to WindowsForm yet.
|
|
|
|
|
Well in that case, create a parameterized constructor of the form you are calling in Applicatio.Run() and send the values.
|
|
|
|
|
Thanks.
But you said the way can achieve at startup only.
If program has run, how send parameter?
|
|
|
|
|
jason_mf wrote: But you said the way can achieve at startup only.
If program has run, how send parameter?
Didnt got that.
|
|
|
|
|
Because my winform program can run only instance.
So I checked in main of program class.
if there is a instance in proceeding, can I get the main form of this instance?
Or other way?
|
|
|
|
|
What kind of information are you trying to pass, and when?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Anther program will call my winform program, then open a form (is not MainForm ).
the caller will send a string to my winform.
when the caller calls, my winform maybe has run, or does not run.
|
|
|
|
|
If the program is already running you still send the parameter the same way, the constructor. The only difference is that Application.Run() won't be calling that constructor. You will have to call it yourself, how is up to you.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|