|
|
OK... Let me try first...
Thank you very much...
|
|
|
|
|
HI,
Friends i need your help...i am using asp.net gridview with Ajax Hovermenu control..
but i couldn't able to make it properly...what i get is the panel is always placed in the top corner..
i want the panel to be shown corresponding to each row...please anybody help me...
thanks
Alex.
|
|
|
|
|
You need to set left and top property
try this script
document.getElementById('panelId').style.left=event.clientX;
document.getElementById('panelId').style.top=event.clientY;
set postion="absolute" of Panel
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi,
One another doubt..please help me ...
If a user clicks download button one xml document is created and to be download..i have the code for getting the xml document but don't have the code for download that file ..if some body helps me it's great....
remeber that i don't have any specific xml file in my server, that file is created dynamically when the user clicks download button.
regards
alex.
|
|
|
|
|
post your code for XML document
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
else if (e.CommandName == "Download")
{
string xml = ParseXML(dr.DamageReportXML.ToString());
if (xml != "")
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xml);
DownloadXML(xmlDoc, dr.Id.ToString());
}
}
}
private string ParseXML(string xml)
{
String xslPath = Server.MapPath(@"..\\xslts\\downloadXSL.xsl");
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml);
if (doc != null)
{
XslCompiledTransform transform = new XslCompiledTransform();
StringWriter sw = new StringWriter();
//Load the xsl stylesheet
transform.Load(xslPath);
transform.Transform(doc, null, sw);
return sw.ToString();
}
return "";
}
|
|
|
|
|
Create new .XML file dynamically
write xml content in the file
save file in the server
download it.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi,
Is there any other solutions because it's not good to save everytime and delete it, in my case
regards
alex.
|
|
|
|
|
I think NO
bEST rEGARD
pATHAN
---------------------------------------------------
|
|
|
|
|
please help me to get the diference between 2 local datetime instances(client)in minutes using javascript
|
|
|
|
|
|
var days = 0;
var difference = 0;
debugger;
StartDate = new Date(document.getElementById("txtStartDate").value);
today = new Date();
difference = StartDate - today;
days = difference/(1000*60*60*24);
|
|
|
|
|
Hello Everyone,
I want to send the email through my ASP.NET project. And it's working at localhost when i'm taking the SMTP Server as "127.0.0.1" but when i'm uploading this project on server it's throwing me an error "could not access cdo.Message object" . still i've taken my SMTPServer not as "127.0.01" but still it's throwing an error
i'm giving the url of the page where this problem is being raised....
http://www.priveejets.com/Flight_Enquiry1.aspx
in this page an auto-response is generated when a client makes an enquiry at his/her email
MailMessage mail1=new MailMessage();
mail1.To=txtEmail.Text;
mail1.From="mail@priveejets.com";
mail1.Subject="Auto Responder";
mail1.Priority=MailPriority.High;
mail1.BodyFormat=MailFormat.Html;
mail1.Body="Thanks for the Enquiry "+" "+"We'll get you soon"+" "+"------------------"+" "+"Thanks & Regards"+" "+"Priveejets Team";
SmtpMail.SmtpServer="127.0.0.1"; or other not shown here
//SmtpMail.SmtpServer="127.0.01";
SmtpMail.Send(mail1);
|
|
|
|
|
hi,
u r code is correct, but u have to specify the u r SMTP server name not ip address
Ramana
|
|
|
|
|
Well Friend i've specified my smtp server name actually this ip address is just for the localhost. Whenever i was using my smtp server for the localhost it's throwing an error like "could not access.........". But with this ip address i can send the email perfectly.......
On server i've used my smtp server...... which is "mail@priveejets.com"
but still it's throwing an error.
Plz suggest me some other way ..........
|
|
|
|
|
if u r able to access Priveejets smtp server from ur development network, then application won't gives any excption.
just check the priveejets smtp server from ur command window. if not then contact administrator for rights
Ramana
|
|
|
|
|
No, i'm not getting how to access the priveejets smtp server
If tht's mean to access their mail(priveejets) account then i would say i can access their mail account which is
mail@priveejets.com
Should i also specify other infos to send the mail if yes what can be those
|
|
|
|
|
i think the smtp server u specified is wrong
|
|
|
|
|
you have to specify the server smtp name where your application is hosted
|
|
|
|
|
hi...
MailMessage Msg = new MailMessage();
string host = mail@priveejets.com;
string username = xyz@priveejets.com;
string password = (your Password for This Mail Id);
SmtpClient MailObj = new SmtpClient(host);
MailObj.Credentials = new System.Net.NetworkCredential(username, password);
MailObj.DeliveryMethod = SmtpDeliveryMethod.Network;
Msg.To=txtEmail.Text;
Msg.From="mail@priveejets.com";
Msg.IsBodyHtml = true;
Msg.Subject = txtSubject.Text;
Msg.Body = txtMessage.Value;
MailObj.Send(Msg);
Jintal Patel
|
|
|
|
|
Hello Sir,
First of all thnx for sending me this piece of code. I want to know one question "should i include any namespace for SmtpClient". Actually i'm using ASP.NET1.1 and
SmtpClient is not being supported in it
.....
|
|
|
|
|
hi
namespace :-system.web.mail
MailMessage mail = new MailMessage();
mail.From = "jintal@abc.com";
mail.To = "jintal@abc.com";
mail.Body = "test";
mail.Subject = "test";
SmtpMail.SmtpServer.Insert(0, "mail@priveejets.com");
SmtpMail.Send(mail);
Jintal Patel
|
|
|
|
|
I have a stored procedure in mysql and I am calling it via a method and objectdatasource. I have two select methods. One that gets a list of employees and the other that gets one specific employee by passing the employee id via a parameter.
I have two gridviews, one for displaying all employees and one for displaying one employee record. The user should be able to enter the employee id in the textbox and the gridview should display the employee's record. My code is working for displaying all employees but not for displaying one specific employee. The code compiles but does not display any info. Here is my code:
asp:objectdatasource id="ObData2" runat="server" dataobjecttypename="EmpData"
typename="Employee" selectmethod="getEmployee" >
<selectparameters>
asp:controlparameter controlid="employeeid" name="eId" propertyname="text" type="string" />
</selectparameters>
</asp:ObjectDataSource>
asp:gridview id="GridView2" action="databind" runat="server" datasourceid="ObData2"
datakeynames="EmployeeID" allowpaging="True" autogenerateeditbutton="True" autogeneratecolumns="True"
emptydatatext="No Records"
allowsorting="True" >
</asp:gridview>
<asp:textbox id="employeeid" runat="server"></asp:textbox>
[DataObjectMethod(DataObjectMethodType.Select)]
public void getEmployee(string eId)
{
MySqlCommand cmd = new MySqlCommand();
try
{
DB_Connection conn = new DB_Connection();
cmd.Connection = (MySqlConnection)conn.DBConnect();
cmd.CommandText = "getEmployee";
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("EMPLOYEEID", eId);
cmd.ExecuteNonQuery();
}
-- modified at 8:56 Wednesday 26th September, 2007
|
|
|
|
|
Define 'not working' Does it show lots of records ? No records ? Does the proc return the right record ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|