|
Hi
I have a problem. i have write a code to send mail in asp.net and now i ahve to publish it on Windows Server 2003. but It gives error message . Can anybody let me know that how can I configure SMTP server on windows Server 2003. Plz Plz It's very urgent.
thanks
Raghvendra Kumar Roy
|
|
|
|
|
Hi,
what is the error message you are getting?
Did you configured your SMTP-server correctly? Are you using the local one (provided by the IIS)? Maybe you must check for security properties (for this, open the IIS manager, right click on SMTP and then to the tab "security").
Regards
Sebastian
|
|
|
|
|
Raghvendra Kumar Roy wrote: Plz Plz It's very urgent.
And this is so rude.
I hope you are using IIS 6.0. Did you even google to look how to do this.
There are loads [^]of articles there.
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.
|
|
|
|
|
I want help from you.
How to typing mathematical equvation in textbox?
Is it possible are not?
If possible how to implement?
Thanking you
abglorie
|
|
|
|
|
what do u mean "mathematical equvation".
Raghvendra Kumar Roy
|
|
|
|
|
Now typing in msword document using equation editor and type matrix
(i.e. 3 row 4 columns).
1 0 1 1
1 1 0 1
0 1 1 0
|
|
|
|
|
|
Hi,
I need to clear all the Control field's - (Radiobuttonlist, Dropdownlist, Textboxes and Fileupload) values on a button click. I am able to do for Radiobuttonlist, Dropdownlist and Textboxes but not able to do for FileUpload control. Can anyone please help me out in this. Thanks in advance
txtAppID.Text = string.Empty;
txtkeywords.Text = string.Empty;
MtxtDesc.Text = string.Empty;
ddl_Domain.SelectedIndex = 0;
ddl_Theme.SelectedIndex = 0;
rbl_Businessarea.ClearSelection();
rbl_Clientsize.ClearSelection();
This is code i have written on a button click. On the same button click i need to clear the ASP:FileUpload control values too.
Thanks,
Santa.
|
|
|
|
|
set the text property to an empty string ""
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.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
There is no text property for FileUpload control.
|
|
|
|
|
Pardon me, you are Right. Now Before you Upload , you need to check if there is a File like this
if (FileUpload1.HasFile)
{
}
what you can do is that when you done Uploading you can clear it at the Upda of Uploading process like this
if (FileUpload1.HasFile)
{
FileUpload1.HasFile = false;
}
or you can do it like this
or you can do it with javascript like this
<script language="javascript">
function ClearFileUpload()
{
var fil = document.getElementById("FileUpload1");
fil.select();
n=fil.createTextRange();
n.execCommand('delete');
fil.focus();
}
</script>
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="Button1" runat="server" OnClientClick="ClearFileUpload()" Text="Clear" />
http://www.dotnetspider.com/resources/2768-clear-value-ASP-NET-FileUpload-Control.aspx[^]
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.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
This [^]should help.
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.
|
|
|
|
|
The Javascript function works fine.
the FileUpload.Hasfile = False does not work it errors out saying Property or indexer 'System.Web.UI.WebControls.FileUpload.HasFile' cannot be assigned to -- it is read only
So i used the javascript function. There is one more issue. When i use the Javascript function i am calling this methos on the OnClick of a Button, on the same OnClick event i have to clear the other fields for which the code id on the .cs file.
protected void btnClear_Click(object sender, EventArgs e)
{
txtAppID.Text = string.Empty;
txtkeywords.Text = string.Empty;
MtxtDesc.Text = string.Empty;
ddl_Domain.SelectedIndex = 0;
ddl_Theme.SelectedIndex = 0;
rbl_Businessarea.ClearSelection();
rbl_Clientsize.ClearSelection();
}
If both the functionalities are in .cs file can call it one after the other.
One functionality is in aspx page the other is in .cs file. So what do now.
Thanks,
Santa
|
|
|
|
|
coolsharath wrote: One functionality is in aspx page the other is in .cs file. So what do now.
I would rather move this to client side. Its always nice (atleast my preference) to handle the validations, field clearing at the client side itself.
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.
|
|
|
|
|
Hi friends,
i have a problem in windows service.I have made application same as that code.that application contain IHTMLDocument interface.When i run the service, break point disappear from this IHTMLDOCUMENT line nad not completing the further process.Where as with the same code,application successfully executed.
Can anybody tell me what type of problem is there?reply me on sonal.2086@gmail.com
reply asap.
Thanks & regards,
Sonal Patel
|
|
|
|
|
iiiii wrote: i have a problem in windows service
And this is ASP.Net forum.
iiiii wrote: reply me on sonal.2086@gmail.com
Never do this. This only invites a large chunk of spams.
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.
|
|
|
|
|
Hi friends
I have a problem of showing gridview's databound column value which binds decimal values. Actually it shows comma instead of showing decimal point in the decimal value.
For eg 20,02 instead of 20.02
My website s a multilingual website. if I select a english then it displays 20.02 in the BoundField column else it shows 20,02.
Could u guide me how to resolve this issue
G Nathan
|
|
|
|
|
G Nathan wrote: if I select a english then it displays 20.02 in the BoundField column else it shows 20,02.
My friend, I think this is OK. There are many cultures like French, Dutch etc where decimal is represented by a comma.
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.
|
|
|
|
|
Hi Friends,
I develop one Web Application using C#.Net here i want a report with a condition.
The condition given in the Text Box.But i don't know how pass the text box value to the report.
Please help me with your valuable ideas.
Thanks,
Vasanth.A
|
|
|
|
|
How to pass a lot of parameter in WCF
|
|
|
|
|
Rahad Rahman wrote: How to pass a lot of parameter in WCF
And how is it related to ASP.Net?
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.
|
|
|
|
|
Hi,
same question again? To pass "a lot of parameter" you could use lists, arrays etc. It is also possible to write each parameter for itself. There is no "real" limit for parameters...
Again: Please tell us your exact problem, exception, error message etc.
Regards
Sebastian
|
|
|
|
|
hi,
i am new to asp.net but have some problem in asp.net coding
i want to acess the mysql database data using asp.net coding.
i write like this
Dim cmd As OdbcCommand = New OdbcCommand("select * from nysemin where date='2009-09-14' and ticker_symbol='acc' ", con)
the above code is like hardcoding manually.but i need dynamically
i tried like this
dim da="2009-09-15"
Dim cmd As OdbcCommand = New OdbcCommand("select * from nse_und_5min where date="&da&" and ticker_symbol='acc' ", con)
but error is showing
how to complete the above requirement ie passing date value into dynamically in that query.
have a nice day
bye
Naga
|
|
|
|
|
dim da="2009-09-15"
dim strQuery = string.Format("select * from nysemin where date='{0}' and ticker_symbol='acc'", da)
Dim cmd As OdbcCommand = New OdbcCommand(strQuery, con)
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.
|
|
|
|
|
hi Manas Bhardwaj
thanks for your reply.
i will explain clearly i have one dropdown list in that list i have INDIA,USA,UK,UAE options are there when ever the
user select particular option i need to pass that option into query and get the values from database.
so i need dynamic value passing into that query.how to write for in ASP.net
in java we write like
Empno={33,44,55,55}
String ss="Select * from emp where empno='"+Empno[i]+"' and salary="20000" ";
but i am new toasp.net how it is possible.
i tried like this but giveing error
dim strQuery = string.Format("select * from nysemin where symbol='&Empno&' and ticker_symbol='acc'", da)
have a nice day
bye
naag
|
|
|
|