|
There are a couple of options:
+ Use frame
+ Use resizable panels, you can check out some custom controls below which may give you an idea:
Control Gallery[^]
ComponentArt[^]
John Harrison Paul wrote: Sorry for my bad English..
I'm a little bit confused as your name looks a native english name .
|
|
|
|
|
Thanks for the linke of the control.
I'm already go that links, but it is not free.
Do you know any free splitter controls.
|
|
|
|
|
You once said in your first post is that you wanted to develop a custom splitter control, now that I guess you have an idea on how to implement your own custom control, and you may consider sharing it here when it gets done, I'll be really appreciated for this .
John Harrison Paul wrote: Do you know any free splitter controls.
Sorry, no
|
|
|
|
|
It's seems like I have to develop myself.
But I don't know how to start. I've no experience
of developing custom web control. Please give me
some advice... Thanks
|
|
|
|
|
|
Thanks for your advice. I'm so stress coz if I don't finished splitter control in fews day. I'll be damn. Anyway Thanks...
|
|
|
|
|
Hi
i have a drop down list with a few items and depending on the item that is selected it sets a few "option" variables different values.
The problem is: in the page_load method depending on user input i change the DropDown.SelectedValue = "bla"; but this does not FIRE the event handler - it only fires when i change it in the actual drop down list through the UI - how do i make it fire when i do this in code as well?!
|
|
|
|
|
|
Hi you can make an explicit call to the event handler for SelectedIndexChange of your dropdownlist
It will solve the problem
Thanks,
Pradipta
Pradipta Basu
|
|
|
|
|
Hi All,
We are looking to refactor some backend code with an asp.net app. In our Bus/data objects we are returning datareaders. We heard that this is a bad practice to use. We are planning on using the MS Ent Lib 2.0 . Which is the preferred method to return data to pages using Ent Lib?
Thanks,
Jamming J
|
|
|
|
|
Depends! Usually a DataSet/Table with the info from the database.
|
|
|
|
|
Hi
Whatever i add to a textbox.Text persists during a postback but other stuff i fetch from the Database that isn't shown to the user, how am i supposed to persist it without using Session[] variables.
i tried using global variables in the aspx page but they are cleared it seems.
I have a lot of session variables already and its getting confusing!
thanks for your help.
|
|
|
|
|
Hi,
You should use session only when you have to persit data between more than one page.
Otherwise if it is related to only one page, you can fetch data from database and store it into a html hidden control, ie, <inpupt type="hidden" runat="server">. Data stored in server side html hidden cotrols are persisted during a postback.
|
|
|
|
|
Arabinda Kolkata wrote: Hi,
You should use session only when you have to persit data between more than one page.
Otherwise if it is related to only one page, you can fetch data from database and store it into a html hidden control, ie, . Data stored in server side html hidden cotrols are persisted during a postback.
-Prakash
|
|
|
|
|
Hi,
I don't know how it happened. I posted the answer but it was posted by someone else name. The data is also not proper. So I'm posting it again.
You should use session only when you have to persit data between more than one page.
Otherwise if it is related to only one page, you can fetch data from database and store it into a html hidden control, ie, .
<input type="hidden" runat="server" />
Data stored in server side html hidden cotrols are persisted during a postback.
Thanks,
Pradipta Basu
|
|
|
|
|
You can also true viewstate on as well. Or use viewstate
Before Post
<br />
ViewState["UserName"] = UserName<br />
After Post
<br />
UserName = ViewState["UserName"]<br />
Remember this will not persit between pages.
Look where you want to go not where you don't want to crash.
Bikers Bible
|
|
|
|
|
I prefer to use viewstate in these type of cases where we need to store data in encrypted format, so that no one can recognize the real data. If that is not needed hidden fields are a better choice, since viewstate can end up to be very large.
Pradipta Basu
|
|
|
|
|
Pradipta Basu wrote: Hi,
I don't know how it happened. I posted the answer but it was posted by someone else name. The data is also not proper. So I'm posting it again.
You should use session only when you have to persit data between more than one page.
Otherwise if it is related to only one page, you can fetch data from database and store it into a html hidden control, ie, .
Data stored in server side html hidden cotrols are persisted during a postback.
Thanks,
Pradipta Basu
-Prakash
|
|
|
|
|
I'm having problems finding the best way to set the mouse over attribute for several buttons.
right now I do something like :
btnClear.Attributes.Add('onMouseOut', 'setStyleOff(this.id));
and I do this in the page load for each button, a mouse over and a mouse out event
However this can get quite tedious when you want all your buttons to have the same effect and some of them are embedded in datalists or grids.
Is it possible to set the mouse over/out event in a skin file or a CSS style sheet so that it will run the same java function for EVERY button on a page?
If so, could someone give an example of how to do this?
Kris
|
|
|
|
|
IMO, you'll have at least two options here:
+ Use the skin file to define the client side mouse events for the server button control.
+ It's a good candidate to develop a custom button control which by defalt has the mouse event handlers defined.
|
|
|
|
|
Could you give me an example on the syntax to add a mouse over event to a button in a skin file?
The only way I know how to do this is code file for a given page.
|
|
|
|
|
In a skin file, you simply declare the button:
<asp:button on_mouseover="yourclientsidefunction();" ..../> then in the Page directive, you can simply set the theme for the web page. The settings of the button in the skin file of the specified theme will be applied to all the buttons on the web page.
|
|
|
|
|
Hi Guys,
We have been having a discussion around our shop about how we are going to persist data from one page to the next. As usuall we have different opinions. Ok first things first. We are using 2.0 framework and VS 2005. We have a header for each page that is 98% static, won't change unless someone enters a new order #. We are going to use MS Ent Lib 2.0 with a wrapper around it just so we can remain consistant with its usage. So now getting to the meat of the question. Some of us thought we would persist the data in a base page using session, using Enterprise "cache" or httpContext. What do u guys think of using these different options and how would you persist the data between pages?
Thanks,
Jamming J
|
|
|
|
|
i want to show the data from my database which is set by sql 2000 on the drop down list. However, i dont know how to start though the connection is fine. thanks for concerning my question
|
|
|
|
|
hi,
Inside If Not IsPostBack() Then.... End If you have to create the dataset and bind it to that drop down list. Consider the following code:
Dim dsTest As New DataSet<br />
Dim daTest As New SqlDataAdapter("select tid from test", con)<br />
daTest.Fill(dsTest)<br />
<br />
ddl.DataSource = dsTest<br />
ddl.DataTextField = "test"<br />
ddl.DataBind()
|
|
|
|