|
hiral_shah wrote: It is the waste of both time and also abuse of this forum.
You mean like when you started the thread in the first place?
---
b { font-weight: normal; }
|
|
|
|
|
You're kidding me right? There must be a fantasy forum somewhere where you would feel right at home, and who knows, you could win a lottery prize for being their 1 million registered user. Man, that sounds so promising, I'm going to look for it myself and sign up. After all it's a possibility ain't it?
regards,
Mircea
Many people spend their life going to sleep when they're not sleepy and waking up while they still are.
|
|
|
|
|
Guffa wrote: Statistically it's so unlikely, that if it actually did happen, it still didn't.
You got my 5.
regards,
Mircea
Many people spend their life going to sleep when they're not sleepy and waking up while they still are.
|
|
|
|
|
I just hope from now further i will just receive the replies related to the questions.
Thank youl.
|
|
|
|
|
hi
can u tell me what is required to start with using ajax in vb.net.
please give the links if you have
thx.
sachin
|
|
|
|
|
Did you get lost on your way to Wikipedia?
<div class='ForumSig'></div>
|
|
|
|
|
Hi.
In PHP, can i call a function (openning a database) from a class which is in say some shopping cart file, and the function implementation is in different server code file?
Thanks
Rakesh
|
|
|
|
|
If the file is included in your script (either via Include/Require functions, or if the file is in the include_path (can be set in the php.ini file) then yes.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I want to display records page wise i.e. it limit to 10 records in each page. I am using asp.
Bharat Bhusanam
|
|
|
|
|
|
What do mean by RSS Feed and how to use in asp.
Bharat Bhusanam
|
|
|
|
|
|
Hello World ';
$to = "arifliminto86@yahoo.com";
$subject = "PHP Is Great";
$body = "PHP is one of the best scripting languages around";
$headers = "From: webmaster@gowansnet.com\n";
mail($to,$subject,$body,$headers);
echo "Mail sent to $to";
?>
the result : Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\arif\main.php on line 47
Mail sent to arifliminto86@yahoo.com
i already set my smtp in my php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = arifliminto86@yahoo.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =
can u help me to solve this problem< this is not related with my assignment so dont worry >
|
|
|
|
|
Are you running a SMTP server on localhost?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
mm i just want to sent email from website .. actually iam not understand about that.. but i test my website on the local host , i already turn on the apache, but that doesnt work. How should i do?
|
|
|
|
|
You need to configure a smtp (email) server to send your email (via mail()).
If you don't have one on your machine (which is probably the case) then input the server your ISP has provided you with.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
how to confiqure a smtp(email) server? can u show me the example.? because i dont understand;)
|
|
|
|
|
Everything you need to configure is in your php.ini file (section that you have pasted in one of the previous posts).
Just set those values (that are affected under windows (win32)) to the SMTP server you can use (usually your ISPs mail server). I can't help you more than that.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Working in asp.net 2.0/C#
I have a form in my webpage.aspx file that implements a droplist control. The form looks like this:
<form id="formEmpSurvey" runat="server">
<center>
<br />
<table style="width:680px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 187px; height: 26px;" align="left">
<asp:CheckBox ID="checkSymptomCough" runat="server" Text="Persistent cough" Enabled="True" />
</td>
<td style="width: 250px; height: 26px;" align="right">
<asp:Label ID="labelDurationCough" runat="server" Text="Duration" Enabled="False"></asp:Label>
<asp:DropDownList ID="comboDurationCough" runat="server" Enabled="False">
<asp:ListItem Value="0">Choose One...</asp:ListItem>
<asp:ListItem Value="1">Less than one month</asp:ListItem>
<asp:ListItem Value="2">1 month</asp:ListItem>
<asp:ListItem Value="3">2 months</asp:ListItem>
<asp:ListItem Value="4">3 months</asp:ListItem>
<asp:ListItem Value="5">4 months</asp:ListItem>
<asp:ListItem Value="6">5 months</asp:ListItem>
<asp:ListItem Value="7">6 months</asp:ListItem>
<asp:ListItem Value="8">More than 6 months</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</form>
Next, I have javascript that looks like this:
//------------------------------------------------------------------------------
function disableLabel(lbl, disable)
{
lbl.obj.disabled = disable;
}
//------------------------------------------------------------------------------
function disableCombo(combo, disable)
{
combo.obj.disabled = disable;
}
//------------------------------------------------------------------------------
function resetCombo(combo)
{
combo.selectedIndex = 0;
}
//------------------------------------------------------------------------------
function checkChanged(name)
{
var check = new getObj("checkSymptom" + name);
var label = new getObj("labelDuration" + name);
var combo = new getObj("comboDuration" + name);
// if the checkbox is checked, enable the duration lable/combobox pair
if (check.obj.checked == true)
{
disableLabel(label, false);
disableCombo(combo, false);
}
else
{
// otherwise, reset the combo selection and disable them
resetCombo(combo);
disableLabel(label, true);
disableCombo(combo, true);
}
}
//------------------------------------------------------------------------------
function checkCoughChanged()
{
checkChanged("Cough");
}
Finally, in the aspx.cs Page_Load function, I have this:
protected void Page_Load(object sender, EventArgs e)
{
checkSymptomCough.Attributes.Add("onclick", "checkCoughChanged();");
}
====================================
As you can see, the label and droplist start out in a disabled state. When I check the checkbox, the form correctly enables the label and the droplist controls.
When I un-check the checkbox, the desired result is that the label and droplist become disabled, and the droplist set to the 0'th index ("Select One...").
However, when I un-check the checkbox, the label and droplist are correctly disabled, but the selection in the droplist doesn't change.
IE reports no javascript errors at all.
What am I doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997-----"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
-- modified at 12:26 Tuesday 7th November, 2006
|
|
|
|
|
I think that your problem is in resetCombo / combo.SelectedIndex = 0. 0 is a valid index (at least in c#). You might try comob.SelectedIndex = -1, or combo.SelectedItem = null.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Neither of those worked (separately or combined).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I changed the resetCombo() function as follows:
function resetCombo(name)
{
if (name == "Cough")
{
document.formEmpSurvey.comboDurationCough.selectedIndex=0;
}
else if (name=="blah blah")
{
}
}
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Apparently my brain was a little sleepy last night, and the code I gave was in c#, not in javascript. Glad you got it figured out.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I have 2 Web Pages page1.aspx and page2.aspx.
On page1.aspx i am selecting values fom list box and transfering to page2.aspx using Button -- "Select".This works fine.
Suppose user doesn't select any value from list box then message box pops up to user ...code for messagebox is like this
Private Sub btnHighlightYears_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHighlightYears.Click
If Lstbox_Years.SelectedValue.ToString() = "" Then
MessageBox.Show("Please Select Atleast One Year")
Else
Server.Transfer("Acct_Details.aspx?type=h")
End If
End Sub
Message box is a class and using java script and other controls it is made - which looks similar like a windows based application message box.
Now on page1.aspx i have one more button - "Select All and Continue".This also works fine and transfers me to page2.aspx
Problem
=======
When i first click on Button -- "Select" and nothing is selected fom list box then message box pops up ...click okay and then click button - "Select All and Continue" and it takes me to pafe2.aspx.
When i returns back to page1.aspx through Back button if IE/browser , the message box again pops up.
Is it an error or an issue...How can i solve this ?
Please help me.
Thanks,
|
|
|
|
|
It pops up again because it is displaying the cached page that is in your history. I imagine the back button is similar to javascript:history.go(-1);
I don't know if restricting the caching of the page will work or not, but i have a domain hosting control panel that always (seems to) re-request a page when i click the back button on the browser. This would be the result you are aiming for, then you can check server side if you want the message box code to be written into the page.
g00fy
|
|
|
|