|
How r u ladies & gentelmen ?
The problem is:
I have asp page (P1.asp) and inside it I call a function (.draw) in another asp page (P2.asp)which hold all data about the graph I wanted to draw it in P1.asp inside BUT after compilation P1.asp, the graph (the result of P2.asp) will show first then P1.asp will show.
I need to show the result of P2.asp after compilation in the same in a specific area I means not in the top of the page then loads P1.asp
I need--->P1.asp to load everything: same contents of P1.asp contain and here display the graph or the result of P2.asp after clicking buttonsthe wrong---> load the graph of P2.asp here in the top of page then load P1.asp down of the graph.
I appreciates ur effort and thank you all in advanced.
Diya Qudaih.
|
|
|
|
|
There is no way to do that exept one way that:
use window.open("ur asp page?ur parameters all what u want","name","properties")
thnx all.
|
|
|
|
|
Hi,
In my website I hv written JavaScript in c#.net code behind page using this.RegisterStratupScript in which i want to assign one variable's value to session .
Please, give me solution .
Thank you.
|
|
|
|
|
Do you know Session is maintained at Server and javascript executes at client. So why in the world, you want to assign a variable to session through JS.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
i want to design file uploader button
One person's data is another person's program.
--J.Walia
|
|
|
|
|
Yeah, go ahead
|
|
|
|
|
Hi all, I have used some html checkboxes in one webpage. Using client side script I am putting some values in the Value property of those checkboxes.
But I am not being able to recognize those values from my server side code. I have tried the following techniques, but invain.
string str=CheckBox1.Attributes["value"].ToString();
string str=Checkbox1.Value;
But none worked.Can any one help me out???
Thanks and Regards
ARINDAM
|
|
|
|
|
Hi
My requirement is i have an application form which has entries like name,dob,qualification,exp and upload resume(file field). when somebody fill this form, upload his resume and press submit ,i want these details and resume to get in my yahoomails inbox. but when i try this with local host it doesn't work i hve given the ip address in default smptservers relay button. i am using asp.net 2003 can anybody pls help me why i am not getting this correctly.Below i am giving the code i hve used
Imports System
Imports System.Data.OleDb
Imports System.web
Imports System.IO
Imports System.Web.Mail
Imports System.Web.SessionState
Imports System.Collections
Imports System.ComponentModel
Imports System.Drawing
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Function FncSubmit()
Dim szSQL As String
Dim objdr As OleDbDataReader
Dim icnt As Integer
Dim sapplnno As String
Dim szFileBiodata As String
Dim szfile As String
Dim iapplnno As Integer
Dim attach1 As String
Dim objEmail As New MailMessage
objEmail.To = "abc@yahoo.co.in"
objEmail.From = txtEmail.Text
objEmail.Subject = txtName.Text & "," & txtQualif.Text & ", " & txtExp.Text
objEmail.Body = "hi"
If Not file1.PostedFile Is Nothing Then
Dim attFile As HttpPostedFile = file1.PostedFile
Dim attachFileLength As Integer = attFile.ContentLength
If attachFileLength > 0 Then
szfile = Path.GetFileName(file1.PostedFile.FileName)
file1.PostedFile.SaveAs(Server.MapPath(szfile))
Dim attach As MailAttachment = New MailAttachment(Server.MapPath(szfile)) ' Attach the Newly created email attachment */
attach1 = szfile
objEmail.Attachments.Add(attach)
End If
End If
objEmail.Priority = MailPriority.High
SmtpMail.SmtpServer ="localhost"
Try
SmtpMail.Send(objEmail)
'MessageBox.Show("Your feedback has been submitted.")
MessageBox.Show("Your application is submitted")
Catch exc As Exception
MessageBox.Show("Failed to submit your feedback: ")
'MessageBox.Show(exc.ToString())
Response.Write(exc.ToString())
End Try
If attach1 <> "" Then
File.Delete(Server.MapPath(attach1))
End If
anybody pls help me this is urgent
thanks in advance
with regards
anitha
modified on Friday, May 15, 2009 11:25 PM
|
|
|
|
|
Why did you assign both IP and localhost to SmtpMail.SmtpServer in the line SmtpMail.SmtpServer ="localhost"' "127.0.0.1"?. Use either one.
Also post the error message, if this is not working.
|
|
|
|
|
i hve gven only local host. there is no error message shown but iam not getting email in my inbox
|
|
|
|
|
use smtp.net.mail
make object of
SmtpClient smtp1 = new SmtpClient();
smtp1.Send(objMail);
objMail containt the details of Mailt TO, Mail From, Body etc .
use this u can easily send the mail.
Regards
Keyur
|
|
|
|
|
Can u please send me a sample for Grid view where I have a column where I can edit, delete and insert data in Gridview.
|
|
|
|
|
|
|
Hi, I am trying to set up a text box, which as soon as the page loads, the IP of the visitor is shown in a Text Box.
The Text Box must also be locked, so that the user can see the IP, but not edited.
I am using the following code:
<asp:TextBox ID="TextBox4" runat="server" ReadOnly="true" Text="<%(Request.ServerVariables("remote_addr"))%>"></asp:TextBox>;
But it is not getting the IP address, instead it is just displaying: <;
Any help about how I should tackle this problem?
(Btw, I'm using C# in Visual Studio)
|
|
|
|
|
use proper bindig with text. u missing the method which bind the data with Text Property. make changes as follows.
Text='<%#Eval(Request.ServerVariables("remote_addr"))%>'
Regards
Keyur,
"Always Be Happy, Live Life Long"
|
|
|
|
|
When I did that, it gave me the following error:
'System.Web.HttpRequest.ServerVariables' is a 'property' but is used like a 'method' H:\VisualProgramming\2\guestbook.aspx 41
|
|
|
|
|
check it for syntax and make proper concatenation of string.
Regards
Keyur
|
|
|
|
|
|
i write a method retun string in cs file
and i call this method in javascript function
but it gev me error
here is the code
<script language=jscript type="text/javascript" >
function SetDate()
{
window.opener.document.getElementById("txt_Date").value=<%GetSelectedDate();%>;
}
</script>
MD_NADA
|
|
|
|
|
based on what you wrote it looks right.
Provide what the error is and code from the opener to get an answer. also code for when it's called.
|
|
|
|
|
Is there anything wrong with this? This is verbatum how is looks on the server but it wont send. It takes you to the redirect page while its simultaneously attempting to send the form fields to the mail server (smtp.whatever.com) and the redirect page give you the 'else' error at the very bottom.
protected void SendMail(String strBody)
{
String strONOES;
String strFromEmail = "joel.dunn@yahoo.com";
String strFromName = "Dealer Request";
try
{
MailMessage msgMail = new MailMessage();
MailAddress maFrom = new MailAddress(strFromEmail, strFromName);
msgMail.From = maFrom;
msgMail.To.Add(new MailAddress("joel.dunn@yahoo.com"));
msgMail.ReplyTo = (new MailAddress(txtEmail.Text));
msgMail.Subject = "Bathwraps Find a Dealer";
msgMail.IsBodyHtml = true;
msgMail.Body = strBody;
SmtpClient mSmtpClient = new SmtpClient();
mSmtpClient.Host = "smtp.bathwrapstexas.net";
mSmtpClient.Send(msgMail);
Session["Request"] = "Request";
-------------------------------------------------------------------------------------------------
protected void SetLabel()
{
if (Session["Request"] == "Request")
{
lblBody.Text = "Thank you for your submission. You will be contacted soon about becoming a Bathwraps dealer.";
}
else if (Session["Request"] == Request)
{
lblBody.Text = "Thank you for your submission. A Bathwraps dealer will be contacting you shortly.";
}
else
{
lblBody.Text = "There was an error submitting the e-mail form. Please try again later.";
}
}
If I said something clever or genius here I'd feel repetitious...
|
|
|
|
|
make changes at follows
instead of mSmtpClient.Host = "smtp.bathwrapstexas.net"
put your mail domain
eg.
mSmtpClient.Host = "mail@bathwrapstexas.net"
this will work
try this
Regards
Keyur
"Always Be Happy, Live Life Long"
|
|
|
|
|
I have the following coding in my web form.
var type = (from p in entities.Address select p);
this.GridView2.DataSource = type;
this.GridView2.DataBind();
Here in table Address I have one column named "Status" which is foreign Key. When I selected all the columns and try to bind with GridView it is not showing that column which is forign key. What is the reason.
Thanks
|
|
|
|
|
Hi,
where i can find real information about speed and usability of ASP.NET as a platform for online game?
Someone knows any online games(in web browser) which used ASP.NET not PHP?
Greetings
|
|
|
|