|
Options is giving null some error
|
|
|
|
|
Get a idea from following script
SCRIPT LANGUAGE="JavaScript">
function testButton (form){
for (Count = 0; Count < 3; Count++) {
if (form.rad[Count].checked)
break;
}
alert ("Button " + Count + " is selected");
}
onClick="testButton(this.form)">
|
|
|
|
|
Try this it is working fine
function getCheckedRadio() {
var radioButtons = document.getElementsByName("rblCustomer");
for (var x = 0; x < radioButtons.length; x ++) {
if (radioButtons[x].checked) {
alert("You checked " + radioButtons[x].id + " which has the value " + radioButtons[x].value);
}
}
}
<asp:radiobuttonlist id="rblCustomer" runat="server" repeatdirection="Horizontal" cellpadding="0" cellspacing="0">
<asp:listitem value="Today">Today
<asp:listitem value="FromToDate">FromToDate
<asp:button id="Button1" runat="server" text="Button" onclientclick="getCheckedRadio()">
|
|
|
|
|
hi, Try this... its working
function mytest()
{
var rdolist = document.getElementsByName("RadioButtonList1");
if (rdolist[1].checked)
alert("1");
if (rdolist[2].checked)
alert("2");
if (rdolist[3].checked)
alert("3");
return true;
}
protected void Page_Load(object sender, EventArgs e)
{
RadioButtonList1.Attributes.Add("onclick", "javascript: return mytest();");
}
sandesh
|
|
|
|
|
Hi
how to export pdf doc from gridview using iTextSharp.
Prasanna Kumar.B
|
|
|
|
|
prasanna548 wrote: how to export pdf doc from gridview using iTextSharp.
Refer this Post
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hey people,
I've created a TreeView, which appears to be populating itself either by caching everything when it loads, or via ajax (not sure, as page doesn't reload when I expand the tree, which is connected to a database....). I'm using the "OnTreeNodePopulate" event to speak to the database for the Nodes to load.
When I expand a TreeNode which has a lot of TreeNodes below it, it takes a few seconds to load up, is there a way to before it starts to load, change the Web Browser's Status Bar to say "loading treeview" or something to indicate to the user, that it has not crashed?
Regards,
CD
|
|
|
|
|
|
Beginner wrote: Can I use ASP.NET concepts to access internet in System B from System A
by creating a web server-client architecture , where page is
downloaded on A and viewed on B.
OMG, you won't be able to do this in ASP.NET. It works on the server, listens to the requests and serves HTML. ASP.NET can't fetch the page and send that page through LAN to other computer. Since you are a beginner, consider purchasing good ASP.NET books and start with that. Check BOL to get an idea about how it is working.
|
|
|
|
|
hai,
does anyone know how to record and save voice from a microphone using asp.net 1.1 on a button click? plz respond as soon as possible
thanks and regards
Catharin
|
|
|
|
|
the thing is that, i need to record dictions done by a person through a microphone and save it as an audio file of formats(*.mp3,*.wav,*.avi etc.).
I am using ASP.NET 1.1 for this(Web Application).
i dont know how to resolve the problem.
|
|
|
|
|
the thing is , i need to record dictions done by a person through a microphone and save it as an audio file of formats(*.mp3,*.wav,*.avi etc.).
I am using ASP.NET 1.1 for this(Web Application).
i dont know how to resolve the problem.
thanks and regards
Catharin
modified on Monday, February 18, 2008 10:53 PM
|
|
|
|
|
I want some idea from your briliant mind.
My dout as how to insert or update a string value using sql quries.
the string value as Women's Studies
Now use this
Dim mystring as string = "Women's Studies"
MySql = "INSERT into tblName (Dept) values ('" & mystring & "')"
or
MySql = "UPDATE tblName SET Dept='" & mystring & "' where dept='Womens Studies'"
in above quries not working.
How to possible it?
Please give an example.
Thanking you in advance.
abglorie
|
|
|
|
|
What the exception are throwing ?
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
The exception is
Incorrect syntax near 'S'. Unclosed quotation mark before the character string ''.
|
|
|
|
|
Print the variable MySql before you execute them. You will find the error then. Also your code is open for SQL Injection. Read articles about SQL injection and change your query.
|
|
|
|
|
Please give me an example.
|
|
|
|
|
abglorie wrote: Please give me an example.
Example for ?
|
|
|
|
|
abglorie wrote: Dim mystring as string = "Women's Studies"
Replcae "'" to "`" and insert into database.
At retriving from database, Replace "`" into "'"
for example
Dim mystring as string = "Women's Studies"
mystring =mystring.replace("'","`");
MySql = "INSERT into tblName (Dept) values ('" & mystring & "')"
.......
please don't forget to vote on the post that helped you.
|
|
|
|
|
if you use parameterised queries it solves both a) The apostrophe problem and b) the sql injection vulnerability problem.
|
|
|
|
|
is it possible not to show the context menu dilog box on the address bar.
|
|
|
|
|
Hi,
I am using an asp:FileUpload control with a regular expression control to check the file types. The regular expression has a error message if it is a file with a different extension.
On the page is an upload button. When the upload button is clicked, and the file extension is correct, then it uploads the image to the server. But the page does a post back to itself and the error message of the regular expression validator is fired. Why is this and how can I prevent it from being fired after the file is uploaded?
Brendan
|
|
|
|
|
As per my understanding:
use this property of Reg validator
enableclientscript="True"
If I am wrong, please correct me
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|
|
Read the message again. When I click on the upload button it then uploads the image to the server and in the process does a post back. But once the page did a post pack the regular expression validator control is triggered some how and the error message is displayed. I don't want the message to be displayed after postback, it's not even supposed to display after postback.
|
|
|
|
|
After save the file set validator property
IsValid with true
/***********************/
Parwej Ahamad
g.parwez@gmail.com
/***********************/
|
|
|
|