I'm creating a search form using an asp:button control with the urlpostback set to a results page. The problem is, the asp:button uses Visual Basic and the search results from Google require Javascript.
Is there a way to take the data from an asp: textbox in VB and then send it to another page that uses Javascript and use the data?
I'm currently transferring from Fasthosts (UK) to 123-reg. Whe WHOIS database says the domain is with 123-reg, but it isn't. Has something gone wrong here, or does it just take a while? Also, will the domain disappear from my Fasthosts control panel when the transfer is complete?
Many thanks
I am coding in Visual Basic. I am using a checkbox control. Now depending on its checked property I need to set/unset a bit column in a SQL Server database. Here's the code:
Try
conSQL.Open()
Dim cmd As New SqlCommand("update Student set send_mail = " + _
sendemailCheckBox.Checked.ToString + " where student_id = '" _
+ sidnolabel.Text + "'", conSQL)
cmd.ExecuteNonQuery()
Finally
conSQL.Close()
End Try
The send_mail attribute is of bit datatype. This code is not working.
How do I go about it?
I want a popup to be populated to user before deleting the record
I have tried OnClientClick and class to handle it with JavaScript/jQuery but with no success
ERROR
Type 'System.Web.UI.WebControls.HyperLinkField' does not have a public property named 'OnClientClick'.
Control
<asp:HyperLinkField OnClientClick="return confirm('Are you sure you would like to delete the selected landing page?')" datanavigateurlfields="id" datanavigateurlformatstring="ViewLandingPages.aspx?id={0}&delete=yes" HeaderText="Delete" Text="Delete" />
EDIT : also tried adding a class (for handling it with jquery ) but with no success
I am binding some data to control, but want to limit the number of character of a specific field to a 30 first characters.
I want to do it, if it's possible, on aspx page.
I tried this:
Text='<%# String.Format("{0}", Eval("Title")).Substring(0,30) %> '
But got this error:
Index and length must refer to a
location within the string. Parameter
name: length
Hi All ,
The applet methods work fine when JRE is enabled
document.appletName.methodName() ; // Using Java Script .
But when JRE is disabled using the Java Control Panel . on call of " document.appletName.methodName() " method , the browser starts to hang .
How can we make the browser not to hang !!
I am using Object Tag .
Any clues for solving this would be greatly appreciated .
Hi,
In order for the user to control the volume , my android application has a menu consisting of a slider that provides int values from 0 to 10 , when dragged. After I obtain a value , I must set the volume to the corresponding value chosen by the user , and well , this is the part that I don't know to implement and I 'd like to find about it.
I wont to create a User Control based in gridview that have the edit add delete incorporate,
the problem is these:
In the admin part of my web site i have to repeat the same action for view add delete update the data for different datasource.
I wont to create a generic gridview that have incorporate these action.
The gridview can take a xml file for configure him self dependently of the request for desplay the data.
Any ideas how i can do it?
My Herb Schildt book on C++ says: "... In C++, if a function is declared as returning a value, it must return a value." However, if I write a function with a non-void return type and do not return anything, the compiler issues a warning instead of an error: "Control reaches end of non-void function."
I use gcc (MinGW) and have set the -pedantic flag.
Hi All
Is there a way, and how would I go about implementing my own keyword such as in, and as (etc), to be used in my code?
Here is what I had in mind. I want to (just for my own personal reasons, I guess) add a few keywords of my own, one of which would be the "was" keyword:
if(Control was Clicked)
{
// etc etc
}
Is it possible to draw an overlay (using OnPaint, for example) over a composite UserControl?
Actually the only painting I could get is over the UserControl, but it covered by Control instances positioned inside the UserControl.
Well, I'm planning on releasing a Jar into the world but would prefer if the code was not readably available to anyone with a Java Decompiler as I want to control access to the program with usernames / auth codes etc.
After some Googling I haven't found any software to do this for me, so I was wondering what steps to take from here; if anyone can point me at any software or information on methodologies of obscurification I would be grateful.
Cheers again Stack Overflow.
I'm disabling auto-complete and auto-suggestion on Windows Mobile 6.1 by setting the following registry keys:
HKCU\ControlPanel\Sip\SuggWords => 0
HKCU\ControlPanel\Sip\SuggAutoCorr => 0
However it doesn't seem to change anything until I restart the device. The control panel applet that exposes these settings somehow tells the SIP keyboard to reload, but how?
I need to host my window upon a window of another application.
How to enumerate windows of another Cocoa application? Is it possible to control
them?
If no: how can I draw upon a window of another application?
Thanks!
I'm using the following code to hide stderr on Linux/OSX for a Python library I do not control that writes to stderr by default:
f = open("/dev/null","w")
zookeeper.set_log_stream(f)
Is there an easy cross platform alternative to /dev/null? Ideally it would not consume memory since this is a long running process.
So basically I would like somehow that given an audio file as input (most likely mp3 or I can use some audio engine that will handle other types too) from my computer to control some LED lights so they will be something like an oscilloscope, like the one in winamp.
What would I need to be able to do this? I'm interested in building thing up all by myself, coding, hardware, etc..
I'm going with C++ on Windows.
Can I convert my VB code to C++? How can I do it?
This is my VB code:
Dim OpenFileDialog1 As New OpenFileDialog
With OpenFileDialog1
.CheckFileExists = True
.ShowReadOnly = False
.Filter = "All Files|*.*|Bitmap Files (*)|*.bmp;*.gif;*.jpg"
.FilterIndex = 2
If .ShowDialog = DialogResult.OK Then
' Load the specified file into a PictureBox control.
PictureBox1.Image = Image.FromFile(.FileName)
End If
End With
I know.. I know, it's only a few hours old.
But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title.
MIX Keynotes made it look like it was a control (or at least what I saw, was @ work).
Anyone who made MIX or knows how they are doing this, it'd be cool to get an answer.
Thanks!
I'm creating my first Windows Phone 7 application, and I'm struggling to find an autocomplete textbox. Is there an easy way to add one to the toolbox? Or do I need to create my own control?
hi the win mobile 6 code tries to write files on network shared folder, but always gets UnauthorizedAccessException. I have checked permission and security setting on the folder and the code can read the file but just cant write to it. The code runs under administrator account which has full control over the folder and files. It is in vs 2008 professional with device emulator.Any help please? thanks very much.
I am using BGHUDAppKit for an outline view within a HUD-style (black) NSPanel. As such the text in my outline view cells is light gray or white. Unfortunately this means that when I hover to bring up a tooltip for a cell's value, it shows up as light gray text on yellow, which is illegible.
How can I set the text color for the tooltip, or is there a way that I can modify the control itself (without changing its appearance) to work better with the tooltip mechanism?
In yii, i am developing page for Creating Question with multiple options using forms. So i have two tables
Question
QuestionId
Question
optionId
Option
OptionId
Option
To create multiple options, option field should be provided with add button so that after clicking add button, it should display new textbox control to get the new option. All these options displayed in a gridview. So can you please help me. I am very new to yii.
Can you help me with my problem regarding iframe because whenever the iframe is scrolled till end, and the user clicks a control inside the page within iframe, and page content is on the top of the page, the user needs to scroll up the Iframe just to see the content. Are there any properties that I can set or code that I can do so that the Iframe scrollbar goes back to top whenever an event is triggered inside the form??
I am needing to get the browser height and width of the browser window with vb. I can get these values by setting an ASP.Net hidden input control using javascript, after the page has loaded and a post back is done. I need to be able to get these values when the page initially loads so I can create an image based on those values.
I am still new at VB.Net, so any help would be great. Thanks!