|
Yes, there are a small number of tables that would have new rows written into them but it is acceptable and we can do a manual transfer of the data some time after the recovery.
http://www.youralarm.com - written in ASP.net & SQL Server
|
|
|
|
|
Have you considered working with your hosting provider to mirror your database on a different server? Assuming the hosting provider gives you advance notification of downtime, you can manually switch over to the mirror, then switch back when the primary comes back up.
But if you really want to implement Access as a fallback, I would put the Access code in classes that you could insert when a SQLException is thrown. If you can't connect, go to plan B.
My other signature is witty and insightful.
|
|
|
|
|
My web project needs a home page alert when a new record is added into database
(C#,Asp.Net & Sql Server).This is similar to the alert we receive when a new mail is received in gamil.Please help me with some sample code.
Regards
Anup
|
|
|
|
|
Send AJAX request to server and check new records are inserted. Use JS, setTimeout method and check for new data frequently. If you are using ASP.NET AJAX extensions, you can use the Timer control provided which make things easy.
|
|
|
|
|
|
I have two treeviews in my form, which contains checkboxes for leaf nodes to select. The objective is to transport the selected nodes to second one. I am able to do that, but the issue is I'm not getting in a tree structure, just listing one by one. Can anybody please help?
Following is my code:
protected void AddUnit_Click(object sender, EventArgs e)
{
AddParentNode();
for (int i = 0; i <= AvailableUnitsTreeView.Nodes.Count - 1; i++)
{
AddUnits(AvailableUnitsTreeView.Nodes[i]);
}
}
private void AddParentNode()
{
if (SelectedUnitsTreeView.Nodes.Count== 0)
{
TreeNode Parentnode = new TreeNode();
Parentnode.Text = AvailableUnitsTreeView.Nodes[0].Text;
Parentnode.Value = AvailableUnitsTreeView.Nodes[0].Value;
SelectedUnitsTreeView.Nodes.Add(Parentnode);
SelectedUnitsTreeView.Nodes[0].ShowCheckBox = false;
}
private void AddUnits(TreeNode node)
{
for (int i = 0; i <= node.ChildNodes.Count-1; i++)
{
AddUnits(node.ChildNodes[i]);
if (node.ChildNodes[i].Checked == true)
{
SelectedUnitsTreeView.Nodes.Add(node);
SelectedUnitsTreeView.Nodes.Add(node.ChildNodes[i]);
}
}
}
Cana anybody pls help how to achieve the tree structure in the second treeview also?
It's urgent. pls
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
I foundout the solution. Thought that it might be useful for somebody. Just add two more lines as follows in AddUnits function:
TreeNode MainNode = new TreeNode();
MainNode.Text = node.Text;
MainNode.Value = node.Value;
MainNode.ChildNodes.Add(node.ChildNodes[i]);
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
how can I pass a value to class file defult connctor from aspx page as parameter
|
|
|
|
|
Your question is not clear. Please read the posting guidelines and rephrase the question.
|
|
|
|
|
vnsraj wrote: how can I pass a value to class file defult connctor from aspx page as parameter
What does it mean? You want to pass some value to class?
|
|
|
|
|
hi,
i m using asp.net c#
and i m trying to send mail via gmail account
code is
MailMessage message = new MailMessage();
message.From = new MailAddress("prtaeekfgiet@gmail.com");
message.To.Add(new MailAddress("rma.maksat@gmail.com"));
//message.To.Add(new MailAddress("recipient2@foo.bar.com"));
//message.To.Add(new MailAddress("recipient3@foo.bar.com"));
//message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);
<system.net>
<mailSettings>
<smtp from="prateekfgiet@gmail.com">
<network host="smtp.gmail.com" port="587" userName="prateekfgiet" password="password" defaultCredentials="true" />
</smtp>
</mailSettings>
but its give error
error is
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. k2sm932784rvb.8
pls help me
|
|
|
|
|
|
Issue related to this article : Dirty Panel Extender (ASP.NET AJAX)
I want to use the DirtyPanel.dll in my application. Should i need the license to use the Dll?
|
|
|
|
|
|
t111111 wrote: Forum: ASP.NET
Subject: need licence for DirtyPanel.dll??? Urgent
Not urgent for us at all.
t111111 wrote: Issue related to this article : Dirty Panel Extender (ASP.NET AJAX)
You are talking about Dirty Panel Extender (ASP.NET AJAX) article?
t111111 wrote:
I want to use the DirtyPanel.dll in my application. Should i need the license to use the Dll?
You can check the License Agreement in the "License" section of article and It is The Code Project Open License (CPOL) .
If you want to know more on this, just post on the discussion section of the article, Mail will be send to Author and he can replied you better
|
|
|
|
|
I want to use the DirtyPanel.dll. Is it free? or need some licenced???
can i use it in VS 2008 with ajax extension 1.1???
|
|
|
|
|
There is a specific article on it AJAX Dirty-Panel[^] and the forum over there should be able to help you with this issue.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Hi, I have an application that uses the .net AJAX toolkit. The dll's are included in my project.
Im looking at a web hosting packages(not dedicated). If they say they support .net 3.5 does that automatically mean that they support AJAX?
Thanks
|
|
|
|
|
To be clear with the hosting plans, you may need to check out the server support team directly.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
roguemat wrote: does that automatically mean that they support AJAX?
No. You can contact the support and confirm that server supports ASP.NET AJAX extensions. I use http://www.bizhostnet.com/[^] and they have support for it.
|
|
|
|
|
Hi,
I have this two lines of code
Response.Write("alert('Successfully Assigned.');");
Response.Redirect("SomeOtherPage.aspx");
but it is always going to the redirected page without displaying the alert
Any solution??
Thanks
|
|
|
|
|
Can we have the Response.Redirect statement replaced by a self.location.href within the script itself?
I believe, the 302 Redirect is taking precedence in your case.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
When I used HttpContext.Current.Session["ConnStr"] it s through NullReference error.
What should I do??????
|
|
|
|
|
vnsraj wrote: When I used HttpContext.Current.Session["ConnStr"] it s through NullReference error.
Because the session variable is not initialize. where did you stored the variable in Session ? Why you are not checking the Session variable is null or not before access ?
|
|
|
|
|
I create session["SessionValue"] in aspx page and assign this to class file
public static String DBConnectionString
{
get
{
if (HttpContext.Current.Session["ConnStr"] != null)
{
return HttpContext.Current.Session["ConnStr"].ToString();
}
else
{
return "";
}
}
set
{
HttpContext.Current.Session["ConnStr"] = value;
}
}
But when I go to other pages then its show null exception but I check session is null or not.
like below
if (HttpContext.Current.Session["ConnStr"] != null)
What should I do
|
|
|
|