| |

VerySource

 Forgot password?
 Register
Search
View: 1370|Reply: 16

Can't `Can't be overwhelmed ... Why! Why! Why!

[Copy link]

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-3-16 17:00:01
| Show all posts |Read mode
I'm doing a search `how can't the results be displayed on one line`

The code looks like this:
<div>
<asp: TextBox ID = "txtsearch" runat = "server" />&nbsp;&nbsp;
<asp: Button ID = "btnsearch" runat = "server" Text = "Search" />
          Popular searches: <asp: DataList ID = "DataList5" runat = "server" RepeatColumns = "4" RepeatDirection = "Vertical" DataSourceID = "SqlDataSource5">
          <ItemTemplate> <asp: Label ID = "KeyWordLabel" runat = "server" Text = '<% # Eval ("KeyWord")%>' /> </ ItemTemplate>
          </ asp: DataList>
</ div>

My error effect is:
-------------------------------------------------- -------------------
 -----------------
| TextBox | Search Popular Searches:
 -----------------
  -----------------------------
 | Top Search Keywords |
  -----------------------------
-------------------------------------------------- --------------------


I also used CSS to write `But he ... he ... just can't do it one line` I don't know if it's the wrong way`
Help!
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-17 21:15:01
| Show all posts
<ASP:DATALIST ID="DataList5" style="display:inline"
Reply

Use magic Report

0

Threads

26

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-6-18 01:30:01
| Show all posts
Upstairs is right, you can also use <table><tr><td>1</td><td>2</td><td>3</td></tr></table> to arrange
Reply

Use magic Report

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

 Author| Post time: 2020-6-18 11:00:01
| Show all posts
dydcool]

The method has not been used
Reply

Use magic Report

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

 Author| Post time: 2020-6-18 16:15:01
| Show all posts
datalist has no style attribute
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-6-18 19:15:01
| Show all posts
datalist has no style attribute
==========
Don't worry about it, just write it.
Reply

Use magic Report

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

 Author| Post time: 2020-6-19 19:30:01
| Show all posts
datalist has no style attribute
==========
Don't worry about it, just write it.


Haha `cruel`
Reply

Use magic Report

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

 Author| Post time: 2020-7-15 11:30:01
| Show all posts
invalid! invalid!
DataList should be displayed horizontally as long as RepeatDirection="Vertical"

The effect I want is like this
-------------------------------------------------- -------------------
----------------- ---------------------------
| TextBox | Search Popular searches:| DataList |
----------------- ---------------------------
-------------------------------------------------- --------------------

But the DataList can't follow the popular search and it will wrap
Reply

Use magic Report

0

Threads

21

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-7-15 12:45:01
| Show all posts
<asp:Label ID="KeyWordLabel" runat="server" Text='<%# Eval("KeyWord") %>' />
Change to
<span><%# Eval("KeyWord") %></span>
Reply

Use magic Report

4

Threads

24

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

 Author| Post time: 2020-7-15 13:30:01
| Show all posts
Wrong is`
RepeatDirection="Horizontal"
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list