|
Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config
The mailing server is different from the deployment server.
|
|
|
|
|
deezZ wrote: Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config
The mailing server is different from the deployment server.
Did you understand what I have asked ?
Does your deployed Server has SMTP Configured ? It means If you have deployed your application on IIS Server, you IIS should have also SMTP Configure [ If your SMTP is different ]
deezZ wrote: The mailing server is different from the deployment server.
That's cool ! IS it working fine ?
|
|
|
|
|
Hi.
How do I need to configure the SMTP server ..
|
|
|
|
|
deezZ wrote: some
'some', 'something' and variants of these would not take you any further. You ought to be little clear and descriptive on what is crashing so that people can help you out.
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 deezZ,
Checkout does you have any firewall restriction in server, as you can send the mail from local machine their would be some possibilities for this.
|
|
|
|
|
Nopes.. there are no firewall which is blocking the mails.
|
|
|
|
|
I am working with asp.net using c# the webapplication running on localserver when i want to run webapplication in remote machine the following error shown
Cannot show a file dialog unless the application is running in UserInteractive mode
Cannot show a file dialog unless the application is running in UserInteractive mode.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Cannot show a file dialog unless the application is running in UserInteractive mode.
Source Error:
Line 166: string FileName, FilePath;
Line 167: int j = ListBox1.Items.Count;
Line 168: OFD.ShowDialog();
Line 169:
Line 170: FileName = OFD.SafeFileName;
Source File: e:\siva\kumar\aspmerger\Default.aspx.cs Line: 168
Stack Trace:
[InvalidOperationException: Cannot show a file dialog unless the application is running in UserInteractive mode.]
Microsoft.Win32.CommonDialog.ShowDialog() +4031259
_Default.AddFile() in e:\siva\kumar\aspmerger\Default.aspx.cs:168
_Default.AddTextFile() in e:\siva\kumar\aspmerger\Default.aspx.cs:88
_Default.Add_Click(Object sender, EventArgs e) in e:\siva\kumar\aspmerger\Default.aspx.cs:205
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
modified on Thursday, June 18, 2009 2:19 AM
|
|
|
|
|
Good Morning sivasampathkumar
Please give more info, This sometimes it happenes because your app wants to show a Messagebox or something, but please give more info.
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/
|
|
|
|
|
Are you trying to use any Windows Forms control from within ASP.NET?
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!
|
|
|
|
|
Post your code plz
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
sivasampathkumar wrote: Forum: ASP.NET
Subject: please helpme
This should not be the subject. Subject should be your question or regarding your problem.
sivasampathkumar wrote: I am working with asp.net using c# the webapplication running on localserver when i want to run webapplication in remote machine the following error shown
What do you mean by running on remote machine? Did you deployed the application? or what ?
|
|
|
|
|
hello..
i am trying to make a logout function.....
can anyone give me some idea about it.......
|
|
|
|
|
Hi
Clear your session objects and redirect to your homepage.
himanshu
|
|
|
|
|
merahul wrote: hello..
i am trying to make a logout function.....
can anyone give me some idea about it.......
Ok. I believe you are storing the user information in session variable. So, use Session.Abondan() while log off. and while checking the Session in Home Page, check first session is null or not before doing in steps, if its null redirect to login page.
|
|
|
|
|
|
What actually you want to do,you want to redirect to another page or anything else.
|
|
|
|
|
Hi all
i am doing export to excel operation using below code.
public void ExcelExport(System.Data.DataTable tblExportData, string TempFilePath,string userInfo,bool headerStatus)
{
try
{
Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application();
excelApp.Workbooks.Open(TempFilePath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
//Writing Header in Excel
if (headerStatus == true)
{
for (int i = 0; i < tblExportData.Columns.Count; i++)
{
excelApp.Cells[7, i + 1] = tblExportData.Columns[i].ColumnName;
}
}
//Writing Data in Excel
for (int i = 1; i <= tblExportData.Rows.Count; i++)
{
for (int j = 0; j < tblExportData.Columns.Count; j++)
{
string colName = tblExportData.Columns[j].ColumnName;
excelApp.Cells[i + 7, j+1] = tblExportData.Rows[i-1][colName];
}
}
//Create a worksheet object
Microsoft.Office.Interop.Excel.Sheets sheets = excelApp.Worksheets;
//from the collection of worksheet select one worksheet
Microsoft.Office.Interop.Excel.Worksheet mySheet = (Microsoft.Office.Interop.Excel.Worksheet)sheets.get_Item(1);
//select the cell in the worksheet
Microsoft.Office.Interop.Excel.Range myCell1 = (Microsoft.Office.Interop.Excel.Range)mySheet.get_Range("A6", "A6");
myCell1.Value2 = userInfo;
myCell1.Font.Color = System.Drawing.Color.Black.ToArgb();
excelApp.Visible = true;
}
catch (Exception ex)
{
}
}
it's working fine in local. but when i deployed this on server(e.g.relience server) then it stops to work. i mean exporting to excel not working. Even it's not generating any error and page is redirecting also. can any one help me please.
thanks to you all in advance.
|
|
|
|
|
Please do NOT cross post, its rude
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
not getting the cookie value in next page
in my first page i am assigning a cookie a value
Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
Dim appCookie As New HttpCookie("lang")
Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
LoadStrings(Thread.CurrentThread.CurrentCulture)
Response.Cookies("lang").Value = Thread.CurrentThread.CurrentCulture.ToString
Response.Cookies.Add(appCookie)
End Sub
------------------------------------------------------
but in next pg i am not getting the value of the cookie
If Request.Cookies("lang").Value Is Nothing Then
Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US")
'get the culture info to set the language
rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
ci = Thread.CurrentThread.CurrentCulture
LoadStrings(ci)
ElseIf Request.Cookies("lang").Value = "es-ES" Then
Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
'Request.Cookies("lang").Value = ci.ToString
'Thread.CurrentThread.CurrentCulture = Session("lang")
rm = New ResourceManager("Resources.Strings", System.Reflection.Assembly.Load("App_GlobalResources"))
ci = Thread.CurrentThread.CurrentCulture
'ci = Thread.CurrentThread.CurrentCulture
LoadStrings(ci)
tanx
-------------
|
|
|
|
|
Good Morning anbusenthil
Why dont you use a Session ?
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 I am using Treeview control.It has one parent node and several leaf nodes.In SelectedNodeChanged event whenever I am selecting any leaf node, it's taking only the first leaf node.
How to solve this problem?
ARINDAM
|
|
|
|
|
ARINDAM1981 wrote: In SelectedNodeChanged event whenever I am selecting any leaf node, it's taking only the first leaf node
I think, this issue is related with Postback. Can you please post your code ?
|
|
|
|
|
Protected void Page_Load(object sender,EventArgs e)
{
if (!IsPostBack)
{
PopTree();
}
}
public void PopTree()
{
TreeView1.Nodes.Clear();
com = new OracleCommand();
con = new OracleConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
com.Connection = con;
com.CommandText = "select a.meeting_no,a.meeting_no ||'-->' || a.meeting_desc comb,b.meet_no from tpc_meetings a,tpc_meets b where a.meeting_no=b.meeting_no and a.status='LIV' and b.status='LIV' order by a.meeting_no,b.meet_no";
da = new OracleDataAdapter();
ds = new DataSet();
da.SelectCommand = com;
da.Fill(ds, "Meets");
object[] marr = GetDistinct(ds.Tables["Meets"], "meeting_no");
foreach (object mval in marr)
{
string mcomb = ds.Tables["Meets"].Select("meeting_no='" + mval.ToString() + "'")[0]["comb"].ToString();
TreeNode meetingnode = new TreeNode(mcomb);
meetingnode.SelectAction = TreeNodeSelectAction.None;
TreeView1.Nodes.Add(meetingnode);
string matchval = dal.ModifyStringDotNet(meetingnode.Text.Trim());
DataRow[] children = ds.Tables["Meets"].Select("comb='" + matchval + "'");
foreach (DataRow drow in children)
{
TreeNode meetnode = new TreeNode(drow["meet_no"].ToString(),drow["meeting_no"].ToString());
meetnode.SelectAction = TreeNodeSelectAction.Select;
meetingnode.ChildNodes.Add(meetnode);
}
}
}
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
com = new OracleCommand();
con = new OracleConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString);
com.Connection = con;
try
{
com.CommandText = "select meeting_no,meet_no,to_char(to_date(meet_date,'yyyymmdd'),'dd-mm-yyyy') meet_date," +
"to_char(to_date(meet_date||' ' || meet_time,'yyyymmdd hh24mi'),'hh:mi PM') meet_time," +
"chair_pno from tpc_meets where meeting_no=" + TreeView1.SelectedNode.Value + " and meet_no=" + TreeView1.SelectedNode.Text + "";
OracleDataReader dr;
con.Open();
dr = com.ExecuteReader();
if (dr.Read())
{
txtMeetingNo.Text = dr[0].ToString();
txtMeetNo.Text = dr[1].ToString();
txtMeetDate.Text = dr[2].ToString();
txtTime.Text = dr[3].ToString();
txtChairPno.Text = dr[4].ToString();
}
dr.Close();
btnSave.Text = "Update";
hPick.Visible = false;
txtMeetingNo.Enabled = false;
}
catch (Exception ex)
{
string ermsg = "window.alert('" + ex.Message + "');";
ClientScript.RegisterClientScriptBlock(this.GetType(), "erkey1", ermsg, true);
}
finally
{
if (con.State == ConnectionState.Open)
con.Close();
}
}
ARINDAM
|
|
|
|
|
Hi all
i need to know exactly the size of sql parameters when definning them. Ex:
SqlParameter foo = new SqlParameter(parameterName, dbType, size);
this.Add(foo);
I need to know size that should be send for each datatype, Ex: Bigint, float, varchar(max)...
Thanks
|
|
|
|
|
Hi
you can give the max size as per ur requirement.
But you have to follow while declaring the size of the parameter is not less than than the size of the parameter that u have declared in your stored proc's
|
|
|
|