473,791 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

no autopostback on a grid?

I have a grid with a select button. I went to turn off AutoPostBack and
there is no such attribute. Is there any way to make a grid behave as would
a listbox and not autopost back upon the selection?
Thanks,
T
Nov 18 '05 #1
3 1349
Tina,
The selection buttons on a grid do the row selecting on the server
during a postback. If the page doesn't post back, the row won't be
selected. The autopostback behavior is the design of the built-in row
selecting functionality, so the answer to your question is no (without
coding some custom client-side code).

Best regards,
Jeffrey Palermo

"Tina" <ti**********@r emovespamexcite .com> wrote in message
news:O8******** ******@TK2MSFTN GP10.phx.gbl...
I have a grid with a select button. I went to turn off AutoPostBack and
there is no such attribute. Is there any way to make a grid behave as would a listbox and not autopost back upon the selection?
Thanks,
T

Nov 18 '05 #2
I don't suppose there is any such thing as a multi column listbox short of
building the columns in code?
T

"Jeffrey Palermo [MCP]" <http://dotnetjunkies.c om/weblog/jpalermo> wrote in
message news:uf******** ******@TK2MSFTN GP10.phx.gbl...
Tina,
The selection buttons on a grid do the row selecting on the server
during a postback. If the page doesn't post back, the row won't be
selected. The autopostback behavior is the design of the built-in row
selecting functionality, so the answer to your question is no (without
coding some custom client-side code).

Best regards,
Jeffrey Palermo

"Tina" <ti**********@r emovespamexcite .com> wrote in message
news:O8******** ******@TK2MSFTN GP10.phx.gbl...
I have a grid with a select button. I went to turn off AutoPostBack and
there is no such attribute. Is there any way to make a grid behave as

would
a listbox and not autopost back upon the selection?
Thanks,
T


Nov 18 '05 #3
Tina,
There is not html multi-column listbox, but you could mimic one by
adding spaces between two strings in the text of each list item, but there
is no control to handle this for you.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo
"Tina" <ti**********@r emovespamexcite .com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
I don't suppose there is any such thing as a multi column listbox short of
building the columns in code?
T

"Jeffrey Palermo [MCP]" <http://dotnetjunkies.c om/weblog/jpalermo> wrote in message news:uf******** ******@TK2MSFTN GP10.phx.gbl...
Tina,
The selection buttons on a grid do the row selecting on the server
during a postback. If the page doesn't post back, the row won't be
selected. The autopostback behavior is the design of the built-in row
selecting functionality, so the answer to your question is no (without
coding some custom client-side code).

Best regards,
Jeffrey Palermo

"Tina" <ti**********@r emovespamexcite .com> wrote in message
news:O8******** ******@TK2MSFTN GP10.phx.gbl...
I have a grid with a select button. I went to turn off AutoPostBack and there is no such attribute. Is there any way to make a grid behave as

would
a listbox and not autopost back upon the selection?
Thanks,
T



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6587
by: Susan van Houen | last post by:
Hi All, How do I intercept an autopostback on the client side and prevent it from executing the submit? In classic ASP I used to intercept the on_submit and just return false;
8
9366
by: Matthew Louden | last post by:
why need to set autopostback property to be true?? I know autopostback event means to send the form to the server automatically. I tried checkbox, checkbox list, radio button, and radio button list, and they all need to set autopostback property to be true, in order to make the event of the control fires. I know this is the must, but I dont know why. Please advise! Thanks!
2
1623
by: sklett | last post by:
Hi- I'm a bit rusty cause it's been awhile since I've made an asp.net app, but here is what I want to do: single aspx page bound DropDownList w/ autopost back that holds names of customers DataGrid that shows customer data When a user selects a customer from the drop down, I get the selected
0
1156
by: Jaleel Syed via .NET 247 | last post by:
Hi, I have a Search page, which has a Search Button which whenclicked, Binds a DataGrid to the Data returned from Search(whichimplies that I am not Binding the Grid in Page_Load method). Inthe EditTemplate, I have a DropDownList with AutopostBack Trueand I have also defined a SelectIndexChanged event Handler forit. Along with the DropDownList, I also have a two ListBoxes andAdd and Remove Buttons. The first ListBox should be filleddepending...
6
327
by: Sunil | last post by:
Dear All I am a bit confused about AutoPost Back. My concept about AutoPostBack is that If AutoPostBack i "TRUE" for a Web Form the Web Form Goes back to the server and displays a fresh copy of th Web Form on the Browser. While If an AutoPostBack is False then the Web Form Stays on the browser and does not take a trip to the server Please let me know If I am saying correct Any help much appreciated
0
1441
by: kaon | last post by:
Hi, Ive been looking for a way to capture an autopostback event of a dropdownlist in a datagrid control. the scenario is that, ive a datagrid, and there is a dropdownlist column in each of the row with each record (note the drop down dont only show when u edit a row, but it shows always for every row), when i change a value from the dropdown for any row of the grid, i want to get the row id (or the record id that i can by someway put in...
2
11618
by: Tom Edelbrok | last post by:
Question: Why does a button event (ie: Button1_Click) get executed on the first click for a textbox control which has 'autopostback=false', but doesn't get executed until a second click when 'autopostback=true'? For example, I set up a textbox control with autopostback=false, and a command button. If I run my page (main.aspx) I can type data into the textbox control, then click on the button. The Button1_Click event fires immediately. ...
2
5298
by: rn5a | last post by:
Assume that a user control has a TextBox (Page1.ascx) <asp:TextBox ID="txtName" runat="server"/> I am encapsulating the above user control in a ASPX page named Page1.aspx i.e. the ASPX page displays a single TextBox. There's also a CheckBox in this ASPX page within the <formtags. Note that the CheckBox IS NOT a part of the user control. It has been explicitly added to the Form existing in the ASPX page. The AutoPostBack property of...
6
4846
by: Peter | last post by:
ASP.NET 2.0 Visual Studio 2008 I have the following code and when the textbox displays and I press Enter while in the text box I get AutoPostBack, how do I stop AutoPostBack? TextBox txt = new TextBox(); txt.MaxLength = parm.MaxLength; txt.ID = parm.ParameterNameID; txt.Text = "12345";
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.