|
Thank you! I filled the Listbox at Page_Load. I now limitted the Filling just on Page.Postback=false and it's working great now!
|
|
|
|
|
Any one with question conserning crystal reports 10 with oracle and asp.net? I wanna answer them now live
|
|
|
|
|
Dont need such messages.
|
|
|
|
|
Hi,
Can TFS2010 do the parallel Db restore.if possible How it can be ...
Thanks
Anand
|
|
|
|
|
How is this in any way related to ASP.NET
only two letters away from being an asset
|
|
|
|
|
Its all about in Build,Deploy in Lab management
I need it for automated Deploy without custom code.
|
|
|
|
|
It has nothing to do with ASP.NET!!!
only two letters away from being an asset
|
|
|
|
|
Pass me any book on TS2010 or try DB forum
|
|
|
|
|
Not really related to ASP.NET.
But I will try to answer your question. AFAIK TFS is built upon a SQL Server, so the question you should ask is: "Does SQL Server 2008 support parallel DB restore?" (Will there be a newer version of SQL Server ? 2010?
regards
Sebastian
|
|
|
|
|
I think answer is no.. Each Engine can Restore only one db at a time, I have seen this upto SQL server 2008.
Dont know about 2010 as it is not released yet.
|
|
|
|
|
hi ,
I am using Intelligencia.UrlRewriter.dll to rewrite my page url.
it work very well on my local computer but when i upload this page on my web server
url rewrite not work it gave an error. The page cannot be found
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)
plz suggest me how can i correct this problem.
thanks in advance.
no knowledge in .net
|
|
|
|
|
Well, seems like your rewriting is not correct. The IIS writes every request (with URL) to a log, check this log to see the URL which causes the error.
Did you implemented the UrlRewriter?
|
|
|
|
|
Unknown Ajanabi wrote: no knowledge in .net
Wow - interesting sig.
Why do you need a dll to do URL rewriting ? Why not write your own code ? Did you read the docs that come with the dll, or ask in a forum dedicated to people who use this dll ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get the following error :
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
Please give me a solution to this problem.
CC26
|
|
|
|
|
set: EnableEventValidation="false"
this will solve your problem
|
|
|
|
|
will it affect any other control's event?
CC26
|
|
|
|
|
|
Hi All ,
I want to store the array of string into the cookies and retrieve the value from cookies please can any one help me to find out the solution of this.
Thanks in advance.
Amit patel
|
|
|
|
|
If you want to know how to do this. Here [^]is the example with code samples.
You can not save the array as it is. Instead convert in into a some type of sepertated string and save.
Do the reverse while reading it back from the cookie.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
can u give me the example of this in C#.
|
|
|
|
|
Good Morning All
I have the Following code that sends an e-mail, let me first post the markup and the code behind. The following is the markup of my page
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
To <asp:TextBox ID="txtto" runat="server" Width="325px"></asp:TextBox><br />
<br />
From <asp:TextBox ID="txtFrom" runat="server" Width="326px"></asp:TextBox><br />
<br />
CC: <asp:TextBox ID="txtcc" runat="server" Width="326px"></asp:TextBox><br />
<br />
Subject:
<asp:TextBox ID="txtsubject" runat="server" Width="326px"></asp:TextBox><br />
Body :<br />
<asp:TextBox ID="txtbody" runat="server" Height="86px" Width="314px"></asp:TextBox><br />
<br />
Port:
<asp:TextBox ID="txtport" runat="server" Width="127px"></asp:TextBox><br />
<br />
Host
<asp:TextBox ID="txthost" runat="server" Width="127px"></asp:TextBox><br />
<br />
<asp:Button ID="btnSend" runat="server"
OnClick="btnSend_Click" Text="Send" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" /><br />
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
</form>
</body>
</html>
and i have a Function that sends the e-mail like this
private static string SendEmail(String from, string to, string cc,int port, string subject, string message,String Host)
{
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
mail.From = new System.Net.Mail.MailAddress(from,"Test E-mail");
mail.Subject = subject;
mail.Body = message;
mail.IsBodyHtml = false;
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient();
smtp.Port = port;
smtp.Host = Host;
smtp.Credentials = new System.Net.NetworkCredential("administrator", "skskssk");
try
{
smtp.Send(mail);
return "Mail sent successfully!";
}
catch (Exception ex)
{
Exception ex2 = ex;
string errorMessage = string.Empty;
while (ex2 != null)
{
errorMessage += ex2.ToString();
ex2 = ex2.InnerException;
}
return errorMessage;
}
}
and in my button send we have the following
protected void btnSend_Click(object sender, EventArgs e)
{
Label1.Text = SendEmail(txtFrom.Text, txtto.Text, txtcc.Text, Convert.ToInt32(txtport.Text), txtsubject.Text,txtbody.Text,txthost.Text);
}
I have entered the Following in the Required Fields when i test the application
To: Vuyiswa@its.co.za
From:Vuyiswa@its.co.za
CC:vuyiswamb@gmail.com
Subject: This is the Test for the mail in o!booking System
BodyIf you Receive this e-mail Please confirm the receipt of this e-mail
Port : 25
Host: mailserver.Vuyiswa.local
When i run my Application and clicking on the send button , i get the Following Error
System.InvalidOperationException: A recipient must be specified. at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.SendEmail(String from, String to, String cc, Int32 port, String subject, String message, String Host) in c:\Vuyiswa\Email_test\Default.aspx.cs:line 51
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi
Vuyiswa Maseko wrote: System.InvalidOperationException: A recipient must be specified
As suggested by error and looking at your code i found that you have not add the recipient whom you want to send the mail.I think you miss that
Just Add
mail.To = new System.Net.Mail.MailAddress(to,"Test E-mail");
himanshu
|
|
|
|
|
Thanks a lot for reminding me that part. i have added it and i get a new Error
System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: Microsoft Exchange Server 2003 POP3 server version 6.5.7638.1 (Mailserver.its.local) ready. at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) at _Default.SendEmail(String from, String to, String cc, Int32 port, String subject, String message, String Host) in c:\Vuyiswa\Email_test\Default.aspx.cs:line 53
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Sounds like your mail server needs configuring.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Am Currently using my companies mail server to test. and doing Configuration to suite me will not be a good idea. can i use my Dev machine to test this. i have enabled relying on my System and i see there is my IP.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|