|
Sorry, can't help , was wondering however, can we have a sneak preview at the site you are doing all this stuff on? Would love to see it.
Dave Goodman on funny error messages:
It is a definite no-no to run BITMAP as a user command. Your nose will grow, your lawn will die, your hair will fall out, and your first-born will marry an aardvark. Shame on you!
|
|
|
|
|
Megan Forbes wrote:
was wondering however, can we have a sneak preview at the site you are doing all this stuff on? Would love to see it.
Sure, when it is working a bit more like it should! At the moment it works OK, but I'm having problems with getting my "data" displayed correctly (need to take 2d data, then transform to 3d data, do a sort and then back to 2d data, so everything is displayed like it should, oo how I hate recursion!)
But I will let you all know as soon as its "viewable" and "semi-functional"! Hopefully by the end of the weekend!
PS. I did solve the problem!
protected override object LoadPageStateFromPersistenceMedium()
{
return null;
}
As I dont need it!
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Cool - looking forward to it
Dave Goodman on funny error messages:
It is a definite no-no to run BITMAP as a user command. Your nose will grow, your lawn will die, your hair will fall out, and your first-born will marry an aardvark. Shame on you!
|
|
|
|
|
I have noticed that some sites include an icon in IE address bar and when a favourite is made, it also has an icon.
How do they do this?
Thank you!
|
|
|
|
|
|
Hmmm... you typed your msg 4 minutes quicker than me... Chris must be feeling happy to have his articles advertised so many times
Dave Goodman on funny error messages:
It is a definite no-no to run BITMAP as a user command. Your nose will grow, your lawn will die, your hair will fall out, and your first-born will marry an aardvark. Shame on you!
|
|
|
|
|
Megan Forbes wrote:
Chris must be feeling happy to have his articles advertised so many times
As should he....
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
It's a file called favicon.ico - you make a little bmp and place it in the root of your webproject. Only problem is - half the time it doesn't work. Chris kindly did an article on it http://www.codeproject.com/html/favicon.asp[^]. Codeproject has Bob sitting there - if you can't see it on your browser it just means your browser is not behaving (have yet to find a way to fix this - mine's had no pocket money and is currently grounded for this), not that the CodeProject site is broken.
HTH
Dave Goodman on funny error messages:
It is a definite no-no to run BITMAP as a user command. Your nose will grow, your lawn will die, your hair will fall out, and your first-born will marry an aardvark. Shame on you!
|
|
|
|
|
Hi all, my DQOTD
OK ok I post a form with a textarea back to the server, now how do I read that? I got to
if (Request.HttpMethod == "POST")
{
Request.ContentLength;
Request.ContentType;
Request.Form["TextBox1"];
}
Someone mite find this handy
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
now how do I read that? I got to
Wow that is quite a complex way of getting at the elements value.
You can just use var strDescription = Request.Form["TextBox1"]; btw, no need for the rest.
And I see you are using JScript on the server side and not VBScript, enjoying it? David Wulff would be proud.
|
|
|
|
|
Paul Watson wrote:
You can just use var strDescription = Request.Form["TextBox1"]; btw, no need for the rest.
Thanx Paul, as I was writing the post I was trying to give as much as possible info, then I realised that line was the answer
Paul Watson wrote:
And I see you are using JScript on the server side and not VBScript, enjoying it? David Wulff would be proud.
I use C# server-side! And JavaScript client-side. How did you get to that conclusion?
Cheers
PS: I hate being offline halve the day!!!
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
I use C# server-side! And JavaScript client-side. How did you get to that conclusion?
Oh, did not realise you were doing ASP.NET, so when I saw the Java like syntax thought you were doing JScript in ASP.
|
|
|
|
|
If you are using asp.net, then you are doing things the hard way.
There is almost zero need to use the Request object in an asp.net webform.
the TextBox control knows how to populate and persist its values from the request and viewstate.
Just use the TextBox's Text property in your event handler.
|
|
|
|
|
Andy Smith wrote:
If you are using asp.net, then you are doing things the hard way.
There is almost zero need to use the Request object in an asp.net webform.
That is so, IF you are using the MS webcontrols. Fortunately, all the controls I am using, is custom rendered and does NOT work like MS intend them to be! I had a guy look at it and it reminded him of JSP (he know nothin of .NET though) , so hopefully it will be easily portable to Java
Cheers
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Then I still say you are still doing things the hard way.
But hey, if you are intending to do things the hard way... have fun man.
|
|
|
|
|
Andy Smith wrote:
But hey, if you are intending to do things the hard way... have fun man.
I wouldnt say hard, its much more logical to me! Anyways, all code will be made available on CP as an article
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
you cant place web controls on a page with a flow layout. I design my controls to use a flow layout so DummyX can use it on his 640 x 480 monitor and Geek11 can use it at 3024 x 2258.
Now my problem with a grid layout is that when u move the controls on the webpage it adds pointless table code to my page , and franky ^%$^'s it up! (nothin new on WinForms ) Is there maybe a way to force it?
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
Is there maybe a way to force it?
Well first off I say don't use the VS.NET web-forms designer it does a bad job and is rather buggy.
But if you insists... I do not know how to permanently turn grid layout off, but you can follow these instructions each time you create a new webform:
To set the pageLayout property in the Properties window
1. Open an HTML document for editing in the HTML Designer
2. At the top of the Properties window, choose DOCUMENT properties
3. Select the pageLayout property, and choose a value from its drop-down list
Or change the body tag to this: <BODY ms_positioning="FlowLayout">
|
|
|
|
|
Thats all nice and well, but you cant drag a control to the page!
Maybe I must reboot
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
you cant place web controls on a page with a flow layout.
Ehhh? What?
I use web controls on a flow layout all the time. Am I misunderstanding you here?
Paul
|
|
|
|
|
Need a little help from one who knows more than I.
I am trying to generate a simple function in an asp.net page. I want the page to store the IP address of the machine hitting the page and display it on the same page.
Anyone have some help?
Thanks.
Thorlin
|
|
|
|
|
Request.UserHostAddress gives you the IP address.
Storing it depends what methods you have for storage.
To display it back to the page, drop a label from the ToolBox wherever you want to display it, then in the Page_Load event say MyLabel.Text = Request.UserHostAddress
Hope that helps.
Paul
|
|
|
|
|
Hi all, how can I simplify this?
.ThreadNormal
{
border-right: #ff9966 1px solid;
padding-right: 3px;
border-top: #ff9966 1px solid;
padding-left: 3px;
padding-bottom: 3px;
border-left: #ff9966 1px solid;
padding-top: 0px;
border-bottom: #ff9966 1px;
background-color: #ffffcc;
}
.ThreadEnd
{
border-right: #ff9966 1px solid;
padding-right: 3px;
border-top: #ff9966 1px solid;
padding-left: 3px;
padding-bottom: 3px;
border-left: #ff9966 1px solid;
padding-top: 0px;
border-bottom: #ff9966 1px solid;
background-color: #ffffcc;
}
The only difference is the bottom border. Can I do somthing like this?
.Thread
{
border-right: #ff9966 1px solid;
padding-right: 3px;
border-top: #ff9966 1px solid;
padding-left: 3px;
padding-bottom: 3px;
border-left: #ff9966 1px solid;
padding-top: 0px;
background-color: #ffffcc;
}
.Thread.End
{
border-bottom: #ff9966 1px solid;
}
.Thread.Normal
{
border-bottom: #ff9966 1px;
}
ANy help appreciated
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
leppie wrote:
Hi all, how can I simplify this?
Couple ways in fact. Probably the best way is this:
.ThreadEnd, .ThreadNormal
{
border-right: #ff9966 1px solid;
padding-right: 3px;
border-top: #ff9966 1px solid;
padding-left: 3px;
padding-bottom: 3px;
border-left: #ff9966 1px solid;
padding-top: 0px;
background-color: #ffffcc;
}
.ThreadEnd
{
border-bottom: #ff9966 1px solid;
}
.ThreadNormal
{
border-bottom: #ff9966 1px;
}
You can define more than one CSS class at a time using the comma (,).
Also you can then re-define classes later on in the CSS file. In fact you can re-define as many times as you want, and any non-specified attribute will not be overwritten.
The other way is:
.Thread
{
border-right: #ff9966 1px solid;
padding-right: 3px;
border-top: #ff9966 1px solid;
padding-left: 3px;
padding-bottom: 3px;
border-left: #ff9966 1px solid;
padding-top: 0px;
background-color: #ffffcc;
}
.ThreadEnd
{
border-bottom: #ff9966 1px solid;
}
.ThreadNormal
{
border-bottom: #ff9966 1px;
}
and then in your HTML:
<div class="Thread ThreadNormal">still not the end, sigh</div>
<div class="Thread ThreadEnd">the end is nigh!</div>
As you can see you can specify more than one class at a time in an HTML element. It is actually a good thing too, not just a hack.
|
|
|
|
|
Thanx Paul , seems to be just what I need
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|