|
Sadly, none. I've been learning as I go, so it's a process of bumbling through each step until I get the result I'm looking for. So far I've only been working in html, xml, and css in terms of web dev. The client I'm doing this for doesn't seem to be using much of anything server-side, so I'm trying to build this functionality from nothing.
|
|
|
|
|
Well you might want to look for some decent ASP.NET tutorials. There could be some introductory articles here on CodeProject as well.
|
|
|
|
|
I guess I probably should start at the beginning and get some asp basics under my belt. Haha. Thanks Mike.
|
|
|
|
|
You can use a MailAddress object to deal with the from and to email addresses. Then construct a MailMessage object where the body is a string as either plain text or an html document. Once you have those use an SmtpClient object to fire off the email. Set the Host and Port properties on the SmtpClient object and you should be gtg.
pseudo code:
message = new MailMessage
smtp = new SmtpClient
smtp.Send(message)
Todd Smith
|
|
|
|
|
how to implement internet clouds on a web page. Please provide with example and code in C#
|
|
|
|
|
Is Google blacklisted in your region?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Hello, I am Silvia Terzi and I am quite new in asp .net. I have a very contingent and, at least I hope, banal problem. In my website I've built a login page where I give the possibility to the user, to choose the database he/she wants to enter, considering that I have 4 db (oracle) structurally identical but containing different datas. Inside the site then use various objects, like gridview and combobox, connected to db through SqlDatrasource. I've been able to do this thing and it seemed to work, but I have realized, that the change of connection string, instead of being only for session user, seems to work to global level. So, when an user changes connectionstring entering in the site, also changes connectionstring of the other users connected to the site from other computers. What I wrong?? I simply change the ConnectionString of the sqldatasource, but what's missing? Thank you to everyone who wants to help me.
Regards, Silvia Terzi
|
|
|
|
|
Use Session Variable to store the Connection String. It is limited to single user.
Session["VarName"] = <connectionString>;
string strCon = Session["VarName"].ToString();
|
|
|
|
|
Thank you very much, it works. There is only one problem; if I open two different pages of internet in my computer, it doesn't work. I know that if I open the page with "New Session" it works, but i'd like to do it only opening a new page of internet. Any idea?
Thanks,
Silvia
|
|
|
|
|
can u tell how connect to database in asp.net using create userwizard & login controls?
|
|
|
|
|
First, you should ask to Google.
There is no foolish question, there is no final answer...
|
|
|
|
|
Why do you want to connect to database using create userwizard & login controls ?
You are best person who knows about your problem.
-------------------------------------------------
More pain more gain
|
|
|
|
|
What is wrong with this question?
1) Wrong forum. We have an exclusive ASP.NET forum.
2) Wrong Title. The title should better reflect the problem and not a curt gibberish scribble
3) This is a homework question. A quick search in MSDN/Google can bring up tons of information on this.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
I'm using AJAX for the first time and while writing some code I noticed that IE appeared to be miss-behaving. Attached below is the test case showing the issue. This appears to fail with IE 6 and IE 7. Works fine with firefox and chrome.
In the code I have a number of alerts showing the path through the code and everything works ok until (with IE only) the call to the call back function setOutput. With IE the second time the doAjax script is invoked, setOutput's never called (or at least there is never a ready state of 4).
The way to reproduce this, is to delete IE's temporary internet files (tools/delete browsing history/temporary internet files). Load the test script test.html. Then click the "Click here" button and follow the path through. The first time it works fine and SetOutput is indeed called. If the button is clicked a second time, setOutput's never called. You can repeat this procedure (deleting browser history and clicking "click here").
I tried deleting the ajaxObject object to see if that would help, but it did not.
All help appreciated,
Thanks
Phil
<code>
---------------- test.html --------------------------------------
<head>
<script language="javascript" type="text/javascript">
<!--
var ajaxObj = null;
function getAjaxObj()
{
alert("getAjaxObj: Getting ajax object.");
alert("getAjaxObj: req is " + typeof req);
// native XMLHttpRequest object
if(window.XMLHttpRequest && !(window.ActiveXObject)) {
alert("1");
try {
req = new XMLHttpRequest();
alert("1.1");
} catch(e) {
req = false;
alert("1.2");
}
// IE/Windows ActiveX version
} else if(window.ActiveXObject) {
alert("2");
try {
req = new ActiveXObject("Msxml2.XMLHTTP");
alert("2.1");
} catch(e) {
try {
req = new ActiveXObject("Microsoft.XMLHTTP");
alert("2.2");
} catch(e) {
req = false;
alert("2.3");
}
}
} else {
alert("getAjaxObj: Your browser does not support AJAX.");
req = false;
}
alert("3");
alert("getAjaxObj: req is " + typeof req);
return req;
}
function setOutput()
{
if (ajaxObj.readyState == 4) {
if (ajaxObj.status != 200) {
alert("setOutput: Ajax Error: " + ajaxObj.status);
} else {
var cType = ajaxObj.getResponseHeader("Content-Type")
alert("setOutput: Ajax content type " + cType);
delete ajaxObj; // tried doing this to see if it would fix the issue????
}
}
}
function doAjax()
{
ajaxObj = getAjaxObj();
if (ajaxObj != null) {
ajaxObj.open("GET", ".../test.php", true);
ajaxObj.send(null);
ajaxObj.onreadystatechange = setOutput;
}
}
//-->
</script>
</head>
<body>
<button onclick="doAjax()">Click here</button>
</body>
------------------- test.php ----------------------------------------------------
<?php
echo ("Hello World");
?>
</code>
|
|
|
|
|
Hi
The problem reported by you is a very genenal with IE.
If you are making a AJAX call to server with same argument, then IE will not call the server page. It will display the previously fetched result.
You can fix this bug with the little changes as:
Every time you make a server call, send some Unique number along with the arguments.
As you are just calling 'test.php' make the argument as
test.php?rnd=<some random number>
<some random number> : Replace it with Unique number. This will solve your problem.
Simple way to generate the unique number id
var dtDate = new Date();
var strDate = dtDate.getHours() + '' + dtDate.getMinutes() + '' + dtDate.getSeconds() + '' + dtDate.getMilliseconds();
Make a server call as
test.php?rnd=strDate
|
|
|
|
|
Aman
Thank you so much for the very complete solution.
Best
Regards
Phil
|
|
|
|
|
What I did is to build a small ajax library with a couple of commands that I use on a regular basis and then I had those commands automatically add the random information for me. Then, I never have to worry about that ever again
|
|
|
|
|
hi
I am use Ajax uploader control in my e-mail web application for Attach multiple file on single click all work fine
but My problem is that when i select upload button then file Dailloge box open and take path where i uploaded file Last time
like if i attach file c:\\kirti then next time it take path C:\\kirti but I want to Give Dynamic Path in code
how it possible?
Thanks
Kirti
kirti
|
|
|
|
|
See, we have an ASP.NET forum....
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hey everone
I have a few questions, the first question is How do I get the positioning right for my webpage? I have honestly spent months reading tutorial after tutorial, I bought several books, and I even spent 4 hours searching Google yesterday with no luck at all trying to figure out how to position all the required elements that make up my webpage. I mean, I can position them where I want them to be, but, whenever the user resizes the browser, or if they maximize the browser, it all gets screwed up it just doesn't remain where it is supposed to be.
Here's a piece of code:
myLogo {
position: absolute;
top: 50%;
left: 50px;
border: none;
}
HorizontalLineBeneithLogo {
position: absolute;
top: 55%;
left: 50px;
}
Can somebody please explain, or provide any solutions, links to tutorials/articles or ANYTHING really? I can't get my head around this. Another thing, why don't browsers stick to standards, Apparently when Internet Explorer was first created the Web Standards didn't even exist yet, but come on, that's no excuse! They could've fixed it up by now.
Thanks for readin
jase
|
|
|
|
|
CSS is a nightmare, and don't let anyone tell you differently. However, I do see that you're using hard coded left borders, so they are bound to stay the same. I'd buy a CSS book rather than google, not least because you need a reference to look up all the arcane rules that make up CSS.
jt_23 wrote: , Apparently when Internet Explorer was first created the Web Standards didn't even exist yet, but come on, that's no excuse!
Well, IE was obviously not the first browser. MS just like to make up their own standards, always have. I agree, it is a nightmare.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks Christian,
I have a HTML, XHTML & CSS book here it's like 400 pages and that's where I first learned CSS. If I just keep the browser at the exact same size as it was when I was developing the page/testing it in the browser, then all is well. Maybe I could come up with a script that will stop the users browser from being resized/maximized while they're on my site (jokes).
I guess I should go and look on Amazon for a proper CSS book, since none out of about 8 book shops anywhere near me seem to have any.
Do you know of any Visual Studio Web Developer tutorials/articles that explain how to position in Visual Web Developer? I haven't found any yet...
Jase.
|
|
|
|
|
You need to not use any tools the IDE gives you, because they are usually horrible. they will create absolute positioning CSS, which is not what you want. CSS is the tool for the job, sadly. I do find when I can't get what I want, I will revert to using tables, but overall, CSS is what you need. And yes, I use Amazon b.c no-one here sells good books, either.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks for your advice Christian. Much appreciated.
Jase.
|
|
|
|
|
Would it be at all possible to position webpage elements in Jscript or JScript.NET? I mean, I know I can do it, but has anybody ever heard of anyone else doing that?
|
|
|
|