|
I thought because the div is in the header which is included in every page, is it not possible then? Is there a better way around this?
cheers for the reply
|
|
|
|
|
You do a redirect. This therefore loads a new page. IF this is the page you were already on, lose this line. If it's not, how do you expect the code to do anything ? Even if it's in the header, the header will now be reloaded. You need to put something on the URL to say which item is visible, or put it in the session. I'd use the URL.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ah ok, Ive put sessions on each click event and then on the page load for the header check what session is loaded, this works now, thanks!!
|
|
|
|
|
Great - the URL seems better to me, because that value will stay in the session and be used the next time you go to this page. However, the core thing is, when you redirect, even though you set a property in the header, a new instance of teh header, without that property set, will be loaded by that new page. In fact, even if you cycle through events on the same page, it's a different instance every time, that's why you have viewstate.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi;
I have a gridview which contains several columns and rows to view I need scroll bar.
I used this but it doesnt work:
div id="gridcontainer" style="overflow:auto;"
help me
modified on Tuesday, May 20, 2008 5:43 AM
|
|
|
|
|
<div id="GridContainer" style="height:150px;overflow:auto" runat="server">
|
|
|
|
|
Thanks Abhijit ;
for the link I see no relation between what I try and link .
merci encore
|
|
|
|
|
put your Gridview inside a panel and set the ScrollBar property of the panel to Auto
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thanks Laddie;
it doesn't work.
merciii
|
|
|
|
|
Thanks Laddie;
it doesn't work!!!!
merciiii
|
|
|
|
|
It works only if the size of the gridview grow more than the panel size.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thanks Laddie;
yes it is true I have a very large gridview 20 columns and a hundred lines , the vertical scroll bar works well but not horizontal;it works with small gridview very well.
thanks.
|
|
|
|
|
I RUN AS HTML CODE USING VISUAL INTERDEV ..
AND SAVING AS EXTENSION .ASP.IF IT IS NORMAL.OK.WORKING
BUT SAVED AS EXTENTION NOT DISPLAYING
BY RANI
rani
|
|
|
|
|
Stop starting your posts as asp.net beginner
Dont write in caps, it means you are shouting
Dont repost
|
|
|
|
|
Rani - stop posting this drivel, and go and buy a book. We can't help you, your posts are meaningless. You need a basic level of knowledge in order to post lucid questions and you're not there yet. Do some study, learn enough to know how to ask a question, then come back
Interdev and ASP.NET have NOTHING to do with each other.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello friends
My aim is to provide a user to enter the details of paypal such as id and amount from the front UI ..and start the processing
problem is when i give value to the hidden fields in the tag it works
but when i add runat="server" to it and assign value ..it doesnt work
Please tell me how to solve this
If my process is wrong please tell me how to assign the amount and id dynamically
Thank You
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Once you set runat="server" any control not at the top level, has it's name changed. This will break any js code you may be trying to use.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is it possible to include an aspx file in an html page
I have the following code:
but its not showing anything
any help would be great
cheers!
|
|
|
|
|
Sorted it, had to make the page an aspx file that I was including it in!
|
|
|
|
|
Hi,
I am having this problem with this ModalPopUpControl from Ajax. It did pop up as it meant to be but I want it to do something more.
Basically, there are two Panel that will pop up, lets name it Panel1 and Panel2. Panel2 will appear after Panel1 if some conditions are met, if not, it shoudl not appear.
So in Panel1, I put a button Button1, hoping I can put in some condition under this button to call out Panel2. I want the protected void Button1_Click(object sender, EventArgs e) to fire but it seems nothing happens, it just show me Panel2 straight without checking the condition.
So I wanted to know how can I set some conditions to stop the ModalPopUpControl to proceed if the conditions are not met.
Or another way is how I can invoke a button click from javascript so that it will run the protected void Button1_Click(object sender, EventArgs e) for me since the ModalPopUpControl has a OnOkScript which will call a javascript function in the page.
Thanks in advance.
modified on Tuesday, May 20, 2008 5:28 AM
|
|
|
|
|
U have to write those code in Button ONClick event ,
|
|
|
|
|
If there are two fields firstname and latsname with values s and a.if we concatenate using sql we get s,a.Suppose a is null then how i check a is null and print s itself using sql select query.
|
|
|
|
|
How can a be null if its a value in a field, do you mean if one of the fields is null?
|
|
|
|
|
Yes if one of the field is null then how we can concatenate it by checking the null refrence.
|
|
|
|
|
SELECT ISNULL(firstName,'') + ISNULL(lastName,'') ...
|
|
|
|