|
I found my solution :
function GetInfo(img)
{
SRC=img.src
HEIGHT=img.offsetHeight;
WIDTH=img.offsetWidth;
TopLocation=img.offsetTop;
LeftLocation=img.offsetLeft;
}
|
|
|
|
|
Hello Everybody
I'm sending the mail i'm receiving blank text or nothing or sometimes i got error ...................
I'm putting my code here plz have a look and suggest me the problem exists in my code
I've already taken following controls.......given below
hidden Field= txtID
IFRAME = manojTextBox
-----------------------------------------------------------
Page_Load
if(!Page.IsPostBack)
{
cmdClick.Attributes.Add("onClick","document.Form1.txtID.value=manojTextBox.document.body.innerHTML");
}
-----------------------------------------------------------
Click Event
MailMessage mail1=new MailMessage();
mail1.To="mail@saamstesting.com";
mail1.From="manoj.manojbisht@gmail.com";
mail1.Subject="This is New Mail -2";
mail1.Priority=MailPriority.High;
mail1.BodyFormat=MailFormat.Html;
mail1.Body=Request.Form["txtID"];
try
{
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail1);
lblMsg.Text="Mail Sent Successfully";
lblMsg.ForeColor=Color.DarkBlue;
}
catch(Exception ex)
{
lblMsg.Text=ex.Message.ToString();
lblMsg.ForeColor=Color.Red;
}
|
|
|
|
|
The Knowledge wrote: cmdClick.Attributes.Add("onClick","document.Form1.txtID.value=manojTextBox.document.body.innerHTML");
try something like this instead
var iFrame= document.getElementById("IFrame1");<br />
document.getElementById("txtID").value = iFrame.document.innerHTML;
and have a look at the below link
How to send SMTP mail in ASP.NET using C# technology[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hello
I am a beginner and I really need hlp
The problem is that :-
I want to display the Button id of the button which has been clicked on a new page on being clicked and the text also i mean buton.text.
Mrinal
|
|
|
|
|
Do you mean that you want to pass the button ID and TEXT to the new page on the click of a Button? If yes...
On the button click event use Reponse.Redirect to call the new page. Along wi the page URL you can pass the button ID and TEXT as query string values.
something like this...
Response.Redirect("NewPage.aspx?btnId=" + btn.ID + "&btntext=" + btn.Text, False)
and In the New page you can retrieve the values using Request object.
Request.QueryString("btnId")<br />
Request.QueryString("btntext")
the above statement will give you the vaues that you passed from the actual page.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Thanks..
I have 4 buttons on my page .It worked for the first button but didn't work for the rest others ..
Mrinal
|
|
|
|
|
can we define the table and div property in the skin file in asp.net
please help me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Piyush Vardhan Singh wrote: can we define the table and div property in the skin file in asp.net
Skins: Allow you to define individual HTML Elements and Web control styles.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
thanks for reply.
First time i have using skin file.i want to use many ui for single page. please if u have any example or link then please give me.
thanks
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
|
Hi All,
I need to Implement Remember Me functionality using ASP.NET 2.0. When I enter user name and password for the first time then windows ask me that whether u want to save this passowrd or not, but I dont want it in this way.
When check the checkbox of Remember Me on this Computer then it should be saved and next time when i press first letter of login name then it should display the list of all names starting with that first letter. When I select the user name it should automatically displays the password and when I clicked on login button tis should all the FormsAuthentication and redirect to valid page.
Please help me...
|
|
|
|
|
Use cookies to manage
I Love SQL
|
|
|
|
|
Thanks for replying.
I did that but Im not getting how to display list of user names visited the site from my machine or say how will I get the list of user names in the User name textbox??
Please help me...
|
|
|
|
|
You have to store the UserName in Cookie and when the request occure then you have to check the cookie for UserName is Exists then assign to textbox
Best Regards,
Chetan Patel
|
|
|
|
|
Thanks Chetan, it will be very greatful if u help me with some code also.
Thanks again.
|
|
|
|
|
this is the code i am using
BloodUnit.Number when i give enter in textbox the page getting posted
i dont know y this is happening ?
Any one Give me a Solution....
sathimailin
|
|
|
|
|
The code lines you have given is ok there is no problem in it can you give me whole code between tag
Best Regards,
Chetan Patel
|
|
|
|
|
Thanks for taking this issue.
sathimailin
sathimailin
|
|
|
|
|
Hi friends..
Can anyone give me the code to generate random numbers in javascript..?
Pls do the help at the earliest..
Thanks & Regards,
Balaguru
|
|
|
|
|
check the Math.random() funtion
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
hi,
i have a some datagrids in my web based application, and want to convert them to the new Telerik RadGrids.
Initially, i just changed the ID of the Telerik grid to the id of the old datagrid, but that gives me an error stating, that it cannot convert.
can anyone advise me on the subject
thanks
|
|
|
|
|
Hi all,
I am using Asp.net , C# Visual studio 2005.
I want to export data that contains images and textual data to word.
Please give me some useful link ……
Thank you.
imran khan
|
|
|
|
|
You have to use Graphics object to write to the .doc file it provides different method to write to word document.
Use following link
http://www.codeproject.com/aspnet/wordapplication.asp
Best Regards,
Chetan Patel
|
|
|
|
|
I am using AutoComplete control in AJAX. I have following method in my web service. But it is giving me following error
Cannot implicitly convert type 'string[]' to 'string'
[WebMethod]
public string FindEmails(string prefixText, int count)
{
ArrayList filteredList = new ArrayList();
String constr = System.Configuration.ConfigurationManager.ConnectionStrings["MySqlServer"].ConnectionString;
SqlConnection objConn = new SqlConnection(constr);
SqlCommand objCmd = new SqlCommand("SELECT Emails From t_Users", objConn);
SqlDataReader objRdr;
string[] str;
str = new string[12];
int x = 0;
int i = 0;
objConn.Open();
objRdr = objCmd.ExecuteReader();
while (objRdr.Read())
{
str[x] = Convert.ToString(objRdr.GetValue(i));
x = x + 1;
i = i + 1;
}
foreach (string name in str)
{
if (name.ToLower().StartsWith(prefixText.ToLower()))
filteredList.Add(name);
}
return (string[])filteredList.ToArray(typeof(string));
}
seema
|
|
|
|
|
method FindEmails have to return array string instead of only string
public string[] FindEmails(string prefixText, int count)<br />
{<br />
.<br />
.<br />
.<br />
.<br />
}<br />
I Love SQL
|
|
|
|