|
Barbo,
Thanks to your reply. I already add New but still listbox is not updated.
i put the init of delegate on page.init and page.load but still no luck.
i so added postback=true on listbox.
Thanks again,
jyn
|
|
|
|
|
Error:
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
|
|
|
|
|
|
Is it possible,To remove session when user close his browser.
if yes , how?
|
|
|
|
|
|
It is for restoring Session not for deleting.
|
|
|
|
|
try this:
1. First create a page LogOut.aspx and in Page_Load event write this code:-
protected void Page_Load(object sender, EventArgs e)
{
Session.Abandon();
}
2. Then add following JavaScript code in your page or Master Page:-
<script type="text/javascript">
var clicked = false;
function CheckBrowser()
{
if (clicked == false)
{
}
else
{
clicked = false;
}
}
function bodyUnload()
{
if (clicked == false)
{
var request = GetRequest();
request.open ("GET", "AutoLogOut.aspx", true);
request.send();
}
}
function GetRequest()
{
var request = null;
if (window.XMLHttpRequest)
{
request = new XMLHttpRequest();
}
else
{
request = new ActiveXObject('MSXML2.XMLHTTP.3.0');
}
return request;
}
3. Add the following code in the body tag of master page.
<body onunload="bodyUnload();" Onclick="clicked=true;">
Finally the code in Master page like this:-
<script language="javascript" type="text/javascript">
var clicked = false;
function CheckBrowser() {
if (clicked == false) {
}
else {
clicked = false;
}
}
function bodyUnload() {
if (clicked == false)
{
var request = GetRequest();
request.open("GET", "LogOut.aspx", true);
request.send();
}
}
function GetRequest() {
var request = null;
if (window.XMLHttpRequest) {
request = new XMLHttpRequest();
}
else {
request = new ActiveXObject('MSXML2.XMLHTTP.3.0');
}
return request;
}
</script>
<body onunload="bodyUnload();" onclick="clicked=true;">
<form id="form1" runat="server">
|
|
|
|
|
hiiiiiiii to all
how we can maintain old data in gridgiew after updating the the particular.......
any one can tell.
Thanks in advance
rizvan sivally
|
|
|
|
|
I Used Update Command as for this
Update tblJobs set [Status]=Status+ ' * ' + @Status +' ' +Cast(getdate() as varchar(50))+' <br/> ',Remarks=Remarks+ ' * ' + @Remarks + ''+Cast(getdate() as varchar(50))+ ' <br/> 'where Id=@Id"
see Remarks=Remarks+ ' * ' + @Remarks this update Remarks Column and your previous data remains same.
|
|
|
|
|
hello,
Sir/Madam
I want to create a mail website like gmail in asp.net using c#,i am confused how to start it? Can u suggest me how i can start and give me some ideas abt it.
|
|
|
|
|
You start by studying and doing the research necessary to give you the understanding so you will know where to start. In any case, there are numerous tutorials here and via Google that would help if you can be bothered to do your own work.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I have Master Page.
i insert jquery to head tag like this but I think that page can't load jquery_min.js file. How can i slove this?
(Below is master page)
<head runat="server">
<script type="text/javascript" src="common/scripts/jquery_min.js"></script>
I want to load Jquery script when page load
Because I have to use below code.
(Below is master page)
<script type="text/javascript">
$(document).ready(function () {
$.get('../common/path.xml', function (data)...........
});
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
Not entirely sure what your problem is. You can certainly reference the jquery script file in your master page and, in fact, should do so. What error are you getting? Perhaps the path to the script is incorrect.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Hi,
I am developing an Android Application where I would like to submit a search string to an ASP.NET web page. The App would then format the returned data. Any tips on how I might accomplish this?
Thank you!
|
|
|
|
|
Can any one help me to understand the concept of global.asax file in asp.net3.5
Thanks and regards 
|
|
|
|
|
|
Thanks for the suggestion
|
|
|
|
|
Actually you should bookmark -> google.com[^]
Apurv
If Java had true garbage collection, most programs would delete themselves upon execution.
|
|
|
|
|
hi friends
i need to send mails from an asp.net application using c# but my IIS is not configured in my laptop so how to send mails
can anyone help me in this issue plz..
K.Gayathri
|
|
|
|
|
You don't need to configure IIS. The SmtpMail[^] class has a static property used to set the SMTP server to send mail through. You can also configure this in the web.config file in the mailSettings[^] element
No comment
|
|
|
|
|
hi
thanks for the reply
as per the link u gave
i wrote this in my web.config file
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="localhost"
port="25"
defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
and in my code i wrote this:
MailMessage msgMail = new MailMessage();
msgMail.To = txtEmail.Text;
SqlCommand slistname = new SqlCommand("select * from list_builder where listid=" + selVal, conn);
drSubGroups = slistname.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.Subject = drSubGroups["ListName"].ToString();
}
SqlCommand sAccoutdet = new SqlCommand("select * from create_account where UserId=" + Session["UserId"].ToString(), conn);
drSubGroups = sAccoutdet.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.From = drSubGroups["EmailId"].ToString();
}
msgMail.Body = "Confirm your subscription";
SmtpMail.SmtpServer = "smtp.domain.com";
SmtpMail.Send(msgMail);
but still not working can you plz help me...
K.Gayathri
|
|
|
|
|
You have to give a better explanation than "it doesn't work".
One guess is you are using localhost as the smtp server and I doubt very much your local machine is an email server or configured as a relay.
Format your code snippets when posting
No comment
|
|
|
|
|
This my help[^]
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Warez yo grandmar dizzapeered to?
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
hi
thanks for the reply
my problem is i am not able to connect to the smtp server
can anyone help me out
my code is:
in my web.config file i have:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="my id address here"
port="25"
defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
my asp.net c# code is
MailMessage msgMail = new MailMessage();
msgMail.To = txtEmail.Text;
SqlCommand slistname = new SqlCommand("select * from list_builder where listid=" + selVal, conn);
drSubGroups = slistname.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.Subject = drSubGroups["ListName"].ToString();
}
SqlCommand sAccoutdet = new SqlCommand("select * from create_account where UserId=" + Session["UserId"].ToString(), conn);
drSubGroups = sAccoutdet.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.From = drSubGroups["EmailId"].ToString();
}
msgMail.Body = "Confirm your subscription";
SmtpMail.SmtpServer = System.Configuration.ConfigurationManager.AppSettings["SMTPServer"];
SmtpMail.Send(msgMail);
K.Gayathri
|
|
|
|