|
Just try the local IP of the server machine.
|
|
|
|
|
Hi,
Internect connection is working properly in the server. So we can remotely log on to there.But When I brouse http://www.xtravels.com inside the server,I am unable to brouse the site and said "Page can not be displayed".
any idea to solve this prob?.
|
|
|
|
|
hi all...i am making one ajax enabled website using microsoft ajax extension 1.0 and asp.net 2.0. i am sending my code in which i am facing problem.
===========================================================================
1) masterpage:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs"
Inherits="MasterPage" %>
<title>Untitled Page
// some ajax related tags like script manager etc. <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
2) page which is making problem
<%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true"
CodeFile="GetClient.aspx.cs" Inherits="GetClient" Title="Untitled Page" %>
<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
<asp:textbox id="txtClientNo" runat="server" size="20" autopostback="true" enableviewstate="true" onchange="return getClient();" ontextchanged="txtClientNo_TextChanged">
3) code behind:
// namespace
// namespace
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Response.Redirect("somepage.aspx"); // some page is my another page
}
}
4) java script file:
function getClient()
{
alert("function working fine ");
return true; or return false // as tried with both
}
now my problem is that when i am entering any data in my textbox in my page GetClient.aspx then onchange event is firing and getCLient function is working fine, but independent to what i am returning from the javascript function either true or false, page is behaving in this way: below mentioned:-
in my textbox if i am using onchange="return getClient();" then always it is not firing server side, but if i am using onchange="getClient();" then it is firing server side always. what is wrong here?...
<asp:textbox id="txtClientNo" runat="server" readonly="true" size="20" autopostback="true" enableviewstate="true" onchange="return getClient();" ontextchanged="txtClientNo_TextChanged">
plz let me know if anyone knows solution to fire servber side based on true or false returned from client side function...
-- modified at 11:05 Thursday 16th August, 2007
Akhilesh Singh
|
|
|
|
|
Do return false; and your page won't post back.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks for reply ToddHileHoffer. i have tried returning false but independent of what i return either true or false, it always depending on how i am calling my java script function means:
if i will use: onchange="return getClient();" then it is not firing server side
but if i use: onchange="getClient();" then always firing server side.
in both condition it is not depending on what i am returning from my function getClient(), true or false.
is there any diference in working of this return true or false mechanism to stop or to run server side while working ajax enabled site as compared to normal website.
Plz reply if you have any idea about this?
Akhilesh Singh
|
|
|
|
|
Hello Everyone,
I want to send the coding using the given below coding But i'm getting the error
"Could not access 'CDO.Message' object."
Plz suggest me the ways to come out of the problem
MailMessage mail =new MailMessage();
mail.To="manoj.msb1984@gmail.com";
mail.From="mail@saamstesting.com";
mail.Subject="Your Password";
mail.Priority = MailPriority.Normal;
mail.Body="This is Ur Password";
try
{
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail);
lblMsg1.Text="Mail Sent Successfully";
}
catch(Exception ex)
{
lblMsg1.Text=ex.Message.ToString();
lblMsg1.ForeColor=Color.Red;
}
|
|
|
|
|
(1) Specify a valid mail server for the SmtpMail.SmtpServer property. If that property is not set, at least set it to 127.0.0.1. For example:
SmtpMail.SmtpServer = "127.0.0.1".
(2)If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, you may not have permissions to relay through the IIS SMTP Service. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Relay button. In the Relay Restrictions dialog, grant your IP address (127.0.0.1) to the Computers listbox. Close down all dialogs, and restart the SMTP Service.
Hope this could solve your problem.
SSK.
|
|
|
|
|
Hello Sir,
I've done as u r asking but using this way i'm getting successful message but not receiving the email at my gmail Account.
my Smtp Server="mail.saamstesting.com";
plz suggest some other way .........
one more thing whenever i'm trying to send the email at my "mail@saamstesing.com" then i'm receiving the mails but i'm not able to send the emails in ASP.NET
plz................. it's very urgent
|
|
|
|
|
|
There exist several problems and solutions.
Ever thought of trying Google? Google results
At least you should provide information about what you have already tried.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
"Plz it's very urgent" isn't a very good subject line and gets ignored by those who can help the most.
only two letters away from being an asset
|
|
|
|
|
i am sending mail using arabic texts ..
My code is below
help me plz.. advance thanks to all
Dim MailApp As New MailMessage
MailApp.Body ="Arabic Texts"
MailApp.BodyEncoding = MailApp.BodyEncoding.UTF8
when recieving the mail through yahoo account it shows only ??? marks..
but in gmail it shows right texts..
help me plz....
advance thanks...
|
|
|
|
|
Did you check your Unicode?
SSK.
|
|
|
|
|
thanks for reply.
This is my code simply.
Dim MailApp As New MailMessage
MailApp.Body ="Arabic Texts"
MailApp.BodyEncoding = MailApp.BodyEncoding.UTF8
it shows the right chars in gmail but ??? marks in yahoo account.
|
|
|
|
|
Hi,
This is from Chandrakanth. I am using GridView Control. And I would like
to update the records through Coding. Can any one tell me how to go for
that.
Thansk in Advance
With Regards
Chandrakanth
Chandrakanth
Chandrakanth
|
|
|
|
|
u mean u want to update records in databases through gridview??
software student
|
|
|
|
|
i didnt understand ur query..however this code may help u updating records in databases if changes are made in datagrid
this code will b behind update button
for (int i = 0; i <= editgrid.RowCount - 1; i++)
{
str = "UPDATE table SET column1 = '" + editgrid.Rows[i].Cells[1].Value + "', column2='" + editgrid.Rows[i].Cells[2].Value + " WHERE cid = " + editgrid.Rows[i].Cells[0].Value;
SqlCommand com = new SqlCommand(str, conn);
com.ExecuteNonQuery();
}
software student
|
|
|
|
|
Hi,
Once again This is from Chandrakanth.
Actually i am using GridView Control in ASP.NET2.0
I want to update the records in databases through GridView Control by
using Coding in the CSharp.
not through Properties.
Thanks for Reaponse.
Thanks& Regards
Chandrakanth
Chandrakanth
|
|
|
|
|
Dear all,
i need to send fax from my asp.net page, i am using c#dotnet.
Can any body have idea regarding this.
thanks in advance,
Eswar.
|
|
|
|
|
You can't send fax with ASP.NET just like that. You need to have some faxing service available (3rd party) that has some SDK so that you can connect to it using your .NET code.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
My application has all the webpages inside a specific folder in the application. When i try to use site map concept here, I am not getting the breadcrumb. Whereas, when i tried using the same with webpages that are directly attached to the application i am getting the breadcrumb. can any one help me out with dis??
Thanks
Ramya
|
|
|
|
|
It would be nice to have some code from your sitemap file to start with.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
We could not judge what is your problem without seeing your code?
So please paste the code what you have did for the site map.
SSK.
|
|
|
|
|
These are the entries in web.sitemap.
/*
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="../Webpages/Sample.aspx" title="Sample" description="">
<siteMapNode url="../Webpages/Sample1.aspx" title="Sample1" description="">
<siteMapNode url="../Webpages/Sample2.aspx" title="Sample2" description=""/>
</siteMapNode>
</siteMapNode>
</siteMap>*/
I have an main page named sample. From which I navigate to Sample1 and then from Sample1 I navigate to Sample2.
Sample >> Sample1 >> Sample2. This is the breadcrumb expected.
Note: Sample, Sample1, Sample2 are aspx pages placed inside folder named Webpages.
In the aspx page of Sample2 i have included the following code.
<asp:sitemappath id="SiteMapPath2" runat="server" />
-- modified at 12:27 Thursday 16th August, 2007
|
|
|
|
|
Wake up sunshine youve got an extra equals sign in there
That's probably why.
siteMapNode url="="../Webpages
Please rate this solution as spooner. Thanks
|
|
|
|