|
I don't quite understand. The string has to be built onRowCommand.
So I cannot build it in advance. It needs to build the string
based upon what has been clicked on in the grid.
|
|
|
|
|
Anyone know hwo I can call a javascript function from within vb.net passing it a variable?
I have a gridview and depedning on the clicked cell it needs to construct a string (in vb.net)
and then use that string to recirect another window (javascript).
I have to use javscript for redirtection because I cann't find a way to
redirect another window from vb.
BOB
|
|
|
|
|
ASP.NET ? You can call registerclientscriptblock to insert jscript code into your page.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I am trying to connect a mobile phone to the pc's serial port using a data cable(Using VB 6.0 or VB .net),using which i can send sms.. can anyone help me in this regard..if you used something similar in ur project.. Hope i wil get a suitable reply..
Thanks,
Namritha
email:thelma.namritha@gmail.com
namritha
-- modified at 9:16 Thursday 21st December, 2006
|
|
|
|
|
I'm not familiar with programming mobile phones and I'm not sure what sms is short for but I'll tell you what I know. In vb.net there is a standard control called "serial port". This can take care of most of the nity gritty details of serial port communication. VB6 also has a control that does the same thing but I think it has a different name like COMM something. Also make sure that the programs on the pc end and the cell phone end have the same settings baud rate, parity, ect......
I hope this helps,
Mike
|
|
|
|
|
Thank you for your valuable suggestion.I Am trying with the communication control available in vb 6.0,which has the capability of connecting with any one of those serial ports
namritha
|
|
|
|
|
Hi,
I am using XMLWriter.WriteCData(stringdata) to write data in xml CDATA block, but i throw exception when data size gone more than 10-12 mb.
|
|
|
|
|
And that exception would be .....?
The only thing you really have to watch out for is if the output string contains the string ]]> . You cannot have that in a CDATA block for obvious reasons.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i have used the following coding but i got error
new sqlcommand("Select * from tblcom where date between d1 as d2 and name='"+s+"'")
|
|
|
|
|
Rmesh wrote: new sqlcommand("Select * from tblcom where date between d1 as d2 and name='"+s+"'")
Did you check an SQL book for the correct syntax?
|
|
|
|
|
Ramesh
new sqlcommand("Select * from tblcom where date between" & d1 & "and" & d2 & "and name='" & s & "'")
Check this out,This may solve ur problem
Regards,
Manowj
|
|
|
|
|
|
Colin Angus Mackay wrote: Please learn about SQL Injection Attacks and how to prevent them
You beat me to it
If you try to write that in English, I might be able to understand more than a fraction of it. - Guffa
|
|
|
|
|
PaulC1972 wrote: You beat me to it
Feel free to go and tell him anyway.
|
|
|
|
|
Rmesh wrote: i have used the following coding but i got error
new sqlcommand("Select * from tblcom where date between d1 as d2 and name='"+s+"'")
There are a number of reasons for an error, but you don't tell us what the error is. You seem to think we can guess.
Possible errors for the above code:
* The table tblcom doesn't exist
* The column date doesn't exist
* d1 is not a valid column name
* d2 is not a valid column name
* the keyword as is use incorrectly. Should this be and ?
* the injected value s is causing a problem somehow.
Please also read up on SQL Injection Attacks and how to prevent them[^]
|
|
|
|
|
Hello
I have created a custom installer that will display a form after the installation is completed.
There is the code for the installer class
<br />
Protected Overrides Sub OnAfterInstall(ByVal savedState As System.Collections.IDictionary)<br />
MyBase.OnAfterInstall(savedState)<br />
Dim myform As New Form1()<br />
myform.Show()<br />
End Sub<br />
I have added the project outputs on both the install and commit nodes in the custom actions.
When the installer finishes installing it will quickly flash the form and then disappear.
Can anyone tell me where I am going wrong.
Thanks in advance,
Steve
|
|
|
|
|
Your code doesn't block and wait for the form to return, so, when the OnAfterInstall event finishes, Windows Installer is pretty much done and quits. You have to show your form using .ShowDialog() , not .Show() .
.ShowDialog() is a blocking call, so that code will wait until the dialog is closed before continuing.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I want to whether there is any option to make a picturebox parent to a Text box in vb6.0 or vb.net.
regards
G RK
|
|
|
|
|
WPF can do this. otherwise, no.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You can't add controls to a PictureBox in VB6. You would normally use a Frame control for that.
In VB.NET, you can add controls to a PictureBox (it's does implement a Controls collection), but a Panel is much better suited for such things. More on it here[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am creating an application in which user will give user id and password and then type the web address like mail.Yahoo.com
Application will pass that userid and password to that web page and will opens its mail box.
I am not able to pass the userid and password to the web page.
Does anyone know how to do it?
|
|
|
|
|
Sir/Madam,
I am facing problem in split function.
The problem is
Dim str as string = "12/12/1200"
dim str1() as string = str.split("/")
now i want the output in the form
str1(0) = "12"
str1(1) = "12"
str1(2) = "1200"
I am not getting this output.
Please help
Thanks and Regards
Pankaj
|
|
|
|
|
What output are you getting ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Sir/Madam,
I am getting error when i am writing the code line
dim str1() as string = str.split("/")
Please help.
|
|
|
|
|
Have you thought to read what the error is ? To check MSDN to make sure you're calling the function properly ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|