|
Paul Riley wrote:
Limiting how? I haven't found anything I can't do with a datagrid yet (at least nothing that I'd want to do )
It can only hold a row of data Sometimes you need to communicate multiple lines of info to the client if the data is too "wide" for the page. Take a very simple forum as an example. OOhh just had an idea, a forum of one-liners . I'm getting tired
CP should really have an IRC server or some chat rooms that are logged and moderated, taking useful snippets and info and adding that to a sticky FAQ thread in each forums. OK, maybe I'm just asking for wwaaayyy too much! I would assume the Lounge would be chaos.
Cheers
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
Sometimes you need to communicate multiple lines of info to the client if the data is too "wide" for the page.
Gotcha. It's true that DataBinding a DataGrid falls apart there (and it probably shouldn't - most reporting programs will let you leave a column blank if it's the same as the row before), but you can still do this easily by code. Or if you really want to databind it for some reason, just build a normal table using a DataRepeater.
The forum example in particular could be done easily using a DataRepeater.
And please, forget you even considered the chat room idea, I spend far too much time here already
Paul
|
|
|
|
|
Any one who have any idea of any IDE for for developing application for ASP??
|
|
|
|
|
Visual Interdev is cool, especially as it works nicely with SQL Server (or Access) as Microsoft built them all.
The following statement about your geekness is true. The previous statement about your geekness is false.
|
|
|
|
|
What else .. but Visual Studio;P
|
|
|
|
|
|
Hi,
if I have javascript function:
function doWork()
{
//some important work to do
}
ho can I retrieve function name and store it in variable INSIDE that function????? I tried to do this:
function doWork()
{
//some important work to do
var func_name ;
func_name = this.name ;
}
but nothing...
is this possible and how?
|
|
|
|
|
Thats an interesting problem...why do you need to do this...maybe there is another way...?
I dunno if this will work but you can try this...
So long as the function is defined as follows and not externally (i think)
<script id='test' language='jscript'>
function ExecFunc(){
alert('Do something useful');
}
</script>
You can try extracting whatever is between the script tags using document.all.test.text parse the entire text for only function names and pass the variable strings to eval function when you need them exectued...
HTH
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
<vent>
Is it me, or is the web still the last thing looked at for innovations?
I mean, really... Would it be so hard for MS to include a decent way for controls placed onto a form to be resized as the page gets resized without having to resort ot all kinds of javascript hacks?
|
|
|
|
|
Ray Cassick wrote:
Would it be so hard for MS to include a decent way for controls placed onto a form to be resized as the page gets resized without having to resort ot all kinds of javascript hacks?
You don't need JavaScript hacks Ray. Use CSS, it does it quite fine.
|
|
|
|
|
Paul Watson wrote:
You don't need JavaScript hacks Ray. Use CSS, it does it quite fine.
Ok, I'm open.. can you point me towards any examples?
Sorry for the nasty rant, but I was really kind of p*ssed that I could not use some simple VB (or C# for that matter to resize a control because aparently the page does not fire a resize event...
I thought webfroms were supposed to make things oh so much simpler... MS Finally made it easy to code windows forms that resize controls without writing any code, and I stil can't even write code on a web page in VB to do this. UGH!
|
|
|
|
|
Ray Cassick wrote:
Sorry for the nasty rant, but I was really kind of p*ssed that I could not use some simple VB (or C# for that matter to resize a control because aparently the page does not fire a resize event...
Problem is that if they do that, the entire form would need to post back to the server every time it's resized. That could be kind of annoying for the user.
Paul
|
|
|
|
|
Paul Riley wrote:
form would need to post back to the server every time it's resized
And to me THIS is the problem. WHY? Has the web not evolved enough to cause someone to sit up and take notice tothe point that this is a real design problem and address it somehow? What about a standardized client-side forms engine? And NO, I am not suggesting something as large as .NET. Just something that would allow GOOD forms to be rendered ont he client side beetter than they are now. I don;t see why the broswer could not be smart enough to understand dock and anchor tags to the extent of altering the size and location of the primatives it is displaying.
|
|
|
|
|
Sure, but then you need to convince the W3C to make this standard AND all the browser producers to follow suit. If Microsoft tried doing this, they'd be hammered again for monopolising the browser market.
Besides, even if you did somehow pull it off, for web site developers to ever use it you'd need to convince everybody (including corporations) to upgrade their browsers to a version that supports the client-side forms viewer. If companies aren't willing to upgrade (and many STILL haven't moved to IE6) then what's the point in having a great site that only half the world can use?
It's been a hard enough slog getting where we are with CSS and JavaScript, I don't see it moving on much in the near future. The future of "pretty" web sites that run purely on the client is in Flash, QuickTime, etc, etc. MS, I suspect, will concentrate on server-side development and for that .NET is a superb shift in the right direction.
Paul
|
|
|
|
|
Building a web application in ASP.Net that allows a user to perform a search. The results of the search are put into a user control. If the user performs a second search and there is no data available the app is designed to go to a second user control. This works great on my machine, problem is when I run it on the server the first user control will be pulled up and contain the first searches results. In the first two steps of the search process I set all module variables to nothing and clear the viewstate. This seems to do the job on my machine. The only difference in code between the two machines is the web.config file.
I have been working on this problem for quite some time; any help is greatly appreciated.
Jason W.
|
|
|
|
|
After additional testing I discovered that the problem exists on both machines. I need to be able to return all the variables and objects on the user controls to their original state. Is there a method that will accomplish this?
Jason W.
|
|
|
|
|
Hi again
I want to place 3 dummy objects in a containing control at design time, so it can be "previewed". I have tried the following, but it does not work...
protected override void Render(HtmlTextWriter output)
{
if (Site!=null)
{
if (Site.DesignMode)
{
for (int i = 0; i < 3; i++)
{
entrycol.Add( new Entry(this) );
}
}
}
output.WriteLine(ELEMENTSTART);
foreach (Entry entry in entrycol)
{
entry.RenderControl(output);
output.Write(SEPERATOR);
}
output.WriteLine(ELEMENTEND);
}
Now Site.DesignMode doesnt seem to work in design mode. The page works fine at runtime when I am getting data from a SQL server.
Please don't tell me to go look at TemplatedControls. I have, and it's GREEK .
Can someone please help me?
Cheers
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
leppie wrote:
Now Site.DesignMode doesnt seem to work in design mode.
O dear I had to re-add the control to the web page, it didnt refresh
But it works now
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
Hi all
OK I have this WebControl derived object. I do all the rendering myself. Now I notice that when you a place a control on the page in design mode, it adds style postional properties. I want to do the same, but where can I get I get these values from?
Any help appreciated
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|
|
We have this this ActiveX OCX that we have to use for Username/Password, I can recieve the event that is called when you click submit in the ocx using VBScript.
Now, the thing that i want to do is store the user name and password in a session variable in ASP. Is that possible? Again, I have to use the OCX and it seems that the only way to get the Event is to use VBScript. Any Ideas?
~Timothy T. Rymer
http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
|
|
|
|
|
Create two hidden form variables and extract the username and password combination and place if info in there when the "OK" or whatever button is clicked. When the form is submitted via GET or POST you can assign whatever the values are into the Session object from there. If you are using something like a password as data I would not use GET because the password could be cached in the URL by the browser.
The ActiveX control may provide functionality for this, but since I have no idea what this control is or how it works, it's pretty much impossible for me to tell you about it without more information on your part.
Good luck.
Jeremy Falcon
Imputek
<nobr>"Oh no there was a knife in that kitchen drawer and I cut myself - please remove the kitchen." - David Wulff
|
|
|
|
|
Well, first of all the control doesn't do anything but take in the name and password(it basically looks like a login box), and it's used for more important things. So when they click "OK" or whatever, an event is sent called "Sub Control_Verify()" and that "has to be"(so far) in Client-Side VBScript, so when that happens, can i "fake" a form and submit it automatically (inside of this event)? (which sounds like what you're trying to say....)
~Timothy T. Rymer
http://tim.xpertz.com
http://www.digipen.edu
http://www.ttrx.com
|
|
|
|
|
Hi
I know that global.asa should be forced to run if ie is opened on the site, but today a gremlin got in - the global.asa simply does not run anymore. Is there another way to force it?
Also, could it be because the project is in root web rather than a folder?
Thanks
The following statement about your geekness is true. The previous statement about your geekness is false.
|
|
|
|
|
Your project has to be a registered application in IIS for the global.asa to work. If it suddenly stopped, try looking into that first.
Jeremy Falcon
Imputek
<nobr>"Oh no there was a knife in that kitchen drawer and I cut myself - please remove the kitchen." - David Wulff
|
|
|
|
|
Thanks for the reply
We used visual interdev to create the project in the root directory, and visual interdev put global.asa there. It is a registered application, I tried removing it and readding it after your post, but no luck
All the others are working, but they are within folders, not on the root web. Could the fact that it's in the root web be killing it?
Thanks again
The following statement about your geekness is true. The previous statement about your geekness is false.
|
|
|
|