|
sathimailin1 wrote: i want to do that in ASP.NET
Uh, Why? If you can't answer that adequately, stop and think. Answers that are not adequate include but are not limited to "because the rest of the project is ASP" or "because the client wants ASP". It's completely and utterly the wrong platform. It will get you nothing more then a horrendously complicated solution to a fairly trivial problem.
Like Manas said, create a windows app or service.
Bar fomos edo pariyart gedeem, agreo eo dranem abal edyero eyrem kalm kareore
|
|
|
|
|
Many email servers "throttle" email sending, limiting you to only so many emails per hour, or requiring a certain number of seconds between emails, or limiting the number of recipients on a single email. This is to keep the mail servers from being blacklisted as spam-generators!
So you might want to find out what limits, if any, are imposed by the email server(s) you will be using, and design accordingly.
other than that, System.Net.Mail does a fine job but I suggest you write a class/component to do the work so you can call it from asp.net or a winforms app or a service or whatever you end up with. Though it is possible to do what you want from asp.net, (a) there's no real need to do it that way and (b) it will be problematic to figure out how to trigger it appropriately on schedule
good luck!
|
|
|
|
|
Thanks for your kind reply
|
|
|
|
|
Hi,
What is best machinsm to check whether the server is UP or not?
How far ping mechanism is reliable?
If any good machanism is there to check whether server is UP or not?
Kindly help me
|
|
|
|
|
Obvious really, post it on multiple forums gets more answers - not.
Its rude to post to multiple forums.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Don't cross post. That's rude.
Now, you could always just ping a packet to the server, and if you get a reply, it is up.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
ping if pretty reliable, assuming the server is configured to respond to a ping request, but -
- you may want to wait until the server has failed, say, three pings in a row before flagging it as 'down', depending on how often you ping it, and
- don't ping it too often
if you need to verify something other than 'the server responds to pings' then a better option might be to write a program that tests the server functionality that you want to verify, and have it run as a scheduled task; no response w/in a certain timeframe means your server is down (or your test program has failed). Alternately, your test program could be presented as a web service from the server and called periodically remotely. There may be other options as well, it depends on precisely what you need to verify.
good luck!
|
|
|
|
|
This seems like an easy task but I havn't mangade to figure it out.
I have a table like this:
<table cellpadding="0" cellspacing="0" class="tabAdminUser" width="257px" border="0">
<tr>
<td style="width:103px" rowspan="8"></td>
<td class="lblStyle1"><br />$User_usergroups$</td>
</tr>
<tr>
<td style="height: 9px">
<asp:LinkButton ID="lbtnUserSearch" runat="server" Height="9px" CommandName="userSearch" CssClass="lbtnStyle8"
onclick="lbtnGoToPage_Click">$Search_for_user$</asp:LinkButton>
</td>
</tr>
<tr>
<td><asp:LinkButton ID="lbtnNewUser" runat="server" Height="9px" CommandName="newUser" CssClass="lbtnStyle8"
onclick="lbtnGoToPage_Click">$New_user$</asp:LinkButton>
</td>
</tr>
<tr>
</table>
The problem is that I want the LinkButtons to be closer to each other.
I belive I've tryed everything, from setting the hight on the tablecell and linkbutton, but
no mather what, the tablecell always is 19px high.
Thanks
Thomas
|
|
|
|
|
try setting margin-top:-2px; on the bottom linkbutton.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
My scenario is as follows..,
1.On the User PC, an user will give click on a button then It will take a value to the server and update it to a file ......
2.then from server it will get the updated file to User PC and then it will invoke an exe in that user PC ..........
3.then up on entering some values again from client some values will be sent to server.
Here User PC and Server are in WAN
Iam Unable to get the proper Idea to solve this.....
What is the best machanishm to solve this?
How to solve the above Problem?
Kindly Guide me
|
|
|
|
|
hi i would like to know that
is it possible to send email through localhost?
if yes than what is the process?
asp.net using c#
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
modified on Friday, September 12, 2008 10:04 AM
|
|
|
|
|
AspDotNetUser wrote: is it possible to send email through localhost?
Yes. I've done it.
AspDotNetUser wrote: if yes than what is the process?
A mail server.
AspDotNetUser wrote: using c#
Clickety[^]
Bar fomos edo pariyart gedeem, agreo eo dranem abal edyero eyrem kalm kareore
|
|
|
|
|
I have a variable in Default.aspx.vb (code behind) under OnInit event
Protected Overrides Sub OnInit(ByVal e As EventArgs)
Dim zstring As String = "Test Text"
End Sub
I want to display this string value in my Defalt.aspx page, The code in written bellow
<asp:panel id="Panel1" runat="server" width="262px" height="60px" xmlns:asp="#unknown">
<%Response.Write(zstring)%>
I got an error message "Name zstring is not declare"
How can I display this text ?
Thanks in advance
|
|
|
|
|
dhumplopoka wrote: Dim zstring As String = "Test Text"
Needs to be a global public variable.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
you missed it value it is like this
<%Response.Write(zstring.value)%>
The Web Developer Beirout-Lebanon
|
|
|
|
|
hey please tell me how to display calender on the web page..in ASP.NET
thanx..
modified on Friday, September 12, 2008 9:03 AM
|
|
|
|
|
use ASp.Net Calendar Control
cheers,
Abhijit
Think Sharp | Code Sharp | C Sharp
|
|
|
|
|
Like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
use javascript calender. and i like use ajax calender control its ultimate method and easy way to use calender control.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
<asp:textbox id="txt_dob1" runat="server" cssclass="textbox1" xmlns:asp="#unknown"> <cc1:calendarextender id="CalendarExtender5" runat="server" targetcontrolid="txt_dob1" animated="true" format="dd/MMM/yyyy" xmlns:cc1="#unknown">
its a ajax tool kit easily available on google. use it.
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Hi,
I am trying to set a textbox's SkindID to based on if the checkbox is selected. If the checkbox is not checked then I don't want the textbox to have a SkinID set, how do I do this?? I have tried setting it to "", string.Empty and null, but it does not want to work. Please advise.
protected void Page_Init(object sender, EventArgs e)
{
if (chkImportDispensed.Checked)
{
txtImportExconApprovalNumber.SkinID = "RequiredTextBox";
}
else
{
txtImportExconApprovalNumber.SkinID = null;
}
}
Is this the proper way to set SkinIDs?
They say I must set the skind id dynamically in the Page_PreInit event handler, but when I add it the event does not even fire.
In the above event handler, even though the checkbox is clicked the checked property is always false, why?
Thanks.
Brendan
|
|
|
|
|
Yes,Anyone has to change the themes programmatically then PreInit() is the only event where you can do it ?
.NET Enthusiast wrote: chkImportDispensed.Checked)
I suspects in Page-Init you won't get postback value as the ViewState is not loaded yet you should take check box value from request object like this
string selectedValue = Request.Form[controlID].ToString();
Try to run this code in Page Preinit event
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hi,
Thanks for the answer, but I added the following line of code and it does not work:
string selectedValue = Request.Form["chkImportDispensed"].ToString();
The error is:
Object reference not set to an instance of an object.
Thanks
|
|
|
|
|
Its because Request.Form["chkImportDispensed"] is null
Make sure that chkImportDispensed is the client id of the checkbox
if chkImportDispensed is server id of the check box then
your code should be like this
string selectedValue = Request.Form[chkImportDispensed.ClientId]
if(!string.IsNullOrEmpty(selectedValue))
{
dd here what you have to do
}
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hey,
Nope, still not working, here is my code:
string selectedValue = Request.Form[chkImportDispensed.ClientID];
if (!string.IsNullOrEmpty(selectedValue))
{
}
For some or other reason selectedValue always remains null, checked or not checked. On this checkbox is an autopostback = true.
Any other ideas?
|
|
|
|