|
Do you check IsPostBack when you load data collection for ddl? You should remember; page_load method works before every event-delegation method (ddl SelectedIndexChanged too).
we can work IT out! (Beatles)
|
|
|
|
|
hi..
i have a problem with following code in asp.net/vb.net
here i have a script to go one page to another in asp.net.
in my project i have 2 folders like lookups and PO.
now i want to go to Productformfactor page form PO Page
Productformfactor belongs to lookup folder and PO Page belongs to PO folder
if i don't use saperate folders then it is working...
i have used the following code in PO page to go productFormFactor
but iam getting error message.(i used this code in button click event)
CODE:
Page.ClientScript.RegisterStartupScript(Me.[GetType](), "openpopup", "window.open('Lookups/productFormFactor.aspx','test','scrollbars=2');")
thanku
siri.
siri
|
|
|
|
|
Why are you doing this ? Why not just add a button that calls the javascrpt directly without bothering with a postback ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
Good point.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
thankyou Christian Graus
and the thing is if go to the Page2 from page1 then the values of controls should not be refresh and it shoul maintain it state.so, i used script.
and even i have tried with setting the enableviwesate=true...
but it is not working
can u plz help me
siri
|
|
|
|
|
I have no idea what your statement about pages means, how are the pages defined ?
It does not matter. You're writing code in a postback to inject javascript to run when the page reloads. Just putting the script directly into the html to run without a postback will do exactly the same thing.
None of the other stuff you're sayng makes any sense to me at all, perhaps you need to explain what you're trying to achieve, given that it seems likely that you're not tryng to do what it is that you're actually doing.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillionOneHundredAndFortySevenMillionFourHundredAndEightyThreeThousandSixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it )
|
|
|
|
|
sirisha guttikonda wrote: iam getting error message.
Quoting the error message would be helpful.
If the folders are in the same location, change 'Lookups/productFormFactor.aspx' to '../Lookups/productFormFactor.aspx'.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
thanks Guffa
i got it.
thanks a lot
siri
|
|
|
|
|
Hi,
I need to bind the Menu Control(in asp.net 1.1)
from database.(Dynamically).I request you to give me the sample code for that.
Plz hlp me,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: Menu Control(in asp.net 1.1)
Menu Control in ASP.NET 1.1???
Regards - J O N -
|
|
|
|
|
Means i like to show menus operation in my webpage...,
Using any language (javascript or any other else)..,
But its should be userbased entry menus means..,
It will be help full form my screen..,
Plz help me,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: menus operation in my webpage...,
Magh_M wrote: userbased entry menus means..,
I'm Not sure about what you are talking about. In your original post you mentioned that Menu should be loaded dynamically from database. Simple suggestion- Use a repeater control, retrieve the menuitems from the database, store it in a dataset and bind the dataset to the repeater control. Now You will have all the menuitems displayed in the repeater control.
Regards - J O N -
|
|
|
|
|
Hi i did that too...,
i have used repeater control in usercontrol...,
And shown in my aspx page below that i have used one iframe...,
in that i shown some other aspx page...,
now my probs is that iframe contain aspx page scrolling time...,
that iframe contain aspx page some controls are showing above that user control...,
So its hiding that links...,
i dont know how to solve that probs...,
If u dont mind give me some solution for that...,
Or plz send me if u have anycode like that...,
Regards,
Magi
|
|
|
|
|
Hi How to arrach my screen shot in this msg???,
Plz any one tell me,
With that only i can able to explain my probs...,
So any one hlp me to solve my probs,
Regards,
Magi
|
|
|
|
|
You can't.
Upload the image somewhere where it's publically available, and put a link to it in the message.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
You can create a Custom messge control for that !!!
|
|
|
|
|
hi to all,
I am using asp.net 2.0, in that I designed a webpage for uploading an image. If the user uploads an image it should be automatically change in to thumbnail and it is displayed in that website. I searched in Google but I didn’t get the proper coding for that. So, please help.
jai prakash
|
|
|
|
|
Use the Image.GetThumbnailImage[^] method to create a thumbnail version of your image. Store it on the server file system and reference the image via a URL from your web page.
Paul Marfleet
|
|
|
|
|
I have already post u the ans ~
|
|
|
|
|
Hi All,
I have to create a GridView Control at runtime, whcih has 2 Template column and rest all is Bound Column. I am able to create Bound Column but not getting how do I add checkbox and linkbutton in Template Column.
I have to add Checkbox and Link Button in the Template Column. On Mouse over of Link Button I have to show some Summary.
Please help me...
Thanks in advance...
|
|
|
|
|
<asp:templatefield headertext="Checkbox">
<itemtemplate>
<asp:checkbox id="something" runat="server">
<asp:templatefield headertext="Checkbox">
<itemtemplate>
<asp:linkbutton id="something" runat="server">
|
|
|
|
|
http://www.codeproject.com/useritems/DynamicTemplateColumn.asp
sorry!I have added some code in the beginning.
but it is not displayed.
u see above link.
|
|
|
|
|
Thanks for the reply. I finish with that. Thanks again...
|
|
|
|
|
hi,
I have a table in my page which is created at run time(data are getting added to row dynamically from database).
Since sone text are long i am trimming the length to 17. But on mouse over of the text in each cell of table the text should be expandedto full length.
How can i do it??
Please help me out.
Thanks,
Srikanth
|
|
|
|
|
why don't u show the full text in a tool tip ..?
Koushik
|
|
|
|