all groups > asp.net webcontrols > november 2004
Filter by week: 1 2 3 4 5
Building a table from within a loop
Posted by Grant at 11/30/2004 9:39:05 PM
Hi,
Ive got this loop within a loop and Im trying to build a table. Problem is
when I exit the 2nd foreach loop (having created a new row) I cant add the
new row because it isnt in scope anymore. Basically I have this custom
arraylist containing a name property which has multiple attributes... more >>
Problem With Controls
Posted by poolguard at 11/30/2004 7:13:04 PM
I am having a problem with some controls in a new web app I am developing.
Here is the situation
I have a Base class that is inherited by Form.aspx them Form.aspx loads 2
controls Menu.ascx that never changes and a body control that is selected
dynamically at runtime. On each of the body c... more >>
Query Builder
Posted by Michael Chong at 11/30/2004 6:25:34 PM
Regarding Query Builder from OleDbCommand, it seems doesn't work well with
SQL syntax "ColName LIKE 'abc'", is that right? My SQL syntax works
perfectly in my database testing but it doesn't work at all in aspx.
Please advice! TQ
Michael.
... more >>
TabStrip - TabItemCollection
Posted by theintrepidfox NO[at]SPAM hotmail.com at 11/30/2004 5:47:22 PM
Dear Group
I wonder if anyone can advise me on how to assign a TabItemCollection
to a TabStrip control. In the code below, 'PopulateTabStrip' is a
function, returning a TabItemCollection that has been populated with
values from a database. I then would like to assign this collection to
the Ta... more >>
Strange textbox behavior
Posted by Craig Andrews at 11/30/2004 5:32:39 PM
Hello,
1) I populate a web control text box from a SQL Server DataReader on the
page load event.
2) Change the text via the web page and click "Save" button
3) Code behind button click on the "Save" updates the data record
4) The changed text in the text box reverts back to what ... more >>
On post back repeater's Item.DataItem are all null (?)
Posted by shodson NO[at]SPAM gmail.com at 11/30/2004 5:31:02 PM
I have a repeater like this
<asp:Repeater id="rptPremiums" EnableViewState="True"
OnItemDataBound="rptPremiums_ItemDataBound" runat="Server" >
For brevity's sake, suffice it to say there are header, item and
footer templates defined here as well.
And I bind to it in my code-behind like th... more >>
User Control Position
Posted by IntraRELY at 11/30/2004 3:36:34 PM
I cannot seem to position my user control. Here is the code:
<uc1:manageButtons id=ManageButtons1 style="Z-INDEX: 108; LEFT: 464px;
POSITION: absolute; TOP: 480px" runat="server"></uc1:manageButtons>
What gives?
... more >>
Using HTMLInputRadioButton Control in a Datagrid
Posted by Elliot Rodriguez at 11/30/2004 2:40:03 PM
Thanks for reading my post.
I have a requirement for the UI I am developing that necessitates I use
a radio button within each row of a DataGrid (dont ask, I was instructed
to do it this way). The radio button's value needs to be assigned a
value from a column in the grid's datasource.
I... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
databinding
Posted by delphiconsultingguy NO[at]SPAM yahoo.com at 11/30/2004 12:42:54 PM
Hi all,
I have a dataSet containing a table. I want to create a Web
application with textboxes that are attached to fields in the
dataSet's table, such that data entry is filtered by the datatypes of
those fields (e.g. 'age' text box only accepts numbers because its
field is integer). Is t... more >>
Urgent (please help): Post-back problem
Posted by Amir at 11/30/2004 12:41:03 AM
Hello every one
My problem is very clear but crazy.
I have a DataRepeater in my page that I have made the paging mechanisem for
it with a user control. This user control contains a Repeater too. Let's call
this control Paging Control.
The Paging control provide some links for paging.
When ... more >>
Calling a function from a user control
Posted by IntraRELY at 11/29/2004 8:30:16 PM
I have a user control which contains a button. In the btn click event
handler I need to call a funtion in the parent aspx page, but not sure how
to do it.
TIA,
Steve
... more >>
Debug ASP.NET application
Posted by R. Myers at 11/29/2004 11:49:36 AM
I am having trouble debugging my ASP.NET application. I am trying to debug
a web control library. If I put a breakpoint in a virtual function, or an
overridden function in a derived class, it skips it, and doesn't stop.
However, if I step into a virtual or overridden function, and then set
bre... more >>
Setting Content Type No Longer Returns Dynamic Controls
Posted by Andy at 11/29/2004 9:51:22 AM
I have a web page that contains a place holder control.
I create a table in code and add it to the place holder
controls collection and the table displays correctly in
html. If I set the mime type to return a word document the
table is never created. If I add any text using
response.write it ... more >>
ASP.NET Datagrid, doesn't fire events for editcmommand etc..
Posted by KK at 11/29/2004 9:31:06 AM
Hi guys
I am using the ASP.NET datagrid webcontrol.
It has an <asp:editcommandcolumn> with a
pushbutton type. The problem is when I click
the button it does not fire the;
private void dgQuestions_EditCommand(object source,
DataGridCommandEventArgs e) event.
To my knowledge for this th... more >>
problem with validationsummary and custom controls
Posted by killkennyhouse NO[at]SPAM hotmail.com at 11/29/2004 7:04:08 AM
Hello, can some one help me with this problem?
I have a mainpage with validationsummary control. usercontrols are
loaded dynamically. I do validation in these usercontrols. Some of
them I use requiredvalidation others I use customvalidation.
Here is the problem. The error messages from my re... more >>
Conditional dynamic loading of a web control?
Posted by haile at 11/29/2004 5:05:04 AM
Anyone know how to load a button and its event handler to a web page as a
result of a user action? This can't be done from Page_Load( ), because the
Page_Load event fires before the user action can set a property. And yet, if
the event handler is added at any time after Page_Load, the button... more >>
webform - resize the datagrid
Posted by Shrine at 11/29/2004 1:19:02 AM
I have a datagrid in the webform. I want to resize the datagrid columns using
mouse. Can anyone give me the code.?
--
Bye,
Shrine... more >>
Calendar Control
Posted by saintthomson NO[at]SPAM yahoo.com at 11/28/2004 8:32:04 PM
Hi all,
How will i able to know which week does the day falls.Is
there any method, which allows you to get
For eg:
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4
5 6 7 8 9 10 11
If i give 3 it ... more >>
'Microsoft.Web.UI.WebControls' does not match the assembly referen
Posted by Patrick.O.Ige at 11/28/2004 8:25:01 PM
I have a control that i want to use and when dragged to a web form and
complile it i gives me error:-
"The located assembly's manifest definition with name
'Microsoft.Web.UI.WebControls' does not match the assembly reference."
(I'm using it together with the 'Microsoft.Web.UI.WebControls' ... more >>
Urgent: How can I get the enter key to behave like a tab key?
Posted by Karen Grube at 11/28/2004 2:43:03 PM
Hi!
I have a web form completely filled with about 80 server-side controls
(text boxes - single line and multiline - and drop downs). The enter key is
firing the submit button rather than taking the user to the next tabindexed
field.
Users should be able to use the tab key or th... more >>
databound autocomplete ComboBox
Posted by rasta at 11/28/2004 3:24:07 AM
i've a an order entry page where one of the controls a ComboBox is populated
with approx 700kb of txt.
the txt is customer names.
i am looking for ways to improve the perfomrance, the bottleneck seems to be
the rendering of the page.
the ComboBox looks up the cust name only.
when there a... more >>
how to conditionaly add a usercontrol? (ASCX)
Posted by KK at 11/27/2004 8:40:24 PM
Hi guys
I have two user controls (ascx)
I want to place them conditionaly
in my aspx page. How to do that?
For exmple,
If Request["variable"] = "1" then
DisplayASCXcontrol(1)
Else
DisplayASCXcontrol(2)
End If
So, according to the users choice
when the page loads, it will
contai... more >>
Custom Validator needs to reset focus on validated control
Posted by Karen Grube at 11/27/2004 5:15:01 PM
Hi!
I have a control on a web page and a custom validator associated with that
control, along with a client side javascript validaton function. The
validation is working well with one exception. I'm trying to keep focus on
that control until the user enters something valid, but I'm havi... more >>
INamingContainer problem...can I work around this?
Posted by R. Myers at 11/27/2004 10:01:59 AM
I have implemented INamingContainer in a custom WebControl. It provides
unique ID's for controls without ID's. However, if my control already has
an ID set in its property panel, or in code, The HTML that is rendered
always shows the unique ID in front of it.
If the ID is "Table1", it render... more >>
History.Back not working from web
Posted by MuhammadTariq at 11/26/2004 10:21:11 PM
hi All
In my appliction history.Back is working at my local host and woring
properly but when i upload the apllication and run my appliction from web
the history.back is not working please help me as soon as possible
--
THANKS.
Regards TARIQ.
... more >>
Asp.Net C# Whidbey WebUserControl
Posted by Johnny E Jensen at 11/26/2004 9:29:16 PM
Hello
I'm trying to implement a WebUserControl ( MyCtrl.ascx ) to a WebForm (
MyWebForm.aspx )
The MyCtrl.ascx has some properties ( Public String FormTitle ) - and some
others.
In VS.2003 I load the WebUserControl like this:
MyCtrl _Ctrl = (MyCtrl)Page.LoadControl("MyCtrl.ascx");
.... ... more >>
Attribute is not setting
Posted by Thiruppathi S at 11/26/2004 6:27:49 PM
Hi All,
I had created a server control inheriting RequiredFiledValidator Class
to add my custom attributes.But the controltovalidate attribute is not
rendering.
Plz help me.
Regards,
S.Thiruppathi
... more >>
THEAD in asp:table control
Posted by Harald Fichtner at 11/26/2004 12:09:37 PM
Hello,
is it possible to use the THEAD and the TBODY tag in a table webcontrol (not
a datagrid)
Harald
... more >>
How can I get CheckBox value?
Posted by Stephane at 11/26/2004 8:53:02 AM
Hi,
I have created dynamically some check box using CheckBoxList. I' trying to
retreive those check boxes values with Request.From but I only get "on" for
checked boxes.
I did the same for radio button using RadioButtonList and droplist and it
works great.
How can I retrieve those val... more >>
How to programatically set focus onto a web control ?
Posted by news.iq.ca at 11/26/2004 2:44:28 AM
Hi,
I have a form containing a number of panels, simulating a wizard
(simulating, actually, a multi-page form). After pressing a button called
"Next", I am showing a new panel on this form, loaded with some controls. I
need to set the focus onto a textbox in the newly shown panel right away... more >>
Problem with web user control
Posted by oterox at 11/25/2004 9:14:24 PM
Hi!
I have a user control WebUserControl1.ascx with a textbox.I want to change
the text of the textbox from another page but i get the error "object
reference not set to an instance of the object".The code is:
protected System.Web.UI.WebControls.TextBox txtUC;
public string ucTexto
{
set... more >>
DropDownList moves to top of page on PostBack
Posted by Roger Helliwell at 11/25/2004 7:47:12 PM
Probably an easy fix I'm overlooking, but when I select an item from a
DropDownList (AutoPostBack="true"), the dropbox jumps to the top of
the page. Any idea how to stop this behaviour?
Roger
... more >>
disabled dynamically added controls and postback
Posted by djk at 11/25/2004 5:25:16 PM
Hi all!
Please help me with the following real-trouble:
- I have dynamically created controls on page
- Everything works unless I set for some controls .Enabled = false
In such a case stored value for the disabled control is lost (not sent by
MSIE back to server).
But it works for st... more >>
cant see the HTML added to Templated Control in design mode
Posted by Peter Vasko at 11/25/2004 5:03:02 PM
Hi everybody,
I have a web control that has its own designer implemented....everything
works fine, I get the proper values that are stored in the container but I
would like to go even further and its where the problem appears.
Why do I get a grey box when I open my page containing the contro... more >>
Viewstate access
Posted by amr.aljarhi NO[at]SPAM gmail.com at 11/25/2004 6:19:10 AM
I have a webform, with a statically declared usercontrol in it...
the usercontrol is actually a webcontrol ( inherits from class
WebControl)
this control has some child controls created dynamically at the event:
CreateChildControls
obviously this event is fired before the viewstate is loaded, s... more >>
free combobox control
Posted by Dufus at 11/24/2004 10:02:59 PM
Hi,
Does anyone know of a good (free) combobox control?
I have already tried http://www.lostinet.com/en/LWSampleCS/ (problems with
style rendering)
Thanks in advance.
... more >>
Composite Control: LoadPostData() -> postCollection doesn't contain postDataKey
Posted by Ralf Müller at 11/24/2004 4:18:55 PM
Hi all,
I'm trying to implement the interface IPostBackDataHandler in a composite
control in order to raise events depending on changes to the postback data.
The examples on how to implement "LoadPostData" given by the msdn or
different books all the same. They are all based on a custom TextB... more >>
Securing/encrypting sensitive data with clear display in DataGrid
Posted by marc.gibian NO[at]SPAM acm.org at 11/24/2004 3:33:44 PM
I have an application that contains some sensitive data. I am
displaying the table containing this data via a DataGrid, using an
ADO.NET DataSet for the database access. I need to make sure the
sensitive data is not stored in the database in clear-text, yet I need
to provide clear-text display t... more >>
How Do I set enabled to false on all but one web control on a page
Posted by Karen Grube at 11/24/2004 12:35:09 PM
Hi!
What I need to do is loop through all the web controls on a page where
the tabindex is > 6 and set enabled to false.
I've got about 60 controls on a page and would rather not have to set
each one individually. Any suggestions? Here's a snippet of code I found
and tried to mod... more >>
wrap text within cell-not working with data grid
Posted by Paul at 11/24/2004 12:25:04 PM
Hi I have a datagrid and have set a column format as follows
Column 7
header-have the checkbox unchecked for (wrap text within cell)
items-have the checkbox checked for (wrap text with cell)
but when I load the grid with the dataset it is not wrapping the text in the
cell, so the grid is growi... more >>
How to Add CommandEventHandler Dynamically AND CONDITIONALLY!
Posted by haile at 11/24/2004 5:45:04 AM
Hello all.
The body of literature in MS-Press and in this Newsgroup provides numerous
examples as to how to add event handlers dynamically by means of delegates,
namely:
private void Page_Load (o,e)
{
...
btn1.Command += new System.EventHandler(btn1_Command);
...
}
However, t... more >>
java script error on postback
Posted by Cosimo Galasso at 11/24/2004 1:07:02 AM
I get a java script error on Internet Explorer when changing the index of a
drop down list control inside a form.
The error is: __EVENTTARGET is null or is not an object.
The java script code is auto generated by the framework library, and the
error is in the following function:
<script... more >>
Upload control
Posted by Peter Afonin at 11/23/2004 10:01:02 PM
Hello,
I'm looking for a very simple upload control for my ASP.Net application to
let my clients upload the small images to the server. So far I could find on
the web only the sophisticated ones with the progress bars and other things
that I don't need. Could you please recommend me one?
I ... more >>
Sorting a datalist
Posted by Dufus at 11/23/2004 9:36:56 PM
Hi,
I am working with a DataList and am binding objects to it. I normally use
IList or other collections that implement the IEnumerable interface. I have
a datalist that I need to be able to sort on every column. Does anyone have
any ideas on the best way to sort a DataList?
Thanks in... more >>
prevent Upload Large Files .Net
Posted by Kilic Beg at 11/23/2004 9:02:51 PM
Hi,
I want to prevent user to upload files larger than 2MB.
If they try to upload I want to redirect them to a error page (ex: File size
larger than 2 MB )..
right now I get a page break "The page cannot be displayed"
I tried to update the Global.asax.cs file this is the code
protected v... more >>
Datalist: limit the iterations
Posted by SparvHok at 11/23/2004 5:20:32 PM
Hi there.
Just wondering if there is some way to make the Datalist webcontrol,
only iterate a prespecified number of times?
Like setting a property (MaxRows perhaps!?).
--
+======================================================================+
| SparrowHawk The Magician ... more >>
TextBox Can Grow/Shrink?
Posted by Alan Z. Scharf at 11/23/2004 3:59:42 PM
Is there any way to make webform TextBox control have Can Grow/Shrink
behavior like report textbox controls?
Thanks.
Alan
... more >>
How would one make programmatically defined web controls persistant?
Posted by Hal Meyer at 11/23/2004 3:44:30 PM
Greetings. I have created a good number of controls programmatically, but
when I try to retrieve the values of these controls after filling them, and
clicking the "process" button, the controls do no exist. How would I make
the controls (and their values) persist? TIA.
--
Hal Meyer
... more >>
Image on a button
Posted by james.d NO[at]SPAM softworksgroup.com at 11/23/2004 2:13:56 PM
In html I can create a button control that shows an image rather than
text through the use of button tags:
<button><img src="image.jpg"></button>
I want to create the same type of control in ASP.NET. I don't want to
have to specify four different images (onmouseover, onmouseout,
onmousedow... more >>
HtmlInputHidden value set on client not getting to server postback
Posted by Scott at 11/23/2004 10:43:09 AM
I'm having a problem with maintaining a form dirty flag that is shared
between the client and server. I'm trying to use an HtmlInputHidden control
(that is set to "true" on the client when changes are made) to control the
processing on the server when the form is posted back. The trouble is, o... more >>
|