|
Another option is you can compre url such while you are showing the login page first time and after logout you will have the same url. So just compare both if both are same than again put the user on login page.
--------------------------------------------------------------------------------------------------
Hiral Shah
India
If you think that my answer is good enough and can be helpful for other then don't forget to vote.
|
|
|
|
|
I want to use a dropdownlist server control with a datagrid server control sothat when i change the dropdownlist the grid changes but using AJAX. I can do it if the datagrid is a simple html table but i can't implement it if the grid is a server control datagrid. Is there anyway to display the grid as a server control using AJAX or it must be html table to display it with AJAX?
Ahmed
|
|
|
|
|
You can use Anthem.net which is a free librery for ajax controls. it include Combobox, Datagrid etc all have Ajax events, and u dont have to work with JS
http://www.codeproject.com/Ajax/AnthemNET.asp[^]
Nobody is perfect i'm Nobody
|
|
|
|
|
Or you could use the MS Ajax Extensions (the UpdatePanel will do what you need):
Linkety
|
|
|
|
|
Hello All,
I have some questions out of which some are parent and some are child questions. even child questions may also be parent questions for some other questions. like that depth goes to n level.
I need to display questions in the following way.
checkbox question
if any field impact then, fieldName Textbox
if any child questions then, checkbox question
first i need to populate all the parent questions from database.
then whenever a checkbox is checked, i need to show child questions below the question.
for some questions there are some fields for which i need to show field name and textbox and then questions
like this it is upto n levels.
can any one give me solution how to achieve this.
thanks in advance.
shiva kumar
|
|
|
|
|
Hi,
I want some instructions in converting existing C# Windows Application to C# Web Application..
Please post your replies as soon as possible..
|
|
|
|
|
If the application has been properly architected it should just be a matter of rewriting the presentation (UI) layer - perhaps with the odd addition elsewhere to support a stateless model of working. If it hasn't been well architected then you are looking at rewriting the whole application.
|
|
|
|
|
Spamming different 10 forums with the same question is very rude and totally unnecessary.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi all i have problem javacript on firefox
i have page default.aspx is
on the iframe "Map.aspx" contain
when i assgin value to "Param" by javacript on the page Default.aspx
parent.ifmap.document.forms['f2'].elements['Param'].value = "demo";
Note :"f2" is name from on page Map.aspx.
it run ok on IE but on Firefox it not run and have error :parent.ifmap has no properties
???????
how could i assgin value on firefox.
|
|
|
|
|
try
parent.document.getElementById('ifmap').contentWindow.document.getElementById('Param').value = "demo";
|
|
|
|
|
problem solved thanx to Guffa, with a simple overflow:hidden
------------------------------------------------------------
Wouldn't you know, another wierd problem that appears _only_ in IE.
Tested on all other browsers, IE seems to want to ruin my day and night.
Anyways, to the point.
http://www.loadx.org/cardet is the website in development, and appears nice of (i.e.) FireFox 2.0.0.2 and many other browsers (tested from http://browsershots.org, great site for testing)
Well, if you've noticed, in IE, the color bar that appears on the top (immediately after the logo) has a white line under it, which should take only 1 pixel in width, but in IE, it likes to take (what appears to be) 2 more.
It causes a bigger problem than the ugly line, as it pushes all the content below.
Enough jibber-jabber, here's some html code.
.
.
<div id="header-logo"><div id="after_logo"></div>
<a href="index.php">
<img src="/images/logo.gif" border="0" width="419" height="89" alt="logo"></a>
</div>
<div id="colorbar"></div>
.
.
and some css
.
.
#after_logo {
position:relative;
height:14px;
}
#colorbar {
position:relative;
height:11px;
background:#fff url(../images/colorbar.jpg) repeat-x;
}
#header-logo {
height:110px;
}
.
.
i know there's some stuff missing to get the whole idea, but the point is that the colorbar always gets 14 pixels height, even though i specify 11. and if i specify a lower number it still shows 14, but any larger than 14 and it grows.
Driving me mad i tell you..
Any help will be greatly appreciated!
Ericos Georgiades
|
|
|
|
|
Well, I checked it out. I can't find a way to reduce the height of the line in IE, but I do know of a few alternatives.
1. You can use a hard rule (<hr> ), and then style it via CSS.
2. You could use a container like you are now, and change the height using an image.
Either of these would work.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
1. (trying right now, it's a good idea)
2. the image doesn't affect the height at all. weather i use a diffrent image (and/or image size) or even removing the image, it's still going on 14px instead of 11px
thank you for the suggestions, brb with the results on
Ericos Georgiades
|
|
|
|
|
i can't get the <hr> to work the same on both browsers.
maybe i'm getting too tired to work, but i'm starting to think the problem lies elsewhere? (but without the entire colorbar everything was ok...)
anyways <hr> doesn't seem to be a solution either.
Ericos Georgiades
|
|
|
|
|
ad3z wrote: http://www.loadx.org/cardetis
404
---
single minded; short sighted; long gone;
|
|
|
|
|
sorry that "is" was a seperate word :P
Ericos Georgiades
|
|
|
|
|
ad3z wrote: sorry that "is" was a seperate word
Then it works better.
The problem only appears in IE 6, not in IE 7.
How unexpected.
IE 6 has a strange notion that any element should be expanded to be at least one character high. You can specify overflow:hidden to keep it from doing that. (It will still make the contents of the element one character high, but the contents will not change the size of the element.)
---
single minded; short sighted; long gone;
|
|
|
|
|
oh my god, if you were anywhere near me i'd jump up and kiss you right now (even though i am male and completely heterosexual)
that works like a charm, and imagine, overflow was probably the only css/div property i didn't tweak in my frantic madness of trying to solve this.
alas, another reason to hate IE 6.
thanx again!
Ericos Georgiades
|
|
|
|
|
Hi All,
I have a problem in Opera & Firefox..
I have to tables in my aspx page (actually they are two controls) and I want there bottoms to align with each other in the page so I added a row at the end of the table & set its height to 100% & this works fine in Internet Explorer but in other browsers it doesn't do anything and when I set the height in pixels rather than % the other browsers then see it but the height is dynamic & so I can't fix it in pixels.. So what should I do
|
|
|
|
|
The reason that it only works in Internet Explorer is because you are using a non-standard attribute.
According to the standard, a table row doesn't have any height attribute at all. A standard compliant browser should ignore the attribute as it has no specified meaning in the tag.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guffa,
I also tried it in the style ( style="height: 100%" )in the TD & TR but all in vain..
So any idea what can solve this problem??
|
|
|
|
|
When you are setting the height of a table row in percent, it would be a percentage of the height of the parent object, which is the table in this case. Have you specified a height for the table? Otherwise there is no measurement to derive percentage from.
---
single minded; short sighted; long gone;
|
|
|
|
|
I can add an attribute to each option in a drop-down list, using the System.Web.UI.WebControls.ListBox.Items.Item(ItemIndex).Attributes.Add() method, but they are ignored when the list is rendered to the web-page. How can I render them?
I'm currently adding the controls as childern to a span element, and then using the span.RenderControl(output) method to do the heavy lifting. Is there a method that I can override that specifically renders the options?
|
|
|
|
|
No this will not work with combo box or Radio button list. You can use Javascript to do apply.
Also what attribute you want to add on ListItem since there is no JS event like onchnage , onclick for element in HTML all events are for element
Nobody is perfect i'm Nobody
|
|
|
|
|
In JavaScript and HTML, I created an list of options for a select list that had a UserProperties opbject, in which I created a "list" of arbitrary sub-attributes, similar to the style attributes. Then I added a function that could get this information from the selected option. This all worked well for storing additional values in the options, which could be referenced when the select's onSelect/OnChange event fired.
Now, I want to include this capability in my component. I created a property that allows me to manage the UserProperties as an arrary. Then when the select list's children are created, I use the ListItem attribute.add method to push the array value into the option. Unfortunately, Mircrosoft let you add the attribute, but doesn't render tham.
I could pass the array to the page, and then hava javascript push the values into the options, but that would be redundant.
I was hoping that there was a render for the option that I could override, and then create the tag strings myself. In the past, before linking all of my sub-components together as childern under a main span element and then letting the render method do all of the work, I was explictly was calling the render for each sub-component explicity, and adding 'little bits' of hard coded html to the output stream to implement to new features I wanted in my component.
Now that the sub-components are all linked up as childern of the main span, I need some way to get the render to call my render method for the options instead of the built-in one.
It seems to me that if good modular programming practices were employed that the option rendering would be a seperate routine from the select rendering routine, and that the option rendering routine would be overridiable.
The online help says "Gets a collection of attribute name and value pairs for the ListItem that are not directly supported by the class." But then goes on to say "Use the Attributes collection to manage the attribute name and value pairs declared in the opening and closing tags of the ListItem, but not directly supported by the class. You can programmatically add or remove attributes to the collection."
When I look at the Attributes collection, there is a render method, but its not clear to me how I could call get my code in to execute it.
Any ideas?
Thank you
|
|
|
|