all groups > asp.net webcontrols > january 2006
Filter by week: 1 2 3 4 5
Get data, make textBoxes, edit values, and re-save to database. Simple?
Posted by \ at 1/31/2006 11:55:36 PM
I'm using asp.net/vb.net/ado.net to create a very simple user interface.
(Everything works if I use STATICALLY created textBoxes... but not when I
make them DYNAMICALLY.)
1. Execute a SQL SELECT cmd to retrieve a record.
2. Loop through the dataReader values, creating textBox boxes dynami... more >>
Datagrid soes not page nor edits
Posted by Doru Roman at 1/31/2006 7:14:01 PM
Hi,
I try to use a datagrid with paging. Even though it shows the numbers for
the following pages at the bottom of the grid, when I click on the page
number it does not go there, it keeps the first page, even though there are
lots of them to be seen.
And when I provide an EDIT button it does ... more >>
A question about Repeater control
Posted by Vincent Ye at 1/31/2006 4:20:16 PM
Hi, All
Let me describe my problem:
I store some link information in an Access database. Now I want to show
these links in a table on my asp.net page. let's say there are 3 columns in
the table. I want to show one link per cell.
I tried to use Repeater control to implement it, but foun... more >>
getting graph to display - crystal reports vs2003 version
Posted by astro at 1/31/2006 4:06:55 PM
I've reached the point where I can get a crystal report to display in my
browser - with the detail band showing all the rows.
The bar chart in the header does not display though. My hunch is some
configuration issue(s.) The same report/bar chart works perfect in my
vb.net client-server ... more >>
object reference not set as an instance of an object
Posted by jtleb at 1/31/2006 3:47:33 PM
hi all,
I am new to ASP.NET so please bear with me. i am trying to use mulitple
radio buttons on one page with a submit button. There is one radio button in
one table and 6 more in another table. When i try to get the first value it
works fine but when i try to access the value of the rest i g... more >>
detailsview, inserting new record and request.querystring
Posted by TdarTdar at 1/31/2006 1:14:34 PM
Hello,
I have a value from another page called shipkey, I would like to use this
value
to populate the field shipkey in the detailsview for inserting a new record.
how would that be done correctly?
code:
<%@ Page Language="VB" MasterPageFile="~/Site.master"
AutoEventWireup="false" C... more >>
Web User Control
Posted by Frank at 1/31/2006 12:58:35 PM
Hi,
I have two user controls. They are small. One is for login in and the
other one is for a new user. I was thinking to have both, and in the client
side, switch them (if both are load it), yet I want them in the same
position. How can I achieve that? and if is not possible on client sid... more >>
GridViewUpdateEventArgs not including complete set of OldValues and NewValues
Posted by Stephan Steiner at 1/31/2006 11:48:54 AM
Hi
I have a GridView with 10 columns. However, when the RowUpdating event
fires, the GridViewUpdateEventArgs.OldValues collection only contains 8. It
seems to be missing two (always the same) but I can't find any logic to the
behavior. I use a combination of standard and template fields. On... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
EnableViewState=False creates problems with Visible & Enabled
Posted by Revoemag at 1/31/2006 11:42:12 AM
I have a very simple WebForm that has 3 Web Controls: 1 TextBox (TextBox1)
and 2 Buttons (Button1 & Button2).
Button1 checks if the TextBox is Visible (or Enabled) and sets it to False
(or True in the opposite case). Button2 does absolutely nothing.
If I set EnableViewState=False on the T... more >>
Menu displays I-Beam cursor, not Hand
Posted by Walter at 1/31/2006 5:41:42 AM
I have a .NET 2.0 Menu control on my aspx page using a web.sitemap. On the
top level menu, when the cursor is going over the Static part, the mouse
cursor turns into an I-Beam (text) cursor. When I open the menu, the dynamic
menu items properly use the Hand cursor. I would like the Static menu... more >>
Datagrid template column in C#
Posted by Tim_k at 1/30/2006 6:36:27 PM
Hi,
I have a dropdown control as a template column in a datagrid on an asp page.
I bind the datagrid to a dataset. My code worked in VB but in C# I get an
error "specified cast is not valid" on the datagrid.bind. Can anyone give me
a suggestion? I tried to cast the DataBinder.Eval to (Dro... more >>
Communicating between windows control and web page
Posted by poppy at 1/30/2006 8:34:28 AM
I have a windows control hosted in IE which contains a bunch of methods
e.g getCurrentUser(int ID) as integer
How can I invoke this method from my web page, pass it the "int ID" and then
get access to the returned integer ?
I have been trying for ages but cant seem to crack this.
If I... more >>
Error: Content is not allowed between the opening and closing tags for element
Posted by Allan Ebdrup at 1/30/2006 12:00:00 AM
I have a ascx webcontrol that I register with:
<%@ Register Src="../Controls/Default/Library/Basket/Basket.ascx"
TagName="Basket"
TagPrefix="uc1" %>
and instantiate on the page with:
<uc1:Basket ID="Basket1" runat="server" />
This works without problems, Now I've added the attribute:
[Par... more >>
Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC))
Posted by Allan Ebdrup at 1/30/2006 12:00:00 AM
Now I've tried to create my own class library and reference it, when I drag
and drop a control (Basket) from the library in VS.Net 2005 I get the error:
Invalid FORMATETC structure (Exception from HRESULT:
0x80040064(DV_E_FORMATETC))
The code in the class library is:
Basket.cs:
----------
... more >>
Need Help: AccessDataSource and Assigning Variables for Data (ASP 2.0)
Posted by Michael at 1/29/2006 8:28:30 PM
I am using Visual Studio 2005 (ASP 2.0) to build a webpage that uses a
Microsoft Access Database. The data in the database
simply holds the information on a link to a document that I am storing on
the website. The information is written into the webpage
dynamically. That way when I add docu... more >>
How to Catch exception for GridView control?
Posted by kai at 1/28/2006 2:13:17 PM
Hi,
I placed a Gridview control on a ASP.NET 2.0 page and enabled the
"Delete", "Edit" . I want to do "Try Catch" on "Delete" and "Edit" button in
the GridView but don't find the place to put the code. Please help.
Thanks!
Kai
... more >>
DropDownList resets selectedIndex on postback
Posted by Juan Puebla at 1/28/2006 3:24:26 AM
Hi,
I have a dropdownlist (ddL). When I run the app and I try to select an item
it alsways get selected the first item. I fill the ddl on pageload with: "if
not ispostback" statement. Function that fills the ddl:
For i = 0 To alAsigs.Count - 1
Dim c As New ListItem
... more >>
need help in web user control
Posted by yoshitha at 1/27/2006 6:09:15 PM
hi
i've developed web user control using C#.net
here is the code
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="TeachingStaff.ascx.cs"
Inherits="SchoolAdmin.TeachingStaff"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%
strFtype= Session["Ftype"]... more >>
CheckboxList problem
Posted by Jeppe Jespersen at 1/27/2006 1:47:23 PM
Checkout a little 3-minuter video i made, illustrating my problem.
http://www.netkoder.dk/cl/
Any ideas?
Jeppe
... more >>
VS 2005 control with sql 2000
Posted by krebs44 NO[at]SPAM gmail.com at 1/27/2006 11:23:59 AM
Hey,
I have created a web app that uses the new login controls with vs 2005
but on my web server i have sql2000 installed on it and i know the
login control must use sql 2005 or the express edition. Does anyone
know how i could use these controls with my existing sql server? Any
help would ... more >>
Strange behavior with gridview and selectedindex
Posted by jordo at 1/27/2006 9:09:02 AM
Hello there,
I have an asp.net 2.0 web app that uses gridview and formview. When a user
selects an item in the gridview the formview appears to show the detail.
This works quite well. However, I'd also like the formview to be displayed
if a specific datakey for an item in the gridview is pas... more >>
Date masked textbox for user input
Posted by Erik at 1/27/2006 7:57:03 AM
Good Morning,
I have some users which are having difficulty entering dates in the format
MM/DD/YYYY. I validate the user's entry, but have been asked to research
masking the textbox so the users entry will automatically display as
MM/DD/YYYY in the textbox for the entered value.
Thank you f... more >>
ASP.NET 2.0 Databind during Client Callback
Posted by jslaybaugh NO[at]SPAM gmail.com at 1/27/2006 7:17:36 AM
I am trying to bind to a GridView or DetailsView after a callback using
the ClientCallback Manager in the new .NET 2.0 framework. See below
for the HTML followed by the VB code:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script t... more >>
Listboxes display failing
Posted by Rob 19 at 1/27/2006 3:15:02 AM
Hi,
I have a listbox within a DIV on an SSL page and when the page is refreshed
the listbox jumps within the div. Also, sometimes the items within the list
box ocerlap each other and the font style is not aplied.
It is almost as if the listbox is displayed and then the style is applied, ... more >>
Absolute Positioning in Web User Controls
Posted by stefanjohansson_2005 NO[at]SPAM yahoo.se at 1/27/2006 1:14:35 AM
I used to place a GridLayoutPanel in the User Control to get an
absolute position. How do I do this in Visual Studio 2005? Absolute
position under Layout - Position - Auto Position Options in the meny
does not work since the position should be relative to the User Control
and not the Web Page.
... more >>
Master Detail Event Handling?
Posted by bernadou at 1/26/2006 6:09:01 PM
I’m trying to use the DataList and GridView to accomplish a Parent (or
master), child type of display (I’ve got that part), but I can’t seem to
figure out how to handle events for the child GridView. The display looks
like this:
Parent Record
Child Record [button]
Child Record [... more >>
Hide show asp table
Posted by Rod at 1/26/2006 4:08:18 PM
Hi!
I have the following <table> in my webform.aspx :
<table id="Tbllist" border="0" style="Display: none"></table>
In the form there is a button called "btnlist".
On the "btn_list_click" event I would to "show" the table above.
Could anyone help me, please ?
Antonio
... more >>
Problem with FindControl
Posted by Wayne Wengert at 1/26/2006 2:16:03 PM
I am attempting to check the status of a login (Login1) which is containted
within a login view (lv1) using the following code but each of the 2 Dim
statements get flagged with"End of Statement expected"? What is the correct
way to do this?
=============================
Protected Sub Login... more >>
How to turn off padding within a Web Part?
Posted by Terry Smith at 1/26/2006 9:03:03 AM
Web parts are automatically generated with 5px of padding within their
container. This gets specified in the style attribute of one of the TD tags.
There are no properties to turn this off that I have found, and since the
padding gets generated into the style a CSS class will not override it. ... more >>
DropDown List
Posted by JD at 1/26/2006 8:16:34 AM
I am trying to see up a drop down list so that the key value is set up as
follow(s)
<option value="id|description">description</option> where id and description
are values that are pulled back from the database, I know I have seen this
done before, but for the life of me I cannot remember ... more >>
DataSourceID '<NewDataSource ...>' not working in composite contro
Posted by Christophe Peillet at 1/26/2006 2:34:02 AM
I am trying to add databinding support to some composite controls, and have
everything working in the relevant properties (DataTextField, etc.),
including that DataSourceID properly lists all valid datasources on the page.
However, when I choose '<NewDataSource...>', the wizard doesn't fire, ... more >>
Global Themes Folder Missing
Posted by Phred Menyhert at 1/25/2006 10:42:09 PM
During the installation of Visual Studio 2005 and .NET Framework 2.0,
apparently a Global Themes folder is supposed to be installed under
WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles.
This folder doesn't appear to have been installed during my installation of
VS 2005 and .N... more >>
Gridview not updating database row
Posted by Eric at 1/25/2006 5:29:32 PM
I've meticulously set up gridview controls both with the wizard and
programmatically, using a sqldatasource and can not get the update command
to pass the new column value to the database, it always passes the original
value, thus no update occurs. I've run traces with SQL profiler, and the
... more >>
Script edit server control
Posted by Bill Youngman at 1/25/2006 1:09:56 PM
Does anybody know where I can get my hands on a script editor server
control?
I have developed a web app that includes an "editor" (textarea control) in
it and I have to use that term very loosely because all it does is display
the source for any page that is loaded into it. If you want to ... more >>
menu webcontrol
Posted by Kaplan Dani at 1/25/2006 11:54:01 AM
I'm using this control in asp.net 2.0 (vs2005)
after I change the "dir" of my page to : rtl (right to left)
the menu moved alright to the other side, but, the subitems, apearse in there original position, in the middle of the screen now, not even close to the new location of their parent node...
... more >>
Viewstate and Master page with programmatically created content
Posted by timpera2501 at 1/25/2006 10:41:02 AM
I am considering designing a page where all the controls on the page are
created programmatically.
I read the MSDN Library article at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskAddingControlsToWebFormsPageProgrammatically.asp
According to that article,... more >>
multiview
Posted by anat at 1/25/2006 9:19:44 AM
How do I change the size (width & hight) of the multiview and view controls?
I want to use them as tabstrip. In their properties the size elements do not
appear.
--anat... more >>
TreeView Security error
Posted by djoledjole at 1/25/2006 8:28:02 AM
I have got one really simple website in which I use Treeview web control .
I can not host that webSite on my Internet provider because of Security
error. Server Error in '/' Application.
--------------------------------------------------------------------------------
Security Exception Descripti... more >>
Catching event in Menu control when bound with sitemap
Posted by Shem at 1/25/2006 3:51:03 AM
Hi Folks,
I am running 2005 c# and I have dynaically built a site map which is
autobound to a menu control, but for whatever reasons, i now cannot catch the
menu_click event. I think this is maybe due to the fact that the sitemap
structure automatically posts it to the new distinct url. I d... more >>
.NET multi-column listbox for webpages?
Posted by Thomas Phaneuf at 1/25/2006 12:00:00 AM
To all:
Does anyone know where/how I can get a multi-column listbox object for
webpages in .NET. I have seen it implemented using Java -- so I am thinking
that somewhere somehow someone clever has found a way to do it using .NET.
Thanks in advance,
-Tom
... more >>
These controls are a real mess
Posted by GaryDean at 1/24/2006 5:51:16 PM
After learning about these controls I go to the MSDN site that is supposed
to provide download capability. The link to download is no longer a link so
they can't be downloaded. I spend a few hours looking in all of the forums
and find that other people can't find a link either but eventually... more >>
Menu Control building via code
Posted by Shem at 1/24/2006 10:26:24 AM
Has anybody built a menu control via a hierarchical structure in a database.
If so could you please help me out.
I want to get a structure from a db then build the menu up on the fly. Any
examples would be great.
Thanks in advance ... more >>
Other browsers
Posted by Tina at 1/24/2006 9:42:13 AM
Do these webconrols only work with I.E. browsers?
Thanks,
T
... more >>
Unable to find control id referenced by the 'ControlToValidate' Pr
Posted by vibs at 1/24/2006 8:28:03 AM
I am adding a textbox and a requiredvalidator control dynamically to a
usercontrol, and I get this error on the validator control. I have tried
changing to ClientID and UniqueID with no success. What am I missing? I am
adding the control to the same TableCell so the container should be the sam... more >>
Wiring up events...
Posted by Zamdrist at 1/24/2006 7:37:43 AM
html:
....OnSelectedIndexChanged="ddlSearchBy_SelectedIndexChanged">
vb:
Public Sub ddlSearchBy_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ddlSearchBy.SelectedIndexChanged
'Some simple code here
End Sub
Why won't this event fire when I c... more >>
javascript within TEMPLATECOLUMNS
Posted by Brian Lorraine at 1/23/2006 5:58:01 PM
I've learned how to add javascript to a web control in .NET using the
".Attributes.Add" method.
example:
MYBUTTON.Attributes.add("onClick", "blablafunction")
I'm having a problem adding javascript to a control that is inside a
TEMPLATE COLUMN of a datagrid. The name of my button is "butto... more >>
Persisting ListItemCollection values across postback, using ViewSt
Posted by Christophe Peillet at 1/23/2006 8:36:02 AM
I have a series of composite controls to replace most common form controls
(adding Ajax support and a built in validator), and have all of the simple
controls working (textbox, checkbox, button, etc.), but have an issue with
Viewstate and Postback when it comes to ListItem based controls
(Ch... more >>
edit single record in formview
Posted by Phil at 1/23/2006 8:03:03 AM
i want to return a selected record through output parameters in a stored proc
and bind them to a formview; is this possible and how should it be done?
currently i'm using a stored proced that essentially returns a set of data
containing only one row for the selected record. it is my understa... more >>
Format telephone number??
Posted by bernadou at 1/22/2006 10:01:02 AM
Ok, this is yet again one of those things that is driving me crazy. How do I
use a formatting expression to format a number? Here's what I'm trying, but,
it isn't working.
Text='<%# Eval("fldPhone", "(###)-###-####") %>'
What I'm trying to see happen is the value "3335551212" output as
... more >>
Force multi line field value to output with line breaks?
Posted by bernadou at 1/22/2006 8:48:02 AM
I have a field value that might look like this in the db
First Line
Second Line
Third Line
When I query the data and output that data to a label in my gridveiw it
looks like this:
First Line Second Line Third Line
How to I insert HTML formatting into the label text so it will render in t... more >>
|