I'm curious to know what the best practice is for sizing controls on pages. For example I have a 3rd party DataGrid-like component that, if I leave at 100% height will go as big as it requires to display all the rows returned which in turn means the user is required to scroll the frame it's in if they want to see the whole result set.
(yes I said frame , I've researched this to death and a frameset is still the best fit for this particular job)
However that component has a built in scrollbar which works well when the grid is restricted to a smaller size. Where it would normally take 3000 pixels vertically to display I could set it to a height of 300px and using the built in scrollbar scroll through the results to the last row.
Ideally I want to exactly fill the "content" frame with as much grid as will fit perfectly and use the grid's built in scrollbars for navigating to the bits that don't fit. This though, seems impossible. Short of someone replying with a magic solution that I just couldn't find I'm guessing I'll have to compromise.
Every example I see seems to favor setting explicit sizes in pixels for many data components.
So should I just pick a "typical" browser window size and set explicit values for that size (i.e. assume minimum 800X600 and smaller size users can scroll)?
This seems lousy though when considering that many users have a much larger size than a default minimum and would end up with wasted real estate on screen, so is it better to go for a maximum and set explicit sizes for that maximum and then anyone with less has to scroll the frame?
Neither sounds very nice but the minimum sounds the least annoying.
Help...so confused.. Any and all advice gladly accepted.
i am having a page and in that if the user does not fill any thing or does not save the data, the page should not be redirect to another page. how to solve this problem . please some body help me. Thanks a lot in advance
Are you generating temporary class in your web service code? if yes than it may be referring some hardcode location for generated cs file as i can see from the error message. solution is try to trace some hard code path or provide some specific location for temporary generated class
how can I bind the data to textbox using ASP.NET inline coding?
I have implemented data binding to dropdownlist... likewise I want to do data binding to TextBox too..
can someone please guide me?
Thanks in advance.
You should remember that the TextBox does not have the DataSource or DataSourceID properties as the DropDownList, however you can use the data binding expression to bind to the Text property of the TextBox. It looks something like:
<asp:TextBox runat="server" ID="TextBox1" Text="<%# your expression goes here %>" />
Some mail servers do reverce dns lookups on the domain where the message originates or check for MX records for that domain. If your SMTP service isn't set up properly some mail servers may reject mail coming from it.