|
Thats not a issue anybody can get what the namespace is
Any way i corrected it
Issue solved sir :->
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... "
|
|
|
|
|
I know it Just to make it correct i said it.
Check your mail and reply to me.
Regards,
Satips.
|
|
|
|
|
Check whether
1. port is blocked
2. smtp is configured properly
Regards
KP
|
|
|
|
|
Can u tell me sir how to configure the smtp plz
|
|
|
|
|
The below code should work else you your mail will be put in queue/badmail folder under the inetpub/mail
eMail = new MailMessage();
eMail.BodyFormat = MailFormat.Text;
eMail.From = _SendFrom;
eMail.Fields[http://schemas.microsoft.com/cdo/configuration/smtsperver]
= "SMTPServerName";
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 25;
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;
if (SMTPUser != null && SMTPPassword != null)
{
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendusername"] = "mailid@yourdomain.com";
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "your account password";
}
eMail.To = "recipients";
SmtpMail.SmtpServer = SMTPServerName;
SmtpMail.Send(eMail);
//
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
request you take help of System Administrator
Regards
KP
|
|
|
|
|
Hi friend
After Hitting the Enter key I want cursor focus back on text box how it possible can u help me. I am also using ajax panel all control in ajax panael.
My code for the Focus back on textbox
txtwrite.Focus()
but is work when textbox out of panel
i am also using javascript for Hitting the enter key
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I create one website, in it i want to put 1 option that when any new user log in at that time one random number generate of 10 digits for him. So, waht i can do for it?
Darshan
|
|
|
|
|
Write a class to generate random Number.
Random Number[^] this is generating the RandomPassword in that change the string value with 0 to 9 to get random number.
Regards,
Satips.
|
|
|
|
|
Use Random class present in System namespace
Create the object of the class and use Obejct.Next(Min,Max) method
my openion is create a random number for only 4 or 5 digits only and first five digits can be any thing Common or you can take time also 34677 3 min 46 sec 7 month and 7 of 2007
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... "
|
|
|
|
|
i am trying to edit value of dropdown in runtime in asp.net with c# code.
i need to code for this so i can edit and insert new values in run time.
i have also tried steve.taylor@astutemedia.com code
but not working plz send me specific code.
plz help me
goldenangel
|
|
|
|
|
PLease don't repost same question
You can do one thing write a javscript that will put the selected Dropdown item into textbox now you can edit that textbox.After editing it click a button Server side remove the selected item and add new text present in the textbox
What you think ? ;P
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... "
|
|
|
|
|
Since you are new, please read the forum guidelines. The highlights:
1. Do not repost the same question. You must be patient.
2. Do not use text speak like 'plz'
3. This forum is for people who have existing code and need to update it, fix it, etc. We are not going to give you all the code and do the work for you.
______________________
stuff + cats = awesome
|
|
|
|
|
i am trying to edit value of dropdown in runtime.
i need to code for this so i can edit and insert new values in run time.
i have also tried steve.taylor@astutemedia.com code
but not working plz send me specific code.
goldenangel
|
|
|
|
|
Hi see in my code that second if condition is nor working...,
Whats the probs in that?,
I am getting panel1...,
But when i am getting 1 value then its not displaying panel2...,
If Trim(txtflag.Text) = 0 Then
Panel1.Visible = True
Panel2.Visible = False
ElseIf Trim(txtflag.Text) = 1 Then
Panel1.Visible = False
Panel2.Visible = True
End If
Regards,
Magi
|
|
|
|
|
Put Break point at
Magh_M wrote: ElseIf Trim(txtflag.Text) = 1
And see whats wrong by Debugging your application Trim is String.Trim function right ?
in C# you should have == instead one = while performing isEqual operation
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... "
|
|
|
|
|
Sandeep Akhare wrote: And see whats wrong by Debugging your application Trim is String.Trim function right ?
in C# you should have == instead one = while performing isEqual operation
Looking at it, this is classic ASP using VB - therefore Trim as a standalone function is correct, and the language is not C#.
|
|
|
|
|
In VB one = is correct.
Does it definitely step into the second if and execute Panel2.Visible = True
If it steps in and executes that line then there is a problem elsewhere eg the panel is hidden behind something
Try taking the statement outside of an Else If and have something like:
If Trim(txtflag.Text) = 0 Then
Panel1.Visible = True
Panel2.Visible = False
End If
If Trim(txtflag.Text) = 1 Then
Panel1.Visible = False
Panel2.Visible = True
End If
Let me know what this does.
Dan
|
|
|
|
|
hello everyone,
i have a small doubt regarding the use of WebGrid/GRIDVIEW/DATAGRID.
I have a grid view.i have a button outside the GridView or dataGrid or WebGrid (say webgrid only).Now i want a javascript code such that i need to count the no of rows in the Grid.that should be called when i click the button.The Count should be show in the alert box.Plz help me urgent.
Thanks,
Murali
Murali
|
|
|
|
|
I don't know it is perfect answer or not
Run your appplication When page is displaying all data right click it and see the source code od your page
Now check how they are arrange Find the common name like that and write jabascript to get all those by document.getElementByName method
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... "
|
|
|
|
|
ThankQ Sandeep It is correct .It is working...
byeee
|
|
|
|
|
Its my pleasure dude i help in some sense
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... "
|
|
|
|
|
I have been trying all day to upload text file to server but I have this error.
Is something wrong?
Anybody who know how to solve this problem please help me out.
================================================================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not find a part of the path 'D:\webhost\TextFiles\mydata.txt'.
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.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\webhost\TextFiles\mydata.txt'.
Source Error:
Line 75: {
Line 76: fileName = Server.MapPath("//TextFiles//mydata.txt");
Line 77: FileUpload.PostedFile.SaveAs(Server.MapPath("//TextFiles//mydata.txt"));
Line 78: input = "";
Line 79:
Source File: d:\webhost\471463016\Index.aspx Line: 77
==================================================================================================
Thank you so very much,
junior boy
|
|
|
|
|
Cunningly enough, the exception tells you what is wrong. The path D:\webhost\textfiles\ isn't valid. I'm going to guess here that the TextFiles directory isn't present at this location.
|
|
|
|
|
I think you are not providing the proper path
Are you sure TextFiles folder exist in your application
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... "
|
|
|
|