all groups > asp.net webcontrols > december 2005 > threads for december 15 - 21, 2005
Filter by week: 1 2 3 4 5
How to determine the "state" of a GridView
Posted by Roberto Kohler at 12/21/2005 10:49:19 PM
How can I tell if the grid is showing me the "edit command button" or the
"update command button"
I need to figure out a way for an event handler to know the "state" of a
gridview.
I want the ENTER key to do one thing if I am in "edit mode", and another
thing if I am in "update mode".
If ... more >>
Click event handler not called on dynamically create image button
Posted by rh.krish NO[at]SPAM gmail.com at 12/21/2005 9:50:12 PM
Hi,
I'm have a web form where I generate templates dynamically based on
the user input. When the user clicks the 'create' button I create a row
dynamically and create an ImageButton dynamically in that row. I also
tie the onClick event to a server side event handler, but when I click
the dy... more >>
ReportViewer/ObjectDataSource Problem
Posted by Houston Lucifer at 12/21/2005 5:59:02 PM
I have a report viewer on my webpage and it is linked to an objectdatasource.
The parameter is a control on the form (Dropdownlist). But, when i change the
selection in the dropdownlist and click the go button (on the web page), the
reportviewer doesn't refresh.
What i have done so far is i... more >>
DropDownList not giving the selected item when a Button is clicked... please help newbie...
Posted by Julius Mong at 12/21/2005 5:56:32 PM
Hi dear experts,
I'm new to ASP.NET and am having a hard time trying to make this work :( I
have a ddl which contains 2 or more items (populated by code) and a submit
asp:button that I'd want when clicked simply sends the ddl's selected item's
text value to an asp:label. I have searched throug... more >>
Web Control Positioning
Posted by Joe90 at 12/21/2005 8:39:02 AM
I need to set the location of a popup window to cover a dynamically postioned
control.
Setting the position on the popup is no problem, but how do I get the
position of the dynamic control ?
Any help appreciated
Joe90... more >>
THEAD
Posted by Arne at 12/21/2005 8:34:03 AM
ASP.net can create HTML tables with Datagrid and Table controls. Is there an
ASP.net control that allows me to build an HTML table with a THEAD row?... more >>
objectdatasource.update() fires System.InvalidOperationException
Posted by Markus at 12/21/2005 7:54:02 AM
hello,
we have a strange error message here:
I've written a small detail sample page, where I can update one reocrd with
an objectdatasource control and the detailsview control.
the objectdatasource.confictdetection is set to 'CompareAllValues'. The
Updatemethod is UpdateXY and I've set two... more >>
Quick/Embarrasing Form Submission Question
Posted by Jeff at 12/20/2005 7:34:31 PM
I have a form that is passed to a subroutine when a button is pressed
via the button's 'onClick' property. That works peachy. However, while
testing I submited the form by hitting enter instead of pressing the
button. In this situation, the subroutine isnt called and nothing is
accomplished.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Custom type converter
Posted by KK at 12/20/2005 5:29:00 PM
Hi
For the server control I am developing, there is a property which I want to
show a list.
The content of the list is a subset of Properties available in the control
itself. For example
my control has
Property1
Property2
Property3
Property4
Property5
Now there is another property... more >>
How to filter file types when using the HTMLInputFile control...
Posted by Asela Gunawardena at 12/20/2005 3:33:51 PM
On my Web Servers, I don't want to allow visitors to upload executables.
There are many types of files that i want to ignore (for instance: exe,dll,
bat, cmd .etc). I have an ASPX page with an HTMLInputFile control which
uploads the files. Is it possible to set a filter when the user clicks th... more >>
Hide SideBar of Wizard Control
Posted by James Bond at 12/20/2005 3:08:02 PM
Hi all,
Has anyone tried to hide the SideBar of wizard control. I was reading Dino
Esposito's book on ASP.NET 2.0 and found that this optional panel can be
hidden by setting SideBarEnabled property. But looking through the SDK - I
could not find this property (!!!).
If anyone has done ... more >>
Better tool for selection - Datagrid or DataList?
Posted by jonefer at 12/20/2005 12:45:04 PM
After the user searches and is presented with a list of results - which is
the better tool for clicking to get a "details" page...?
If it is the DataGrid, how do I recoginize selection? (Doesn't highlight
when clicked)
If it is the DataList, I'm having problems with the same record repea... more >>
Required field validator
Posted by Chris Davoli at 12/20/2005 12:16:04 PM
VB.Net - I've got a drop down where the first item says "Please Select" in
the text of the drop down and 0 as the value for that item. I've also got a
text box that after you select the drop down item, there needs to be a value
typed into the text box. So, if there is an item selected in the ... more >>
Table - no ViewState
Posted by Brayan__ at 12/20/2005 11:31:21 AM
I just learn that there is no ViewState fo
System.Web.UI.WebControls.Table :eek:
I'm mad cos I need it :mad:
Table control has a property EnableViewState but it isn't working! Wh
? :confused:
Any idea how it's work in .NET 2.0
--
Brayan_
-------------------------------------------... more >>
Viewing Composite Controls at Design Time
Posted by Jeffrey Jones at 12/20/2005 9:14:40 AM
Hello All,
I have created a composite control consisting of a checkbox, label,
htmlfileinput, button and hyperlink controls. I have compiled my control
and, after doing that, created a project so that I could attempt to see
how my control operates.
In the designer for my asp.net project,... more >>
DropDownList.SelectedValue is incorrect!
Posted by jeffmagill NO[at]SPAM gmail.com at 12/20/2005 8:20:44 AM
I have an asp:dropdownlist in a form that is loaded with records from a
database. Upon clicking a button, a subroutine SubmitHandler is called.
The problem is that no matter which entry in the dropdownlist is
selected when the form is submitted, the value that I am recieving in
the subroutin... more >>
GridView Multi Select ?
Posted by brianpmccullough at 12/20/2005 7:45:03 AM
hello,
I have just started playing with the GridView (Web Forms) control in ASP.NET
2.0. I have an application that I would like to use the GridView to select
multiple rows by simply clicking on the row, much like you can with a ListBox.
First of all, is MultiSelect possible in the GridVi... more >>
Button Click event not firing
Posted by carentrica at 12/20/2005 4:14:02 AM
For some reason, my "testButton_Click()" event handler is not being called
when testButton is clicked.
This Button and a Label are the only controls on a Web UserControl which is
loaded and displayed in the main document. When the button is clicked, a
postback occurs and the Page events get c... more >>
I don't get it...Crystal Reports
Posted by Eric at 12/19/2005 6:06:25 PM
Please help me with this, I'm stuck...
I have a dataset with two tables.
This dataset is created when the user of this webapp fills in the
information and unique for each user.
The first table has all the information about the user, i.e. name, number...
The second has the overtime data.
W... more >>
master-pages: naming problem for client-side scripting
Posted by Roberto Kohler at 12/19/2005 4:24:19 PM
ASP.NET renames Textboxes and other controls in aspx files that use
master-pages ?
I've discovered that aspx files that use master-pages have their Textboxes
and other controls renamed before they are rendered. For example I have an
aspx file with a textbox named "City", when it gets loade... more >>
referencing and anchor from within a usercontrol (ascx)
Posted by gary at 12/19/2005 4:21:59 PM
Hi,
I am trying to reference an anchor in a user control with a url. This
worked in 1.1 but no longer works in 2.0.
The ascx control is located in a "/include" folder
If you have a hyperlink control and you assign the navigateurl property =
"../#anchor" whereby you want to add this # ref... more >>
referencing and anchor from within a usercontrol (ascx)
Posted by gary at 12/19/2005 4:21:27 PM
Hi,
I am trying to reference an anchor in a user control with a url. This
worked in 1.1 but no longer works in 2.0.
The ascx control is located in a "/include" folder
If you have a hyperlink control and you assign the navigateurl property =
"../#anchor" whereby you want to add this # ref... more >>
GridView InsertRow
Posted by VictorReinhart at 12/19/2005 2:39:02 PM
Hi,
Given a GridView and SqlDataSource, what is the best way to insert a
row?
Is there going to be an AddRow() or InsertRow() method in the future?
Thank you
VictorReinhart
... more >>
Bound dropdownlist in .NET 2.0 -- picking the selected value?
Posted by anyeone at 12/19/2005 2:35:03 PM
I'm finding articles all over the place saying how to bind a dropdownlist to
an objectdatasource or sqldatasource in .NET 2.0/VS2005 but nothing that says
how to get the selected value from another datasource.
Here's the scenario.
I'm essentially loading an order for a client. There is a dr... more >>
How to reference the masterpage body element in server code
Posted by Roberto Kohler at 12/19/2005 1:30:55 PM
How do I reference the masterpage body element in ASP.NET 2.0 server code ?
I tried the following, but I get the error "hgcMasterBody is not a member of
System.Web.UI.MasterPage"
In the Master Page:
<body id="hgcMasterBody" runat="server">
.....
</body>
In the ASPX page:
<%@ MasterTyp... more >>
<customErrors mode="Off"/> ERROR
Posted by Savas Ates at 12/19/2005 12:48:08 PM
I have a web application It works well in my local folder.. When i upload
it
to my web server i got
To enable the details of this specific error message to be viewable on
remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directo... more >>
masterpages: body event handler
Posted by Roberto Kohler at 12/19/2005 8:39:30 AM
I am trying to add a body event handler to a page that uses a masterpage.
I need to do something like:
<body onkeydown="catchKeyPress(window.event.keyCode,
window.event.srcElement);">
The problem is that when the page uses a masterpage, I can't add a <body>
tag.
How do I set a body event... more >>
Repeater.Itemcommand not firing
Posted by ilovreko NO[at]SPAM gmail.com at 12/19/2005 6:12:57 AM
I have a problem with ItemCommand event - it just wont fire. I've been
looking for a solution but couldn't find any that works for me.
Here's the code I'm using:
-- .aspx
....
<asp:Repeater id="rptPostaPrim" runat="server">
</asp:Repeater>
</form>
-- </body>
codebehind file
Page_... more >>
Membership roles question
Posted by John at 12/18/2005 1:52:12 PM
Hi
I am using the login control with a custom membership provider. My question
is; once the user has logged in how do I programmatically check what roles
the user belongs to, to provide the user with the relevant features?
Thanks
Regards
... more >>
Walking thr DataReader
Posted by Lorenzo at 12/18/2005 11:48:36 AM
Hello There,
I have the following code that I need to optimize but I have somenthing that
doesn't work quite as expected:
I am doing the following: I am coloring a calendar according to dates
present in the DB yellow if the dates are present, blank for available
dates. I have some problems... more >>
Textbox Select Text
Posted by Jim McGivney at 12/18/2005 10:55:11 AM
On an aspx page I have an asp:TextBox.
I am able to give the textbox the focus when the page is loaded.
I would like to be able to select (highlight) the contents of the textbox
when it gets the focus, so that the user can type an entry to replace the
selected text, or tab-out of the textbox t... more >>
Can RDLC Reports be used with Oracle data sources?
Posted by Will Baldwin at 12/17/2005 12:18:17 PM
I am trying to get the ReportViewer to work in VS2005 Professional.
1) Created a connection to the Oracle 10g Database in the Server Explorer.
2) Created an empty 'report.rdlc' file.
3) Created an report.aspx with a ReportViewer bound to the 'report.rdlc'
file.
The documentation states tha... more >>
Wizard Control - Referencing buttons in <StepNavigationTemplate>
Posted by beaudetious at 12/16/2005 9:15:02 PM
I've got a wizard control setup where I use the NavigationTemplates to
control the navigation buttons. My setup (very generally and with no
specifics) looks like this:
<asp:Wizard>
<StartNavigationTemplate></StartNavigationTemplate>
<StepNavigationTemplate></StepNavigationTemplat... more >>
Datagrid only shows the header
Posted by jonefer at 12/16/2005 6:50:02 PM
What would cause a DataGrid to only show the header??
The code inside my Page_Load is:
'=======================
Dim ConStr as String = "Provider=Microsoft.Jet.OLEDB.4.0;data
source=C:\\malpha.mdb"
Dim dcMalpha as OleDB.OleDbConnection(conStr)
Dim daMembers as New OleDb.OleDbDataAdapter
d... more >>
How do I check if a Name Value pair exists in my NVCollection?
Posted by JDP NO[at]SPAM Work at 12/16/2005 1:25:46 PM
I have an NV container located in a webMethod that does a data mapping then a
data insert.
Some of my web forms that use this method may not have a txtExistInsur text box
and therefore won't have an NV pair.
I get a runtime error if the NV pair does not exist, so How do I check?
I tried... more >>
Master Page problem
Posted by Houston Lucifer at 12/16/2005 12:43:11 PM
Hi all, i have a login form which has a master page. I have style sheet for
the master page. But, the login form doesn't inherit that style. All other
forms inherit the master page style. Is there something that i am missing?
Thanks... more >>
GridView KeepInEdit Mode problem
Posted by Houston Lucifer at 12/16/2005 7:56:02 AM
Hi all. I am having a tough time to get the grid view back into the normal
mode after updating the record. I have the code in the RowUpdating Event
which does all my custom inserts and updates and then i have KeepEditMode =
False in the RowUpdated event. Looks like the rowupdated event never f... more >>
Custom memebrship provider problem
Posted by John at 12/16/2005 6:52:07 AM
Hi
I am trying to setup a customised membership provider and I am getting the
following error when trying to run the app;
The entry 'AspNetSqlMembershipProvider' has already been added.
The line is: <add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvi... more >>
Sorting in GridView problem
Posted by mfr at 12/16/2005 3:10:02 AM
I'm trying to implement sorting in a GridView. The GridView is connected to
an ObjectDataSource that uses a stored procedure to return the data.
I believe I've implemented everything correctly but the sorting does not work.
By tracing through the program
* In the gridviews OnSorting event ... more >>
User Control First Load
Posted by Jose Rodriguez at 12/15/2005 6:25:07 PM
This problem is a tricky one. I am working on an application that loads
dynamic user controls into a panel control. We were getting Viewstate errors
when the user clicked refresh. To fix it, I turned off the Enableviewstate
on the Panel. Now my logic to determine if the user control has been l... more >>
CheckBoxList problem. Want to add some javascript to each checkbox
Posted by ThunderMusic at 12/15/2005 2:27:12 PM
Hi,
I have a CheckBoxList and I want to add some javascript code to each
CheckBox created by this CheckBoxList. I tried iterating through all items
of the list, all the controls, do a FindControl, et al. with no good result.
I would use the Control.Attribute.Add("OnClick", "some javascript co... more >>
Cant get a gridview to bind to my dataset
Posted by catronro NO[at]SPAM gmail.com at 12/15/2005 1:50:21 PM
ok i am trying to pull a dataset back from my database and then have
the searchResultsGridView diplay them. As i step through it the dataset
is being populated but never displayed by the grid view. Any ideas
message.Text = "";
SqlConnection cn = new SqlConnection();
... more >>
Implement form's onSubmit functionality
Posted by Vi at 12/15/2005 12:30:03 PM
Hi,
I have a LinkButton control that deletes a user from a database. I'd like to
display a client side alert window prompting the user to confirm the delete
so that if the users clicks "NO", the form is not posted to the server
(something I would do in classical ASP with onSubmit in the form'... more >>
ck_Problems
Posted by Amadeus Consulting at 12/15/2005 11:10:02 AM
I am developing a control in ASP.NET 2.0 that is derived from GridView. This
control handles paging on its own and thus renders custom paging buttons. It
also add some other functionality to the GridView by overriding Render() and
rendering other controls alongside the GridView’s HTML.
Wh... more >>
Datagrid, formatting, carriage returns
Posted by Zamdrist at 12/15/2005 7:01:00 AM
It appears as though, in the transition from a query to the datagrid I
am losing the carriage returns in an address field which I would like
to maintain for the purposes of a Word merge.
Here's the stored procedure. I have to Cast the data from text to
varchar in order to replace the @@ charac... more >>
URGENT - ASP.NET Labels and LinkButtons behaving inconsistently ac
Posted by Zahid at 12/15/2005 4:36:02 AM
Hello,
im working on an asp.net page that contains some labels and linkbuttons. The
label text is set and the link buttons are disabled when the page loads. This
works fine on my pc but when the same page is loaded on a friend's pc, the
label text is not set and the link buttons are not dis... more >>
IE Web Controls : TabStrip and Mulitpage
Posted by paris baughman at 12/15/2005 2:12:02 AM
Would it be possible if somebody could go through how i can DYNAMICALLY add a
tabstrip control and a mulitpage control. If you could provide some example
code and give me an explanation on how it works ? i would be very greatful
thanks
Paris
--
pb070401... more >>
|