|
You can!
Like this:
<uc1:UserDetails id="UserDetails1" runat="server"
Address='<%# DataBinder.Eval(ds1.Users[0], "Address") %>'
Username='<%# DataBinder.Eval(ds1.Users[0], "Username") %>'>
</uc1:UserDetails>
Address and Username is properties in the code-behind class.
[edit]eeek[/edit]
|
|
|
|
|
Could you please send me all your code?User Control and your aspx with its code-behind.
mazdakmansouri@hotmail.com
Thanks.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Mazdak wrote:
Could you please send me all your code?User Control and your aspx with its code-behind.
Erm no, sorry
But like I said it quite easy. Just do what I said.
- Define a property (Username) in the code-behind class (LoginControl) like this:
public string Username { get { return userTextBox.Text;} {set {userTextBox.Text = value;}}
- In the ascx file, "bind" it like this:
<uc1:LoginControl id="LoginControl1" Username='databind expression' runat=server></uc1:LoginControl>
Have a look on MSDN at databinding on web forms aka late-binding.
I find it easier to just map the data from the dataset to the control at a page event.
Hope this helps
"There are no stupid question's, just stupid people."
|
|
|
|
|
Can anyone help me. I want to setup a feedback form in my site. That should send the results to a email automatically. Any idea... I am a biginer, so... need simple exaples or stuffs like that....
|
|
|
|
|
SPS wrote:
I want to setup a feedback form in my site.
Create a new ASP page with an HTML form in it (look up HTML input elements and the FORM element.)
Then in the same page at the top catch the submit of the form and use CDONTS (lots of stuff on the web for CDONTS) to send the email to you.
Here is some source code
|
|
|
|
|
Will give a try from it...
Thanks.....
|
|
|
|
|
Hi,
In order to have the server understand the submission and send the mail to you, you need to have some sort of Serverside mailing component like CDONTS,Persits.MailSender Aspemail or a similar mailing component. Just a search of any of the above in your favorite search engine would surely get you to tons of sample source codes to play around with.
If you do not have one, perhaps you can check up with your ISP if he provides any mailer from his common script library.
If nothing works, there are a lot of freebie sites offering to send mails. One best example is: http://www.freedback.com/
deepak
|
|
|
|
|
good, but the site is asking for MONEY to use the form. I want the idea for feedback form, not bussiness... But THANKS for the help/reply...
|
|
|
|
|
Hi all
How would I do this? When I increase the width of an image it "grows" in height as well. How do I prevent this?
Cheers
[edit] nevermind, it is solved Nothing to see here, move along.[/edit]
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
[edit] nevermind, it is solved Nothing to see here, move along.[/edit]
And you called me a DOPE! for not knowing about that IIS lockdown thing huh? Yeah yeah, be careful when you call someone a dope because two minutes later you may become one yourself!
p.s. Really interested to see the fruits of your labour what with all these questions
|
|
|
|
|
Paul Watson wrote:
And you called me a DOPE!
No I never, it was a DOPE to IIS lockdown, not you. Sorry for the misunderstanding, there is no Homer icon .
Cheers
Paul Watson wrote:
p.s. Really interested to see the fruits of your labour what with all these questions
PS: I have more! At least my combined crash course of ASP.NET, JavaScript, CSS and HTML paid off. Only 3 weeks and I feel pretty comfortable. Now I need to look at all those X thingies...;)
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
there is no Homer icon
To the suggestions area, batman!
Paul
Why don't you take a good look at yourself and describe what you see - Led Zeppelin, Misty Mountain Hop
|
|
|
|
|
Paul Riley wrote:
To the suggestions area, batman!
I thought David Stone was the only member of the forum police
"There are no stupid question's, just stupid people."
|
|
|
|
|
leppie wrote:
I thought David Stone was the only member of the forum police
I didn't mean that in a forum police kind of way, just in a "how cool would a Homer smiley be?" way!
Paul
Why don't you take a good look at yourself and describe what you see - Led Zeppelin, Misty Mountain Hop
|
|
|
|
|
Paul Riley wrote:
I didn't mean that in a forum police kind of way, just in a "how cool would a Homer smiley be?" way!
It would You cant really laugh some things. I posted the suggestion, so we will see what happens.
CHeers
"There are no stupid question's, just stupid people."
|
|
|
|
|
Watch it mister. I catch this type of stuff again and I'm going to have to throw you in CP forum jail[^].
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
David Stone wrote:
I'm going to have to throw you in CP forum jail[^].
No not there, anywhere but there! Please Mr. Police Officer, I didn't know the shotgun was loaded.
"There are no stupid question's, just stupid people."
|
|
|
|
|
Alright. I'll let you off with a warning this time.
Norm Almond: I seen some GUI's in my life but WTF is this mess
Leppie: I made an app for my sister and she wouldnt use it till it was colorful enough
Norm:good point leppie, from that statement I can only deduce that this GUI must be aimed at children
Leppie:My sister is 25
-Norm on the MailMagic GUI
|
|
|
|
|
I hope the following makes sense.
I am submitting some data to a page using SSL however I would like all
subsequent transactions to be http rather than https
eg even though I submitted my form under https I would like the returned
page to be http://.../xzy.aspx in the browser address bar - is this
possible? I know I could use Response.Redirect however I lose any settings I
have applied to objects on the form i.e. error messages
Thanks for any help
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
|
Shaun Wilde wrote:
I know I could use Response.Redirect however I lose any settings I
have applied to objects on the form i.e. error messages
How about using cookies...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Shaun Wilde wrote:
I know I could use Response.Redirect however I lose any settings I have applied to objects on the form i.e. error messages
Possibly Server.Transfer?
Paul
Why don't you take a good look at yourself and describe what you see - Led Zeppelin, Misty Mountain Hop
|
|
|
|
|
Hey people
I'm a newbie in web page making, and i got cool font, but i find that the font will not display when someone that does not have the font, how do i set it so that the font will be downloaded automatically when someone visits my web site?
Thanks
Answers often leads to more Questions
|
|
|
|
|
I'm not sure, but I think it goes something like this:
@font-face {
font-family: New Metal;
font-ssize: 9pt;
src: url(newmetal.ttf); }
HTH
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Don't forget that when you start doing stuff like this, you're instantly creating a Windows/IE only website, so make sure that it still looks ok without using your custom fonts.
Or if you just use the cool font for titles and stuff, then it's probably best to make them into gifs, then it'll work for everyone
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
I'm playing with a .NET Server RC1 and having some problems when trying to setup IIS 6.0. Ok, I have lots of experience in past versions of IIS so, I'm to ask this:
My IIS 6.0 is working fine, processing ASP pages normally, serving normally HTML, GIF and so on. But, when I try to GET a .vbs file it fails with a 404 code. I've double-checked (triple-checked, in fact) security settings and the file is there!
If I rename this file to any extension with a known MIME type like .txt, .zip it works fine. If I rename to .xxx, it gives me a 404 error again.
So, what I am doing wrong ?!
Q261186 - Computer Randomly Plays Classical Music
|
|
|
|