|
Hi every body
i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file
<system.net>
<mailSettings>
<smtp from="">
<network host="" port="3535" userName="" password="" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
please tell me what i have to write in from=
and in host=
i am very much confused with this please help me its very urgent
|
|
|
|
|
mdazeemuddin wrote: please help me its very urgent
No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.
mdazeemuddin wrote: please tell me what i have to write in from=
and in host=
You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
thanks for your support
which is the mail server i don't and from were i can get this mail server
and i am very new to .net i didn't did this before this is my first time
|
|
|
|
|
Hi all,
How to validate the date using JS. For ex, Im giving 02/30/1983 as input.It shows server error because Feb doesnt contain 30 days.Please help me to validate this sort of error.
|
|
|
|
|
|
You can use a Compare Validator.Please check Type and Operator Properties.
Otherwise you can use a CustomValidator.
|
|
|
|
|
Hello,
I have a web application hosted on local machine. Ex: http://localhost/xyz.aspx
We have login page which prompts for user id and password. Once the user is validated, enters into another page. On all other pages, the user name gets displayed.
Can we determine is there any session for the website is running or not? if we can find it, we want to stop multiple users from logging in from the same system.
Please give me any ideas on this.
Thank you,
Raheem MA
|
|
|
|
|
You're going about it wrong. Store a list of logged in users on the application level and check it when a user tries to log in. Add a time stamp for the last access, so you can time out users who didn't explicityl log out.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you all for quick response,
The website is already in production. The user name gets displayed on all the pages once the login successful.
Suppose user A logged in and USER A is getting displayed on the next page.
In another browser window user B logged in and USER B is getting displayed on the next page.
Now, if you go th browser A, and do refresh the page, then USER B will be displayed on the page. this is the issue currently we have.
How to overcome this? Please give me ideas
Thank you,
Raheem MA
|
|
|
|
|
shah_tech wrote: How to overcome this? Please give me ideas
You have been given two ideas. Obviously, if you've released the product, you are going to have to change it to overcome this bug.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Raheem,
You can try like this....
If you are validating user login against database then add one more field 'status' in ur table and update this field for successful login.
In this way if another user tries to login then you can check status field , if it is not updated allow login otherwise inform that this login is already in use.,
And dont forget to update status field when user logs out.
Note: you need to explicitly update status field in session_end event and in page unload events.
Hope this helps you.
Happy coding
Regards
Surender M
|
|
|
|
|
333soori wrote: Note: you need to explicitly update status field in session_end event and in page unload events.
EVen this cannot be trusted, he needs to add a timeout, and store the time of each page request, so he can tell that enough time has passed to regard the user as logged out
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I want to add progress bar in my asp.net page. how i can do this
modified on Wednesday, August 5, 2009 5:24 AM
|
|
|
|
|
|
Can i fill the gridview from different tables in same database? How can i do that? Can i use join statement?
|
|
|
|
|
Yes,you can.Customize your data retrieval query as per your requirements and fill it to a entity list that u have created.
|
|
|
|
|
yes you can do this. when you add database source for Gridview just select
1. Specify custom SQL statement or store procedure
2. on the next step you found a query builder button just click it and add table as as you want
in this way you can add many table according to your requirement
|
|
|
|
|
I tried that. But it will join the table, but it will use join statement which will do using Cross join. Using this it will repeat the values for corresponding other values. It will not solve my problem.
|
|
|
|
|
write me your complete problem. what r your tables to whom you want to access in gridview.
thanks
|
|
|
|
|
We need to build a component builder from which we can drag and drop the components like button, textbox, label, listbox at runtime in .net. Kindly help . TIA
|
|
|
|
|
Don't double post ? You need for clients to be able to drag and drop UI and create pages ? You have a ton of work in front of you then. I'd expect you'd want an activeX control to do this, not to try to do it in JS.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
We need to build a component builder from which we can drag and drop the components like button, textbox, label, listbox at runtime in .net
|
|
|
|
|
Could anyone give us some inputs on how to dynamically generate an aspx page and its CS page using XML and XSTL .TIA
|
|
|
|
|
I am not sure that you can, because once you do, how do you pass it to the ASP.NET engine to generate a page lifecycle ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I m not able to call javascript function ValidateYear with year as parameter, can some1 help reg this issue, i hv written following code in aspx code behind..
Dim sbScript As New System.Text.StringBuilder
sbScript.Append("ValidateYear(")
sbScript.Append(cboYearAtCurrentAddressCoApplicantContact.Text)
sbScript.Append(");")
'Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "key",sbScript.ToString, False)
ClientScript.RegisterClientScriptBlock(Page.GetType, "key", sbScript.ToString, False)
Neither exception is thrown nor calling javascript.Plz Help
|
|
|
|