|
How can i format datagrid.
i wants to display 5 records per page but if there is only 1 record for display than datagrid consumes same space as previously for 5 records. it looks very bed. how can i eliminate the same.
1
2
3
4
5
page 1.2.3
if there is 1 record than it looks like:
1
page1.2.3
how can i display it in proper format
|
|
|
|
|
What I would do is count the number of records I received, subtract from the number of lines I want, and make that the number of blank lines the page needs to create after the last response.
5 total lines - 1 response = 4 blank lines
5 total lines - 5 responses = 0 blank lines
etc.
Just statically set the number of total lines to the ammount of space you want to take up.
|
|
|
|
|
I've tried the following:
window.event.preventDefault();
Directly inside the onkeydown handler and no beans...???
I've tried event.preventDefault() and everything else...
Does firefox not support event cancelling in onkeydown or what the heck am I doing wrong???
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
i'm no javascripty, but what about onkeydown="return false;" ? i thought that was the way to cancel an event...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
no
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hello to all the web dev masters here.
Am looking for web interface for a proxy server and firewall. Any great off the shelf components/softwares or open source solutions to recommend which offer most of the UI and functions that I need to kick start?
thank you.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
is your server running windows or linux? i know that there is a really nice admin interface for linux machines called webmin. it works like a charm... otherwise, go and have a look at SourceForge.net[^] or Freshmeat (not sure of the url...)
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
raouls wrote:
is your server running windows or linux? i know that there is a really nice admin interface for linux machines called webmin. it works like a charm... otherwise, go and have a look at SourceForge.net[^] or Freshmeat (not sure of the url...)
Windows based. Any good recommendations?
Possibly something that can be extended. Not really necessary to be free, I don't mind paying for a good one.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Anthony_Yio wrote:
Windows based. Any good recommendations?
unfortunately not, i run linux servers...
have you tried sourceforge.net? that has a large number of projects. go to the software map, and filter on windows. also just try punching some keywords into google i guess.
the other question is: what proxy server are you running?
one other problem i can think of is that most windows apps store their settings in the registry, and most web scripting languages don't have access to the registry. you'd probably have to look for an ASP.NET solution...
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
Hi All!
My company has a requirement, wherein we need to develop a web server which could server data to its clients in "real-time". For example, I need to create a web page for real time stock quotes, which is automatically updated as and when the quotes change. Can the server be designed such that it sends automatic updates to the client as and when the data changes, or does the client have to make an explicit "refresh"?
Since I am new to web development, could you please guide me about which tools/technologies can I best use for this purpose.
Thanks,
Krishnan
|
|
|
|
|
The server does not keep track of the user that makes the request. Since HTTP is stateless (make the request, get data back), it's nearly imposible to do it. The client will have to 'refresh' itself on an interval basis to pull back the latest data.
If the client is a web browser, you could implement some JavaScript that posts back to the server every couple seconds.
~Javier Lozano
(blog)
|
|
|
|
|
Your other option could be to implement the attritbute in your HTML page. THis will however cause the page to automatically refresh on the server every 5 seconds.
Vivek Sharma
|
|
|
|
|
The problem with doing it throught a web page, as the other responses have mentioned, is that a web server does not constantly talk back and forth with the client. It only offers the info once.
A better way to do what you want to do is via a java app. You could have a client app embedded in a web page so that your customers could still use their browser, but then you would have another server app on your side which stays connected to the client java app, constantly offering the latest data.
|
|
|
|
|
Thanks for the suggestions.
But, having an embedded Java app or an ActiveX requires that my customers have them pre-installed or that they are automatically downloaded and installed on his computer. Even though I would not prefer such a method, I am still open to it, as I feel it is better than the client doing a periodic refresh.
However, will this solution work for browsers running on embedded platforms like, mobile phones, PDAs, etc.?
Thanks,
Krishnan
|
|
|
|
|
Why don't you use iframes.
when user complete the action on that event pass the parameter to iframe which call the another page and on that page you can write the code of save. it will refresh only iframe not the whole page. with the help of iframe you can do easly update and client page cannot be refresh only iframe will refresh for that particular task of saving
first make a page and onload of this page write the code for saving perticular data to database and the saving code will be the parameter that u pass to tha iframe which call the page of saving.
and in iframe just give source of that page with passing parameter.
that time only iframe will refresh and your saving page do the task of saving and client can do his work without whole page loading.
If u understand this then ok or mail me i will send u whole code of iframe how they work and how they usefull when u dont want to load or refresh whole page.
(Hemant U. Mane)
|
|
|
|
|
hello,can someone show me how to develop the slide menu using html in vb.net?
besah
|
|
|
|
|
|
Cannot give you the explicit code, but www.astalavista.org has exactly what you are talking about. You can download the information from there.
Vivek Sharma
|
|
|
|
|
I've been looking at some ready made login classes in PHP and noticed many of them offer multiple storage capabilities
Such LDAP, SQL, Flatfile, WebService, etc
My question is this...
Why would anyone want to use anything other than a database...especially a text file...it's almost pathetic security...
I suppose if your server didn't support databases you might have to resort to textfile, but then...your web site wouldn't be that dynamic, so as to require any kind of authentication anyways...???
Just curious as to what your opinions are, on this subject?
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
It is almost like you work for my company. We are currently tearing out our entire authorization scheme and migrating to ldap auth. instead. (I say "we" as if the rest of the guys in my department are actually doing anything. I'm the one doing it. I digress...)
The reason other authorization schemes exisit is because many web servers do not have access to better user data. If you have a hosted site, for example, your web server is on a completely different network from your domain controller, which is most likely behind a firewall as well. Unless you are gutsy enough to open up a port on your firewall allowing public access to your Active Directory, you can't use LDAP to authorize users on a remotely hosted web server.
As for databases, you hit the nail on the head when you said not all servers have database access. You can do an externally hosted database, but some people don't feel like putting in that time and effort.
Text files: I've used HTAccess. It works. It sucks, but it works. The downside to it is that you have decentralized user data. The upside is that the passwords are encrypted pretty well. Then there are people who use unencrypted text files. They should not be working in IT.
-Later
|
|
|
|
|
I need to use the following HTML code in VB.NET:
Can anybody show me how I can emulate a "click" for the above code inside VB.NET?
Here is a bit more if needed:
The above code is an "Add To Cart" button for an HTML page that interacts with www.cartmanager.net - I have an ASP.NET page with a datagrid and one of the columns in the datagrid is an "Add To Cart" button. When the datagrid's "Add To Cart" button is pressed I need to emulate the HTML "Add To Cart" button beng pressed.
Thank you,
Mike
|
|
|
|
|
I assume you are talking about a page with two different forms. Do you have control over the code in both forms or is one on somebody else's site?
|
|
|
|
|
Yes, when the following button is clicked you are brought to another page:
<form method=POST action="https://www.cartmanager.net/cgi-bin/cart.cgi">
<input type=hidden name=additem value="...">
<input type=submit value="Add To Cart">
</form>
I am redesigning the page in ASP.NET and I need to be able to emulate this button click from within VB.NET somehow after validating certain information. The user will no longer be clicking this button directly.
Thank you,
Mike
|
|
|
|
|
What you could do then is have the new button run a javascript which clicks the old button. Something like this:
<form method=POST action="https://www.cartmanager.net/cgi-bin/cart.cgi">
<input type=hidden name=additem value="...">
<input type=button onClick=clickOldButton() value="Add To Cart">
</form>
<script>
function clickOldButton(){
document.oldformname.submit()
}
</script>
You would just need to name the existing form and use that name in the script as well.
|
|
|
|
|