|
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
|
|
|
|
|
Hello Chanmps
Please send me the code ...not the logic ...i will be very thankful
I have one List Box and one Check Box - named Select All.
When check box is checked - all values from data list will be selected and when unchecked all values will be unselected
Also how to call this java script function on asp.net page?
Thanks for your time,
|
|
|
|
|
Using Javascript to run the window.open method
IE 7 always puts a url bar just under the Titlebar. IE6 does not do this. Does anyone know how to get rid of it? None of the IE BOM settings work:
open("myfile.html","_blank","directories=no, height=400, left=100, location=no, menubar=no, resizable=yes, scrollbars=no, status=yes, titlebar=no, toolbar=no, top=100, width=400)
This is totally annoying... can't find anything on the MS site about it either
tom
|
|
|
|
|
You can't get rid of it. It's a security feature.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you again... guess I'll have to design my way around it
I did find this link finally that explains the why and wherefor:
http://blogs.msdn.com/ie/archive/2005/11/21/495507.aspx[^]
I can see why MS does it... but I wish they'd made it "more beautiful" ... the address bar just "hangs out in the middle of nothing if you don't set the toolbar / menubar. Seems like MS could have made it so that the address bar sits within the menubar but without the buttons <sigh>.
tom
|
|
|
|
|
Hi All
I need to know whether isolating a website in a separate application pool on the server causes the initial page load to be slower or not??
My website is hosted on a webserver but lately they isolated it into a separate application pool but I noticed a slower load so is these cuz of the new application pool??
Thanks a lot in advance
|
|
|
|
|
There is no reason why one application pool would be slower than another.
I think that it's the other way around. You are experiencing the same performance problem that they try to rectify by doing changes to the server.
---
b { font-weight: normal; }
|
|
|
|
|
I have an html that represents an email.
when it shown in outlook it seems ok, but in preview pane i get the attachments above (the attachments are the header and footer images of the html)
is there a way in the html to tell the attachments not to appear in the preview pane?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi all,
I have a web application.
I need to end the application session and database connections on click of a logout button.The logout button is on a header page common to the entire application, and is currently ending only the current session by destroying the session cookie.
I am new to asp ...please help me...
Thanking you in anticipation.
If you fail for the first time , call it version 1.0.
|
|
|
|