Showing posts with label displayed. Show all posts
Showing posts with label displayed. Show all posts

Saturday, March 31, 2012

Table stucture changing when panel is displayed

Hi All,
I am having a wierd problem while displaying my panel. My code is
something like this

<table>
<tr>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>button in this cell</td>
</tr>
<tr>
<td colspan=4 width=400>
<panel>literal inside the panel</panel>
</td>
</tr>
</table
this is actually the structure of my repeater control, and I am
toggling the visibility of my panel on the client side, whenever the
button in the first row is clicked.
The approach works fine when the text in the literal is shorter than
the table width, which is 400. But, when it is longer and it had to be
wrapped, the entire table structure is messed up, the colums widths are
changing at each toggle of the panel display.
However, if I insert line breaks(<br>)in literal string, so that the
string between two line breaks is less than the page width, its working
perfect.
any idea why the table structure is messed up when the string is larger
than page width.

Any help is greatly appreciated.

ThanksPavan,

I think those results will vary from browser to browser depending on how
they render.

Have you tried using percentages for the widths instead of fixed values? (I
would try that - at least for the last column with the panel in it.)

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Pavan" <pavan27@.gmail.com> wrote in message
news:1126828985.224647.157820@.z14g2000cwz.googlegr oups.com...
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br>)in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks
tables alway resize to hold their content, unless the content has overflow
rules that prevents the content from getting larger.

try (large content is scrolled):

<table>
<tr>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>button in this cell</td>
</tr>
<tr>
<td colspan=4>
<div style="width:100%;overflow:auto;">literal inside the div</div>
</td>
</tr>
</table
note: panel is not a valid html object

-- bruce (sqlwork.com)

"Pavan" <pavan27@.gmail.com> wrote in message
news:1126828985.224647.157820@.z14g2000cwz.googlegr oups.com...
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br>)in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks
Justin, Bruce,
I tried each of your approaches but unfortunately, neither of them
worked.
however, the problem is solved by packaging the literal inside the
panel with a table.

<tr>
<td colspan=4 width=400>
<panel>
<table>
<tr>
<td>literal inside the panel</td>
</tr>
</table>
</panel>
</td>
</tr
I would appreciate if anyone could explain this behavior.

Thanks.

Pavan wrote:
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br>)in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks

Table stucture changing when panel is displayed

Hi All,
I am having a wierd problem while displaying my panel. My code is
something like this
<table>
<tr>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>button in this cell</td>
</tr>
<tr>
<td colspan=4 width=400>
<panel>literal inside the panel</panel>
</td>
</tr>
</table>
this is actually the structure of my repeater control, and I am
toggling the visibility of my panel on the client side, whenever the
button in the first row is clicked.
The approach works fine when the text in the literal is shorter than
the table width, which is 400. But, when it is longer and it had to be
wrapped, the entire table structure is messed up, the colums widths are
changing at each toggle of the panel display.
However, if I insert line breaks(<br> )in literal string, so that the
string between two line breaks is less than the page width, its working
perfect.
any idea why the table structure is messed up when the string is larger
than page width.
Any help is greatly appreciated.
ThanksPavan,
I think those results will vary from browser to browser depending on how
they render.
Have you tried using percentages for the widths instead of fixed values? (I
would try that - at least for the last column with the panel in it.)
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Pavan" <pavan27@.gmail.com> wrote in message
news:1126828985.224647.157820@.z14g2000cwz.googlegroups.com...
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br> )in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks
>
tables alway resize to hold their content, unless the content has overflow
rules that prevents the content from getting larger.
try (large content is scrolled):
<table>
<tr>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>label</td>
<td width=100>button in this cell</td>
</tr>
<tr>
<td colspan=4>
<div style="width:100%;overflow:auto;">literal inside the div</div>
</td>
</tr>
</table>
note: panel is not a valid html object
-- bruce (sqlwork.com)
"Pavan" <pavan27@.gmail.com> wrote in message
news:1126828985.224647.157820@.z14g2000cwz.googlegroups.com...
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br> )in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks
>
Justin, Bruce,
I tried each of your approaches but unfortunately, neither of them
worked.
however, the problem is solved by packaging the literal inside the
panel with a table.
<tr>
<td colspan=4 width=400>
<panel>
<table>
<tr>
<td>literal inside the panel</td>
</tr>
</table>
</panel>
</td>
</tr>
I would appreciate if anyone could explain this behavior.
Thanks.
Pavan wrote:
> Hi All,
> I am having a wierd problem while displaying my panel. My code is
> something like this
> <table>
> <tr>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>label</td>
> <td width=100>button in this cell</td>
> </tr>
> <tr>
> <td colspan=4 width=400>
> <panel>literal inside the panel</panel>
> </td>
> </tr>
> </table>
> this is actually the structure of my repeater control, and I am
> toggling the visibility of my panel on the client side, whenever the
> button in the first row is clicked.
> The approach works fine when the text in the literal is shorter than
> the table width, which is 400. But, when it is longer and it had to be
> wrapped, the entire table structure is messed up, the colums widths are
> changing at each toggle of the panel display.
> However, if I insert line breaks(<br> )in literal string, so that the
> string between two line breaks is less than the page width, its working
> perfect.
> any idea why the table structure is messed up when the string is larger
> than page width.
> Any help is greatly appreciated.
> Thanks

table to list

this code is to bring one coloumn in a listbox... when selecting that list corresponding values for that selection should be displayed in my text boxes kept in de form please some one help me...

thanks in advance......

Dim myDB As Database
Dim myRS As dao.Recordset
Dim tdf As TableDef

Private Sub DataList1_Click()

End Sub

Private Sub EXIT_Click()
Unload Me
End Sub

Private Sub Form_Load()
Set myDB = OpenDatabase("C:\deepesh\name.mdb")
Set myRS = myDB.OpenRecordset("details", dbOpenTable)
For Each tdf In myDB.TableDefs
name1.AddItem tdf.name
Next tdf
'If myRS.RecordCount > 0 Then
'myRS.MoveFirst
'End If
If Not myRS.EOF And Not myRS.BOF Then
myRS.MoveFirst
End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
myRS.Close
Set myRS = Nothing
myDB.Close
Set myDB = Nothing
End Sub

Private Sub name1_Change()
Set myRS = myDB.OpenRecordset("select name,street1,street2,city,pincode,phone,pan_number from details where name=""& List1.Text &", dbopendybaset)
myRS.FindFirst "[name] = " & name1.Text & """"
If myRS.RecordCount > 0 Then
'If myRS.NoMatch = False Then
phone.Text = myRS("phone")
street1.Text = myRS("street1")
street2.Text = myRS("sreet2")
city.Text = myRS("city")
pincode.Text = myRS("pincode")
pincode.Text = myRS.Fields(5)
End If
Set myRS = Nothing
End Subbut how to add script i don understand i am new to vb so kindly help
You will need to add a bit of javascript to your listbox. Your spectacularly unstructured code makes it a little difficult to look at, but I figure that 'name1' is the name of your listbox. Use .Attributes.Add() to have it call a bit of javascript that populates a textbox on each click event.
Ok, I'll tell you half of it, since you ought to learn.

First, find out the javascript required to populate a textbox whenever an item in a listbox is clicked. Once you find that javascript, in your codebehind, use

name1.Attributes.Add("onClick",yourjavascripthere);

Keep in mind that the exact id of the textbox must be substituted in 'yourjavascripthere'. For this, you can use string concatenation and use textbox1.ClientId to get the client id of the textbox.
i seriously didnt understand a little bit... can we addd script in vb huh???
Yes. In your codebehind, you can dynamically add javascript to one of your controls. For that, you use name1.Attributes.Add().

So for example...

textbox1.Attributes.Add("onClick","alert('hello!');");

Will cause a messagebox to appear when someone clicks on textbox1.
This is ASP.Net forum and not the VB 6 forum. Please ask the moderators to move this thread to Classic VB forum.
Good call. (slaps forehead)

Monday, March 26, 2012

tabpanels have a white strip on them

Hi! I am using a Ajax tabcontainer, but the buttons are not displayed properly, there us like a while line about 4pxheight that crosses all the buttons. Here is the code I am using:

<asp:ContentID="Content1"ContentPlaceHolderID="BodyContent"Runat="Server">

<asp:ScriptManagerID="ScriptManager1"runat="server">

</asp:ScriptManager>

<cc1:TabContainerID="TabContainer1"runat="server"ActiveTabIndex="2"Height="369px">

<cc1:TabPanelID="TabPanel1"runat="server"HeaderText="TabPanel1">

<HeaderTemplate>

TabPanel1

</HeaderTemplate>

</cc1:TabPanel>

<cc1:TabPanelID="TabPanel2"runat="server"HeaderText="TabPanel2">

<HeaderTemplate>

TabPanel2<br/>

</HeaderTemplate>

</cc1:TabPanel>

<cc1:TabPanelID="TabPanel3"runat="server"HeaderText="TabPanel3">

</cc1:TabPanel>

</cc1:TabContainer>

</asp:Content>

Do I have to configure something else?? Thanks!

I did the same thing in a regular page and it worked fine. Why is the master page messing it up? Thanks!


I figured where the problem is from, I am using:<htmlxmlns="http://www.w3.org/1999/xhtml"> instead of

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

But now all pages are messed up when I put <!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> like the footer gets bigger...

Thursday, March 22, 2012

tags not being displayed in form

I have an aspx page with a few asp textboxes + labels on it. This is fine and work as expected when displayed indipendantly. The problem is that I need to place this page into a frame. When I put it into a frame the asp textboxes and label disapear. The normal html tags I have on the page are fine. Does any one know why this happens and how to solve it

Cheers

JamieHello, all what you need is to copy your aspx files, all other folder, bin folder and place them in the main root directory of your webspace.
You can use simlpe FTP for sure, or any other procedure that is offered by the hosting company.

regards.
The aspx files are in the root directory already. We have our own intranet server here so we do the development locally. This has me well stuck. Have you got any other possible cures I am gettin bit desperate.
Post code so we can try to repro locally.
Hello, what is exactly the errors you are getting ? You asked how to move the files to a real server, and we gave the solution, what is exactly the problem now ? Explain more to be able to help you.

regards.

taking a table out of a page and emailing it

Is there a way to read the current Asp.net page where I may have built some
statistics and displayed it on the screen in a Datagrid, and take the table
(datagrid) and put it into an email and send it from that page?
I would also like to read part of a page and print it directly to the
printer.
Thanks,
TomIf you move the logic to a user control, it's a pretty simple thing to do:
http://openmymind.net/FAQ.aspx?documentId=45
Karl
http://www.openmymind.net/
"tshad" <tfs@.dslextreme.com> wrote in message
news:eF2IqikeGHA.1320@.TK2MSFTNGP04.phx.gbl...
> Is there a way to read the current Asp.net page where I may have built
> some
> statistics and displayed it on the screen in a Datagrid, and take the
> table
> (datagrid) and put it into an email and send it from that page?
> I would also like to read part of a page and print it directly to the
> printer.
> Thanks,
> Tom
>
"Karl Seguin [MVP]" <karl REMOVE @. REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:e3U%23HTneGHA.2172@.TK2MSFTNGP04.phx.gbl...
> If you move the logic to a user control, it's a pretty simple thing to do:
> http://openmymind.net/FAQ.aspx?documentId=45
Not quite sure if that would do what I am trying to do or not.
There was a way to do this I found a long time ago that allowed me to grab
part of my page and put it into my email to send out, but I can't seem to
find that anymore.
Thanks,
Tom
> Karl
> --
> http://www.openmymind.net/
>
> "tshad" <tfs@.dslextreme.com> wrote in message
> news:eF2IqikeGHA.1320@.TK2MSFTNGP04.phx.gbl...
>

taking a table out of a page and emailing it

Is there a way to read the current Asp.net page where I may have built some
statistics and displayed it on the screen in a Datagrid, and take the table
(datagrid) and put it into an email and send it from that page?

I would also like to read part of a page and print it directly to the
printer.

Thanks,

TomIf you move the logic to a user control, it's a pretty simple thing to do:
http://openmymind.net/FAQ.aspx?documentId=45

Karl

--
http://www.openmymind.net/

"tshad" <tfs@.dslextreme.com> wrote in message
news:eF2IqikeGHA.1320@.TK2MSFTNGP04.phx.gbl...
> Is there a way to read the current Asp.net page where I may have built
> some
> statistics and displayed it on the screen in a Datagrid, and take the
> table
> (datagrid) and put it into an email and send it from that page?
> I would also like to read part of a page and print it directly to the
> printer.
> Thanks,
> Tom
"Karl Seguin [MVP]" <karl REMOVE @. REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:e3U%23HTneGHA.2172@.TK2MSFTNGP04.phx.gbl...
> If you move the logic to a user control, it's a pretty simple thing to do:
> http://openmymind.net/FAQ.aspx?documentId=45

Not quite sure if that would do what I am trying to do or not.

There was a way to do this I found a long time ago that allowed me to grab
part of my page and put it into my email to send out, but I can't seem to
find that anymore.

Thanks,

Tom
> Karl
> --
> http://www.openmymind.net/
>
> "tshad" <tfs@.dslextreme.com> wrote in message
> news:eF2IqikeGHA.1320@.TK2MSFTNGP04.phx.gbl...
>> Is there a way to read the current Asp.net page where I may have built
>> some
>> statistics and displayed it on the screen in a Datagrid, and take the
>> table
>> (datagrid) and put it into an email and send it from that page?
>>
>> I would also like to read part of a page and print it directly to the
>> printer.
>>
>> Thanks,
>>
>> Tom
>>
>>