|
i mean that i have to send a mail to a user immediately when he register with our site . when he register a value in a sql table row changes from 0 to 1.
Thanks for your interest.....
hiiiiii
|
|
|
|
|
Go with SMTP. ie., System.Web.Mail namespace
SMTP[^] this will help you.
Regards,
Satips.
|
|
|
|
|
To satips.
My ques. was not that adjactly..I want to know whether i can attach my console application(by which I am sending mail using smtpserver) to the data base trigger..If yes then how?????
hiiiiii
|
|
|
|
|
NO, you can't attach your console application with your database trigger. Trigger fired on the database server and console application resides on client machine.. So it is not possible
|
|
|
|
|
is there any other way to do this..?????
i have seen that so many sites send the mail to activate your account when you register wiyh them..
hiiiiii
|
|
|
|
|
hi friends
i checked the username already exists or not from database.(it works fine)
now i used popup window same as yahoo ID check.
In yahoo id give ID name and click check avilablity button one popup window displayed and also that ID name also displayed in that popup
how can i achive it
can u help me
regards
saravanan
|
|
|
|
|
Hope this[^] will give and idea.
Regards,
Satips.
|
|
|
|
|
Use this Code
function pop_window()
{
window.open('Write here your aspx Page','anycontent',
'width=455,height=435,status');
}
Raghvendra Kumar Roy
|
|
|
|
|
hi
but i have code in that button click.if i give Runat="server"
the will refresh my captcha image is refreshed.
i need the code only in client side same as yahoo
regards
saravann
|
|
|
|
|
Did you try with the link as i provided.
It will help you.
Regards,
Satips.
|
|
|
|
|
Hi this msg i am posting third time,
Still now i didnt get reply...,
i trust this time i will get some ideas from our forum members...,
i need print option like gmail or yahoo mail...,
I displayed my datas in datagrid,its in one of my frame set...,
Now in that when i click print button,
what are the datas are in that datagrid..,
those want to come in separate page,then it want to print...,
How to do this...,
Plz any one hlp me...,
Advance thanks...,
Magi
|
|
|
|
|
Save the content of the datagrid in the format as your requirement in the file and print this file autometically by raising the print event when the button is clicked.
u can get the output.
|
|
|
|
|
|
Thank u its working now...,
Once again Thanks Lot...,
Magi
|
|
|
|
|
|
Thanks lot who all are really helped for me...,
Keep in touch...,
Take care............................
Magi
|
|
|
|
|
Hello,
I am a newbie to ASP.Net. I created my first web application using ASP.Net.
The project compiles and runs perfectly from my local machine.
I did a copy website from my local application onto the web server.
Now, when I open the server website on the VS Expresss Edition, and build it. I get Errors that says:
Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. \\\wwwroot\\Form.aspx 396
Error 107 Element 'CalendarExtender' is not a known element. This can occur if there is a compilation error in the Web site. \\\wwwroot\\Form.aspx 501 36 \\\wwwroot\\
I don't know what is causing this problem.
When I run the website on the IE browser, I get a different error that says:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 37:
Line 38:
Line 39:
Line 40:
Line 41:
Source File: c:\inetpub\wwwroot\\web.config Line: 39
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Please let me know, if you have any clue.
Appreciate your help.
Regards,
Rekha.
|
|
|
|
|
Hey Rekha,
Did you run aspnet_compiler from the same location as you run MSBuild? Same path and same machine? Is there any UNC share invloved when you saw the error? If so, you might need to run caspol.exe (in the framework installation location) to grant permission to the share.
Regards,
Satips.
|
|
|
|
|
I have following stored Procedure. I am writng following ado.net code
to get return value from stored procedure but it doesn't work.
String constr =
System.Configuration.ConfigurationManager.ConnectionStrings["twcsanConnectionString"].ConnectionString;
SqlConnection objConn = new SqlConnection(constr);
string sqlstmt = "usp_Update_tbtickets";
SqlCommand objCmd = new SqlCommand(sqlstmt, objConn);
objConn.Open();
//objCmd.ExecuteNonQuery();
SqlDataReader sqlDr;
sqlDr = objCmd.ExecuteReader();
while (sqlDr.Read())
{
Session["TCKid"] = Convert.ToInt32(sqlDr.GetValue(0));
}
sqlDr.Close();
objConn.Close();
CREATE PROCEDURE [twcsan].[usp_Update_tbtickets]
-- Add the parameters for the stored procedure here
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
DECLARE @id INT
SET NOCOUNT ON;
SET @id = (select top 1 ticketid from tbtickets where TcktStatusid
= 1)
update tbtickets
Set tcktopened = GetDate(), TcktAudited = GetDate(),TcktStatusid =
2
where ticketid = @id and TcktStatusid = 1
Return @id
END
seema
|
|
|
|
|
you can use out parameter to get the returned value or you have to do the following.
int tickedID = 0;
tickedID = Convert.ToInt32(SqlHelper.ExecuteScalar(connection string, command type, command text, parameters));
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Hi,
I don’t know if I am posting this message in the right forum, but any way here is my problem. We have developed an application in .Net which runs on the SmartPhone. The application runs fine but we could not able to do one thing, that is, the application should read the cell phone number from the SIM card on which it is installed. I need help on this, If you can provide code, it will really help us.
Thanks in Advance
Kuber
|
|
|
|
|
Hi,
I want to know what is the difference between the Membership and MembershipProvider classes? The reason why I ask is because they both have a CreateUser method.
I hope someone can shed some light.
Regards
ma se
|
|
|
|
|
Please some body let me know how to declare, instaciate and create a two dimensional arraylist
Thanks in Advance
|
|
|
|
|
Try using Array instead, Arralist is a collection.
|
|
|
|
|
hello i dont know where i had to post this
I have a postonly.html page which send a "POST" xmlhttprequest at register.php
my problem is while query is complete (and table is updated) extremly fast(1-2 sec) as i can see
my database via Putty.exe
Responce of the
if(http.readyState == 4 && http.status == 200)
{
alert(http.responseText);
}
is takes about 15 sec (so the alert box pop up)
anyone knows any suggestion so it would be response faster? (my get method Ajax works fine and fast)
<code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Customer Account Information</title>
<script type="text/javascript">
function postForm()
{
var url2 = "register2.php";
var params = "account=testisok&email=yeah";
http.open("POST", url2, true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.send(params);
http.onreadystatechange = function()
{
if(http.readyState == 4 && http.status == 200)
{
alert(http.responseText);
}
}
}
function getHTTPObject() {
var xmlhttp;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
else if (window.ActiveXObject){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (!xmlhttp){
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
}
return xmlhttp;
}
var http = getHTTPObject();
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<p>Enter customer ID number to retrieve information:</p>
<p>Account: <input type="text" id="account" value="" /></p>
<p>E-mail :<input type="text" id="email" value="" /></p>
<p><input type="button" value="Register" onClick="postForm"/></p>
<div id="divAccountInfo"></div>
</body>
</html></code>
|
|
|
|