|
Hi,
yes you can set the properties of that at the runtime in the OnItemDataBound event of the datalist. If you are know it that whether the image is landscape or portrait then depending upon the condition it can be set.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Sir,
I am using the update query and there is occuring the problem
There is a syntax error in update command.
Please sort out the problem
Thanks and Regards
amaneet Brar
str = "Provider = Microsoft.jet.Oledb.4.0;Data Source =" + Server.MapPath("\sandeep\sujok\sujok.mdb")
con = New OleDbConnection(str)
con.Open()
Dim sdd As String = "Update admin Set password ='" & txtNewPassword.Text & "' where user_id = 'ddd' and password = 'aa'"
cmd = New OleDbCommand(sdd, con)
cmd.ExecuteNonQuery()
con.Close()
-- modified at 8:51 Thursday 18th May, 2006
|
|
|
|
|
You are injecting text directly into your SQL string. This can compromise the security of your database and your application. You should, at least, use parameterised queries. See SQL Injection Attacks and Tips on How to Prevent Them.[^]
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
|
I am going to using DSOFILE.dll in my application.
It is a free component provided by Microsoft, but I find most of client doesn't have this component.
For easy maintainance, I hope this component can embed to my application.
How can I do that? I don't wanna use shell() actually.
Thank you friends.
|
|
|
|
|
hi all,
i want to change index colunm in datagrid at runtime.
pls help with code
thanks
vipin paliwal
|
|
|
|
|
hi,
Can you give a bit more detail.
Best Regards,
Apurva Kaushal
|
|
|
|
|
There are 2 forms, named as form1 and form2
form1_onLoad
dim a as new form2
a.showDialog(me)
when the form2 closed(dispose), the focus will back to form1.
The case is, after form2 dispose, the screen will refresh shortly.
I have tried a lot of time, it seems that my application will minisize in a shorttime and then show the form1.
How can I remove the "refresh" ?
|
|
|
|
|
Hi,
I am making a Contact Database program with vb.net and MS Access 2003. I have 5 tables within the database and they are all relationed with the Contacts tabel. Now I have a Country table and I am using a combobox to the tabel with some countries that i wrote them from the database. Now how can i add a new country from the combobox within the program because he is not updating the new country into the combobox. can someone help me with this pls??
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi,
If I have understood correctly then you want to add some item to the combobox at dynamically, if so then you can use
ComboBox1.Items.Add("name")
Best Regards,
Apurva Kaushal
|
|
|
|
|
i cannot because an error occurs telling me:
CANNOT MODIFY THE ITEMS COLLECTION WHEN THE DATASOURCE PROPERTY IS SET.
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi Adrian,
It seems that you can't an item to the combobox once it has been assigned the datasource for it. So one solution could be to add whatever item you want in the datatable itself and then bind it to the combobox.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Using VB 2005.
I have a form on my Web Browser and it says search google. I have a textbox "txtGoogle" and when you click the search button "btnsearch" it will bring up search in www.google.co.uk in another form "Webbrowser.vb" in webbrowsercontrol "Dmxwebbrowser" how would you do this? (The form webbrowser.vb will be open already. if not I want it to load)
In the end we're all just the same
-- modified at 5:44 Thursday 18th May, 2006
|
|
|
|
|
Do a few searches on google, you'll work out how to build a search URL.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
And keep your eye on the Address bar while searching...
Yuvi Panda T
15 Year old Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
hi all,
how to find whether scanner in usb is connected or discoonected.
i would like to know the status of the scanner connection via USB.
whether its possible using code?
thanks in advance,
bye .
|
|
|
|
|
help me to solve the above isuue.
Is there any way to find the hardware connected or hardware details using
code.
thanks,
|
|
|
|
|
Hi,
you have to try with WIA !!
Take a look here: http://www.codeproject.com/dotnet/wiascriptingdotnet.asp
Regards
mjcm
|
|
|
|
|
thanks for ur reply.
i need an win api or code to know the scanner status in vb6.
help me,
bye
|
|
|
|
|
hi,
can we enter values to a listview control at runtime through keyboard )like textboxes)
|
|
|
|
|
you have to do some extra code for that. for this search custom listview ongoogle also there are couple of samples available on
Code Project[^]
Rizwan Bashir
|
|
|
|
|
Hi all,
I have used Windows API function : FindWindow(), now I want to use the VB.NET (Framework 2.0) function not the Win API function.
Thanks in advance,
Hung.
Hung
|
|
|
|
|
Can anybody please tell me how to export crystal report in PDF format from VB.
|
|
|
|
|
Can I have multithreaded programming in VB and How can objects on different threads communicate with one another?
|
|
|
|
|
in vb6 no you cannot. some body told me you can use doevents in vb but it is very limited and I have not explored much what does it do. so check it out . in vb.net there are many samples available on net. go to articles in codeproject and search threading you will found your answer.
Rizwan Bashir
|
|
|
|