|
Mahajan,
You should look into the help provided in Google to setup Gmail Account with an Email Client. I believe the SMTP port number for SSL is different than the default (25). Check it and try to use that port number while sending email through gmail. But I am not sure where you could send emails through Google's SMTP server.
|
|
|
|
|
GMAIL SMTP Server requires an authentication in the form of username and password.
The reason, it is giving you this error message is because you have set UseDefaultCredentials to false.
Just set this to true, and it should work like a charm.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hi,
I have simple formview that adds data to a database.
I need to add the current date there too, as a string.
inside the <insertitemtemplate> I have a textbox for that date string:
<asp:label id="lblDate" text="Date:" associatedcontrolid="txtDate" runat="server" xmlns:asp="#unknown" /> <br />
<asp:textbox text="<%# Bind("msg_date") %>;" width="220" id="txtDate" runat="server" cssclass="contact_formField" xmlns:asp="#unknown" />
in my onLoad subroutine I have:
Dim msg_date As String
Dim dtNow As DateTime = DateTime.Now
msg_date = dtNow.Date
The question is - how do I make the textbox have the value of msg_date form the onload sub?
(I am new to .net programming, so I apologize if this is total nonsense...)
|
|
|
|
|
txtDate.Text = msg_Date. Get rid of the binding statement, unless you make msg_date a property that returns the right value inside it's own code, and is not set externally.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
I already thought of that, but tried it again.
didn't work, got this error:
Compiler Error Message: BC30451: Name 'txtDate' is not declared.
modified on Monday, July 28, 2008 3:43 PM
|
|
|
|
|
Hi,
I want to display reservations in table of asp.net 2.0
in first cell i want to display vehicle name and from 2nd cell i have to display timing ranges from 8:ooAM to 11:00AM with interval of 15 minutes.
I mean each hour contains four cells and have to color those cells which contains reseved time .
i have calculated start_cell_number and end_cell_number but now i have to display reservations in table and want to color cells which contains reservation.
Please iam stuck on this any hint or article is highly appericaited .
Here is sample of display Data .
VehicleName 8:00 8:15 8:30 8:45 9:00 9:15 9:30 9:45 10:00 10:15 10:30 10:45 11:00
Shahzore
CD 70_01
cD 70 02
for suppose Shahzore is reserved from 9:00 to 10:00 then i have to color cells from 9:00 to 10:00 ans others reamins un colored
please give me simple hint
Regards
rameez
|
|
|
|
|
I am using Visual Studio2005.
I had added the Textbox Attribute "onfocus",so as to clear the Textbox On Focus.
Now could you please help me how to get the default Text Written in the Textbox,as the Focus is removedd.
Pl provied me the required Syntax to add the Attribute,and also the Java Script if needed..I new to this Domain..
Thanx in advance....
|
|
|
|
|
Do not use words like URGENT in your subject line. It is considered rude since people may help at their free leisure and time.
"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
|
|
|
|
|
|
What have you done so far?
"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
|
|
|
|
|
Hi
I am writing a cms and I want to put the option of creating a new page there.
right now i just can edit the content but I don't know how to create a new page.
Please help me.
|
|
|
|
|
What have you done so far? No one is going to be able to help you without seeing what you have done and it's pretty much impossible with the vagueness of your post.
"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
|
|
|
|
|
for example I have 2 pages (Index and images) right now i can change the content of the Index page and
also change the images in the IMAGES page.
but what I want is that the end user be able to create a third page like SITEMAP
I hope I made this clear
thanks
|
|
|
|
|
Help me or provide me any article for that.
Thanks
|
|
|
|
|
amistry_petlad wrote: provide me any article for that
No. Try google. For database connection string, look at www.connectionstrings.com[^]. A little brain work and looking at the connection strings used for Oracle, I hope you can figure it out.
"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
|
|
|
|
|
dear paul I have interview the day after and I need your urgent help.
I was from sql server side so need ODP.NET GUIDE SO NEED YOUR HELP.
I REALLY APPRECIATE IF YOU HELP ME THANKS IN ADVANCE
|
|
|
|
|
amistry_petlad wrote: your urgent help
Sorry, I don't work like that
amistry_petlad wrote: have interview the day after
Kind of last minute isn't it?
amistry_petlad wrote: from sql server side so need ODP.NET
Conceptually, should not be a whole lot different. If I recall, ODP.NET is just about as straightforward as ADO.NET. Been a while since I've done anything Oracle-wise. You may be better off telling the interviewer that you come from the SQL Server side, and are researching (expanding your knowledge) other databases such as Oracle, and other databases. If the gig is meant to be for you, they will appreciate your honesty and hopefully see that you are someone who is willing to learn new things on the job.
Good luck with your interview
"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
|
|
|
|
|
Thanks but atleast need some help for using namespace for odp.net and connectionstring help to gain me something new so i can explain them at that time.
|
|
|
|
|
Hi,
How do i clear session in my asp.net page?
If i click the log out button then it'll go to default page.But if i copy the link name of that page and paste that means it'll automatically goes to the corresponding page.I dont know how do clear that and how to overcome this?
If any one know this plz help...
|
|
|
|
|
Use Session.Abandon . It will abandon the session after the current page, so that the next page gets a new session.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hai all
I have a doubt that i have open and read a notepad file delimited words with the help of StreamReader class from system.IO and split funciton and here i need to show up to end user that which part of word in a text file is being read. for example when you copy a file the windows dialog will show which file is being copied and location where it is going to be copied.
i tried by placing my label inside the loop but i am getting the contents after the whole text file is read.
can any one give me a chance to know how to do it .
by
satish
|
|
|
|
|
What does this have anything to do with ASP.NET?
"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
|
|
|
|
|
sathimailin1 wrote: I have a doubt
You mean that you have a question?
Why do people from India always say "doubt" when they mean "question"? Is it the same word in Hindi?
sathimailin1 wrote: i tried by placing my label inside the loop but i am getting the contents after the whole text file is read.
That's because your changes just ends up on the message queue, they are not handled until the main loop resumes, i.e. after your method finishes.
Use the DoEvent method to handle the message queue while you are in a loop.
Alternatively, run the method in a separate thread, and use Invoke to change the label from the UI thread.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: Why do people from India always say "doubt" when they mean "question"? Is it the same word in Hindi?
I've always wondered that.
"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
|
|
|
|
|
in ASP.net/VB.NET how to use Do events ,
|
|
|
|