|
hi
Am using the Tabstrip and Multipage control given in
http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/multipage.asp[^]
Its working fine.But i need to adjust the height of each tabpage according to the content of that tab.
One tab contains only 4 controls where as the other contains 10 controls.
I want to set their height according to its content.
In each tab,all the controls are placed inside a HtmlTable.I tried to adjust the table's height.but it didnt work.
snippet is
<br />
<TABLE id="TabStripTable" cellSpacing="3" cellPadding="0" width="100%" border="0"><br />
<tr><br />
<td bgColor="#e8e8e8"><br />
<mytab:tabstrip id="myTabStrip1" runat="server" SepDefaultStyle="background-color:#FFFFFF;border-color:#AAAAAA;border-width:1px;border-style:solid;border-top:none;border-left:none;border-right:none;" TargetID="MULTIPage1" TabDefaultStyle="color:#333333;background-color:#e8e8e8;border-color:#AAAAAA;border-width:1px;border-style:Solid;font-family:Verdana;font-size:11px;height:21;text-align:center;" width="70%" TabSelectedStyle="color:#993333;background-color:#FFFFFF;border-bottom:none;" BorderStyle="None"> <br />
<mymultipage:Tab Text="Info1" ID="tab0" ToolTip="Info1"></mymultipage:Tab> <br />
<mymultipage:TabSeparator></mymultipage:TabSeparator> <br />
<mymultipage:Tab Text="Info2" ID="tab1" ToolTip="Info2"></mymultipage:Tab> <br />
</mytab:tabstrip><br />
</td><br />
</tr><br />
</TABLE><br />
<br />
<mymultipage:multipage id="MULTIPage1" runat="server" width="780" height="300px"><br />
<mymultipage:pageview id="Info1"><br />
<TABLE id="ThirdMainTable" cellSpacing="10" cellPadding="0" width="780" border="0"><br />
<br />
<tr><br />
<br />
<td width="10"><br />
</td><br />
<br />
<td width="760"><br />
<br />
<TABLE id="tblLocation" cellSpacing="0" cellPadding="0" width="100%" border="0"><br />
<tr height="25"><br />
<br />
<td width="20%"></td><br />
<br />
<td width="50%"><br />
<br />
<asp:CheckBox id="chk1" runat="server" Text="CheckOnce"></asp:CheckBox><br />
<br />
</td> <br />
<br />
<td width="30%"></td><br />
<br />
</TR><br />
</TABLE><br />
<br />
</td><br />
<td width="10"></td><br />
</tr><br />
</TABLE><br />
Can anyone please suggest me a best way to do this?
Thanks
-- modified at 1:02 Tuesday 27th February, 2007
|
|
|
|
|
I would like to know about how to create program for user can add edit or delete field in the page.
Example now the screen Company have 4 field ( Company,Address,Phone,Fax) for user input data ,but now user want to field Zipcode . Sorry about my english.thank you.
Tospon
|
|
|
|
|
HI
Add the Editable textBoxes where you want input from User ....
Is it the thing you wanted ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Yes , but i don't know about design for coding. I'm begining develop.I used asp.net framework 2. Thank you
Tospon
|
|
|
|
|
Oops !
Certainly wrong question
Please go through some examples and do dome Tutorials that will help you :->
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Thank you for comment.
Tospon
|
|
|
|
|
Hi
sorry for posting the new thread,reply is not working properly in my pc
var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("class.xml");
var x=xmlDoc.getElementsByTagName("class");
var newel;
for (i=0;i
|
|
|
|
|
HI Karan
Can you provide Schema of your xml ,
can you tell where exact it is giving error you can check that by adding alert box
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hi ALL:
I've created a simple web site. There was a Log.aspx page that have hyperlink for user to signup.aspx. By default, ASPNETDB.MDF was created by VS2005. Anyway I got this messaged "Failed to update database "C:\INETPUB\WWWROOT\SQA\APP_DATA\ASPNETDB.MDF" because the database is read-only. "
I'd tried to uncheck the read-only on the folder but didn't help.
Please help!
Thanks in advance.
Eyungwah.
|
|
|
|
|
I have an aspx page I want to pass a Color. How do I do this from another aspx page. I already am accepting some string and int parameters through QueryString. Can I continue to do it that way?
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
You can get the color as an integer value using the ToArgb method, and turn the integer back to a color using the FromArgb method.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi.
1. Is there any code which will list the installed frameworks on server (asp.net)?
and
2. How can I list all installed browsers on system?
Thanks.
|
|
|
|
|
write code to
1.Listout the directories existing in C:\WINDOWS\Microsoft.NET\Framework
2.Check the folder name starts with small v
3.Parse the folder name and take the version.
I know this is a shortcut way of taking the versions. But I dont know how to take it in other way.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
Thanks for reply.
Do you think this will work on server since I don't know which letter represents system partition and since I am surely restricted to read Windows folder on server?
|
|
|
|
|
|
I saw that article, but uses registry.
I don't think that will work either.
I know that I can see fw version by making an error and then fw version will be displayed, but that isn't very good approach.
Thanks for reply.
|
|
|
|
|
Hi.
How can I use a dataview(or any other object that can I edit template it) with paging ?
Gridview has paging but I can't edit template it!
Best wishes
|
|
|
|
|
You can use datagridview for paging and editing purpose also.
Sathesh Pandian
|
|
|
|
|
I am having problems passing a value of a boundfield in a gridview to a javascript function. My code is below please help. The hyperlink is linking to a javascript function.
<asp:gridview id="gd_seop" runat="server" width="100%" borderwidth="0px"
="" cellpadding="0">
<alternatingrowstyle backcolor="LightCyan">
<columns>
<asp:hyperlinkfield datatextfield="Name" headertext="Offender Name" navigateurl="javascript:showSexDetail(key)"
="" text="Name">
<asp:boundfield datafield="type" headertext="Type" sortexpression="type">
<asp:boundfield datafield="key" insertvisible="False" visible="False">
This is the javascript
function showSexDetail(sKey){
var winSexDetail
winSexDetail = window.open("http://gisims2.miamidade.gov/MyNeighborhood/sex_detail.asp?case="+sKey, "SexDetail", "width=250,height=300,scrollbars=1,resizable=1,toolbar=0,menubar=1");
winSexDetail.focus();
}
|
|
|
|
|
Can you give more details to your problem?
|
|
|
|
|
I've dropped a GridView onto a page and I'm assigning table to the DataSource property during the Page_Load. I've tweaked the properties to add the Edit and Delete buttons, and I've added the event handlers that ASP.NET screams about if they are missing. However, the end result is, the underyling DataTable is not being updated. What should RowUpdating do? Is there something I need to do beyond what I've done?
Marc
Thyme In The CountryInteracxPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Marc,
I have had the best luck with the Gridview when I have used a sqldatasource or an objectdatasource. In those cases you set up what the update / delete / insert methods are and then the gridview calls those methods.
It sounds like you are expecting the gridview to act more like the windows datagrid control. I don't believe it can work that way. I haven't actually tried with a grid view to set the datasource directly, but since the state of the datasource has to be re newed each page_load that could be the problem. If you are always reloading your datatable it might be overwriting any changes you may have made.
Back when I was still using .net 1.1 and a Datagrid I had an ItemCommand event that I used to figure out if I was Insert / update or deleting a row. There was a lot of manual code that was based off the button.CommandName. Anyway, I would suggest using the sqldatasource or objectdatasource if that is an option for you. I wrote and article using the objectdatasource that may be of some help to you.
http://www.codeproject.com/useritems/GridViewObjectDataSource.asp[^]
Anyway, hope that helps.
Ben
|
|
|
|
|
Hi Ben,
Thanks for the feedback. I was putting the data source into a session so I'm constantly reloading it, but yes, because I'm not assigning the data source at design time, I think it's making life more difficult. The designer lets you templatize the columns, which appears to be necessary to get at the underlying data when editing a cell. I found this[^] article to be very helpful with regards to dynamic template generation. Finally the thing is working.
Thanks again for you response and your article link.
Marc
Thyme In The CountryInteracxPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Dear Sirs,
I need to generate a unique random 12 digit number. the number should be unique even if the app gets restarted. could any one help me out...
Thanking you
|
|
|
|
|
If you are using .net 2.0 you have some good options. If not then it will be harder to find something that is solid. Here is the .net 2.0 code right out of microsoft help:
The following example creates a random sequence 100 bytes long and stores it in random.
Visual Basic Copy Code
Dim random() As Byte = New Byte(100) {}
'RNGCryptoServiceProvider is an implementation of an RNG
Dim rng As New RNGCryptoServiceProvider()
rng.GetBytes(random) ' bytes in random are now random
C# Copy Code
byte[] random = new Byte[100];
//RNGCryptoServiceProvider is an implementation of a random number generator.
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
rng.GetBytes(random); // The array is now filled with cryptographically strong random bytes.
Here is the link to this help page:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref11/html/M_System_Security_Cryptography_RandomNumberGenerator_GetBytes_1_f0697ec3.htm
Hope that helps.
Ben
|
|
|
|