all groups > asp.net > october 2006 > threads for thursday october 5
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Panel Controls inside a custom server control in ASP.NET
Posted by Charles Zhang at 10/5/2006 11:34:03 PM
I want to create a simple server control that does thing like:
<Mc:CollapsibleControl TitlePanelID="panel1" BodyPanelID="Panel2">
<asp:Panel ID="panel1">
...
</asp:Panel>
<asp:Panel ID="panel2">
...
</asp:Pane2>
</Mc:CollaspableControl>
I based my custom web serv... more >>
Avoiding Shared Hosting
Posted by Carl Gilbert at 10/5/2006 10:38:41 PM
Hi
I feel as if I'm fighting a loosing battle with shared hosting at the
moment. I have an account with 1&1. For a whopping £16.99 a month I get
6GB of shared Microsoft hosting.
I also get the ability to have as many domains as I like, 5 web applications
and large SQL databases.
I'm c... more >>
Cusotm Image button and themes
Posted by CK at 10/5/2006 10:31:17 PM
Hello All,
I am trying to extend the default asp:ImageButton to include an image for an
enabled state and a second image for a disabled state. I currently did this
by extending the ImageButton class in a custom control, creating a property
for each of these images (EnabledImageUrl, DisabledI... more >>
Calendar control issue
Posted by raghav at 10/5/2006 10:30:12 PM
Hi Friends
I am having very small issue. I am using calendar control which is
available in .net 2005 to display date. When a user clicks on image
button, calendar is opening very well. He selects a date and date is
very well dropped in text box and inserted in DB. But if user is
clicking on ima... more >>
Default value in textbox EditItemTemplate
Posted by James at 10/5/2006 10:26:01 PM
Hi all.
I'm struggling a bit with this so any help appreciated. (Framework 2.0,
VB.net )
I have a text box within an EditItemTemplate, the value of which is
bound to my GridView's datasource.
When there is no date value, I want to be able to supply the current
date as a default if the us... more >>
urgent - IE 6 display problem
Posted by Saso Zagoranski at 10/5/2006 9:47:24 PM
Hi group,
This probably isn't the right newsgroup to post this but I'm in a real
hurry...
(please direct me to the correct newsgroup if I'm "miss-posting")
Could you please look at the following website:
http://www.spletna-galerija.net/Gallery.aspx and tell me why the overflow in
IE 6?
... more >>
Populate TextBox With DB Records
Posted by rn5a NO[at]SPAM rediffmail.com at 10/5/2006 9:23:28 PM
This function in a VB class file takes UserID as a parameter & returns
a SqlDataReader to the calling function which exists in a ASPX page:
Namespace NConnect
Public Class Cart
Private sqlConn As New SqlConnection(".....")
Public Function GetAddress(ByVal UserID As Integer... more >>
rendering HTMLTable control containing ASP .Net form elements into string
Posted by Aur_Ros at 10/5/2006 9:15:20 PM
I am trying to get a string that contains the HTML code generated for a
table control, Need help, examples about how to use render method and
string builder, Thanks !!!
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
good boook on software design
Posted by dotnet dude at 10/5/2006 8:17:20 PM
What boook do you guys recommend for somebody with the software
development backgroud who wants to get started from scratch with the
designing of good sofware application. I am interested in understanding
how the logical and physical design of a software is prepared. Details
about the design pat... more >>
Label In Between RadioButtonList
Posted by rn5a NO[at]SPAM rediffmail.com at 10/5/2006 8:11:32 PM
A ASPX page has a RadioButtonList with 2 ListItems - 'Yes' & 'No'
<form runat="server">
<asp:RadioButtonList ID="rdlAdd" OnSelectedIndexChanged="ShowHide"
AutoPostBack="true" runat="server">
<asp:ListItem Value="yes">Yes</asp:ListItem>
<asp:ListItem Value="no">No</asp:ListItem>
</asp:RadioBu... more >>
Using Atlas on existing application
Posted by Robert Scheer at 10/5/2006 8:02:48 PM
Hi.
I think I have some conceptual questions here. I have an asp.net web
application up and running and now I intend to use Atlas on some of my
pages. I have read that after installing Atlas, I need to create a
specific Atlas project. But what I need is to just adapt Atlas on
existing pages, ... more >>
HyperLink Field Problem
Posted by shapper at 10/5/2006 6:46:41 PM
Hello,
In my GridView I have a HyperLink Field where I set the
DataNavigateUrlFormaString
MyHyperLinkField.DataNavigateUrlFormatString =
"~\RSS.ashx?Channel={0}&Culture=" &
System.Threading.Thread.CurrentThread.CurrentCulture.ToString()
I believe {0} retrieves the value of my datasourc... more >>
MasterPage menu tutorial ????
Posted by Randy Smith at 10/5/2006 5:58:49 PM
Hi,
Does anyone know of a good tutorial that will help me make nice looking
menu's for use within ASP 2.0 MasterPages?
TIA, Randy Smith
rsmith@cta.org
... more >>
ASP 2.0 MasterPage with menu, menu appearing below content page
Posted by Randy Smith at 10/5/2006 5:53:58 PM
Hi All,
I'm having trouble finding a solution to this problem with ASP 2.0. I'm
using MasterPages with a menu, and if the number of elements inside a level
within the menu is too long, the entries will appear UNDER the content page.
So, is there a property that I can set that will keep all ... more >>
Membership Class
Posted by Samuel Shulman at 10/5/2006 5:17:45 PM
Hi all
Once the Membership class is implemented how is it possible to relate
information in the general database to these users
For example, a new user registered then they need to add their despatch
address how can I relate between the 2 records?
Thank you,
Samuel
... more >>
how can i create a web Textbox control
Posted by Kiran at 10/5/2006 5:11:16 PM
Hi,
I want to write a code for web custom control for textbox ,in the
asp.net ,.I dont know how to write a code .PLease let me know abt this
textbox(properties,methods)& coding.And finally I want this created web
custom control(textbox),to be used in another applications.
Regards
k... more >>
Login Control doesn't look good
Posted by AmitKu at 10/5/2006 4:54:02 PM
Okay this may be a lame question, but is there a way for me to play
around with the login control layout? Just messing around with the
properties doesn't allow me to get a good looking login control. The
login button sticks out like a sore thumb on the bottom right.
I'd rather hvae it be to ... more >>
XmlTextReader & CNN RSS Feed
Posted by sck10 at 10/5/2006 4:33:06 PM
Hello,
I am using the following to get RSS Feeds. I've been able to get the xml
files from every site except CNN. When I try to get there feed, I get the
exception:
A column named 'link' already belongs to this DataTable: cannot set a nested
table name to the same name.
Any help wit... more >>
Unable To Cast
Posted by rn5a NO[at]SPAM rediffmail.com at 10/5/2006 4:32:25 PM
Suppose I have this property in a user control (which is named
Address.ascx):
<script runat="server">
Public Property Caption() As Object
Get
Caption = lblCaption.Text
End Get
Set(ByVal value As Object)
lblCaption.Text = value
En... more >>
Reference controls
Posted by sck10 at 10/5/2006 4:26:10 PM
Hello,
How do you reference a label inside a repeater? I tried the following and
got the error:
Object reference not set to an instance of an object.
((Label)this.rptRSS.FindControl("lblRSSFeed")).Text = "My Value";
<asp:Repeater id="rptRSS" runat="server">
<HeaderTemplate>
<table... more >>
Calling Javascript
Posted by srini.venkatesan NO[at]SPAM gmail.com at 10/5/2006 3:40:53 PM
I am trying to call a javascript from Datagrid which is using
OnUpdatecommand, I dont see update being invoked, what am I missing, Is
it the right way to call. I have just cut and pasted only the part of
the code. Thanks
In the class file:
public void DataGrid2_Edit(Object sender, DataGridCom... more >>
Problem with ASP.NET Session in SQL Server and Connection Pooling
Posted by RyoSaeba at 10/5/2006 3:17:06 PM
Hello,
I have a problem with the session state set to Sql Server (AspNet 1.1,
Windows Server 2003 on an Application Center cluster, Sql Server 2000
on another server).
Sometimes, when many user are using the application, we got this
error:
"System.Web.HttpException: Unable to connect to SQL S... more >>
Visual Studio 2005 html-view does not recognize the generated html-tag of a custom control
Posted by Rolf Welskes at 10/5/2006 3:05:05 PM
Hello,
this is a hint only.
If you make a custom control for example witch generates code
<div> ......</div>
and I put such a control in a page
then in html-view of the aspx-file
I could write
<p>
<c01:MyControl/>
</p>
generated I have:
<p><div>.....</div></p>
this is bad be... more >>
trick or treat
Posted by rodchar at 10/5/2006 3:00:02 PM
hey all,
anybody have any neat ways to handle control state on a web page? for
example i have a lot of buttons on my page that i have to constantly enable
and disable on postback but it gets kinda confusing if i'm not careful.
any ideas?
thanks,
rodchar... more >>
Interesting question
Posted by Diffident at 10/5/2006 2:41:03 PM
Hi All,
Can anyone explain me why when I convert a null object to an 32-bit integer
the result is zero?
Convert.ToInt32(null) = 0?
Thanks!!... more >>
Newbie Question About Using configSource in web.config
Posted by jdp at 10/5/2006 2:40:39 PM
I'm able to use the configSource property of the <connectionStrings>
element and all is well. As an experiment, I also set configSource on
the <profile>, <membership>, <roleManager>, and <sessionState>
elements to point to respective config files. Again all seems to work
well. However; I not... more >>
Object reference not set to an instance of an object
Posted by Jon Delano at 10/5/2006 1:36:58 PM
Hello all
This is normally an easy error to fix.
The creation of the object was done correclty.
I have an object that I am using and have been using. Suddenly yesterday I
get this error using it.
I have inregistered the DLL deleted the DLL and copied it from the source
and then re-regist... more >>
Decode QueryString and redirect to new form
Posted by Nirmal Singh at 10/5/2006 1:30:41 PM
I am a newbie trying to learn ASP.net 2.0.
I want to retrieve the QueryString and process it to produce some
parameters.
I then want to redirect the user to another page, passing these parameters,
but not as a querystring.
Any help would be gratefully received.
Nirmal Singh
... more >>
SQL Server Standard edition connection problem
Posted by Marty at 10/5/2006 1:13:58 PM
Just starting to learn this and that could be my problem.
I am using VS 2005, SQL Server Standard
In the server explorer I can see and test my database connection and it
works.
I am trying a sample from ASP.NET 2.0 and I get this error:
An error has occurred while establishing a connection to t... more >>
Get inner html of an HTML element from codebehind file
Posted by eggie5 NO[at]SPAM gmail.com at 10/5/2006 1:10:36 PM
So, I'm in my code behind file (Page_Load to be exact) and I need to
get the HTML generated by my repeater and save it to a string? How can
I do this, is the HTML even generated at Page_Load time, or do I need
to wait? If so, just tell me to what event, and then how I can get that
HTML to a stri... more >>
***Unable To Start Default Web Site
Posted by emann22 at 10/5/2006 1:07:43 PM
I installed IIS on my local machine. Upon hitting Run > MMC> OK> Right
clicking on Default Web Site (stopped) requesting a start, I receive and
"the service did not respond to the start or control request in a timely
fashion" How can I start the default web site?
Eric
... more >>
get HTML code of table created dynamically
Posted by Aur_Ros at 10/5/2006 1:06:58 PM
I create a table dynamically using VB, How do I get HTML code for
that table into a string variable ??? any sugestion, Thanks!!!
... more >>
embed HTML table using VB
Posted by Aur_Ros at 10/5/2006 1:06:06 PM
I am showing a table in a web page, I need help to email this table,
please any sugestion ....? thanks!!
... more >>
using a User Control
Posted by SAL at 10/5/2006 12:54:02 PM
Hello,
I created a WebPage.aspx that has some functions in it, and I created a User
Control that has a File Field Control and a Botton control on the .ascx. I
added myUserControl.ascx to the WebPage.aspx, but it can not access the
WebPage.aspx functions.
If I add a button to the WebPage... more >>
User Authentication between two websites
Posted by shil at 10/5/2006 12:41:40 PM
Hi,
Is there any possibility to authenticate an user between two websites?
I have a website through which users login and get authenticated. In
the same website I link to a different website and would like to pass
userid to the second website. My question is I want to restrict users
from goin... more >>
ASP.NET 1.1: How to dynamically create data entry form?
Posted by Gino Perruti at 10/5/2006 12:06:17 PM
I am converting an old ASP data entry form to ASP.NET 1.1. The old form has
a script block that dynamically adds rows to a table that contain cells with
a textbox for quantity, product description, price, and total (which is
calculated after the form is submitted). The number of rows depends... more >>
GridView Paging + Atlas
Posted by Slavan at 10/5/2006 11:57:12 AM
Hello everyone,
I have a gridView on my page that I bind to a dataTable in my code
behind. I know that when I do that I need to implement
pageIndexChanging event for paging functionality to work. I did that
and it works fine. But, the problem is that I use atlas control
updatePanel on my page, ... more >>
An OleDbParameter with ParameterName '@ID' is not contained by this OleDbParameterCollection problem
Posted by DC at 10/5/2006 11:55:27 AM
The Code
<%@ import namespace="System" %>
<%@ import namespace="System.Web" %>
<%@ import namespace="System.Web.UI" %>
<%@ import namespace="System.Web.UI.HtmlControls" %>
<%@ import namespace="System.Web.UI.WebControls" %>
<%@ import namespace="System.Data" %>
<%@ import namespace="System.... more >>
Preserving variable data during postback
Posted by Dahab at 10/5/2006 10:58:30 AM
Hi,
What is the best way to preserve variable data during postback?
Using hidden server controls is a way, but there has to be something better.
Thanks
D.
... more >>
Event fires repeatedly
Posted by Drex10 at 10/5/2006 10:42:21 AM
I have an event that occurs within a user control. The event is for a
dropdownlist within the user control which fires when the selected item
changes. This user control is created dynamicaly inside another user
control. There are other user controls created within the same
container control, ... more >>
Local maps
Posted by QDL at 10/5/2006 10:41:57 AM
Hello,
Does anybody know any good component/library to display maps from a local
source using ASPNET.
I'd like to have a "local" google-maps. Our app would display maps (with
zoom, pan, markers...) but loading the map data from our local server. This
would be used to generate maps of pre... more >>
Importing excel file data from user's computer
Posted by Miguel Ramirez at 10/5/2006 10:41:36 AM
Hello all,
Is there any way to import an excel file data from user's computer?
I want to read all records in the excel file and write the data in a SQL
server table.
Any help will be really appreciated.
Thanks.
... more >>
Displaying a hierarchical folder / file structure
Posted by Mark Rae at 10/5/2006 10:30:48 AM
Hi,
Just looking for some advice and/or recommendations here.
Scenario is corporate private intranet, ASP.NET 2 on Win2K3S, SQL Server
2005, WinXP + IE6 on all client desktops.
Client has a folder structure on a separate file server (which the IIS box
can see) containing many corporate ... more >>
Class MailMessage: reference a CSS in a newsletter
Posted by Michel Couche at 10/5/2006 10:29:43 AM
Hello,
I am starting the development of a newsletter
The use of the class MailMessage of System.Net.Mail is quite =
straightforward for usual contact forms but my question here is "How can =
I reference a CSS file in the header of my newsletter message ?"
Here is where I am ....
(1) I fo... more >>
an IE window with no minimize and close buttons
Posted by Linda at 10/5/2006 10:28:02 AM
My environment is Windows Server 2003, .NET Visual Studio Academic 2003,
ASP.NET. I need to create a page with no top title bar, no mimize button, no
maximize button, no close button. It is for a student exam system. I don't
want students to be able to copy from other windows. I have put a ... more >>
My own AX DLL
Posted by Guy Cohen at 10/5/2006 10:16:33 AM
Hi all
I created my own ActiveX DLL
How do I use it in ASP.NET?
I know how to use it in ASP but not .NET :(
TIA
Guy
... more >>
Changing controls at runtime
Posted by tfsimes NO[at]SPAM gmail.com at 10/5/2006 10:03:48 AM
Hi, I am a long time ASP developer learning .NET, so please bear with
me. I am trying to find an article or such that will help me understand
how to change control properties at runtime based on the value in a
field.
For instance, if I want to add some text to a field in a GridView based
on a... more >>
Membership Database - Account Expiration
Posted by netsecsvc at 10/5/2006 9:51:02 AM
I have a customer who would like to set an expiration date on user accounts
to 30 days. I'm using Asp.net 2.0 (VS 2005) with the default membership
database and forms authentication.
How do I query the membership database? I see a createdate field that I
believe is what I want, but I'm ju... more >>
Performing issues
Posted by Bruno Alexandre at 10/5/2006 9:28:33 AM
Hi guys,
What is faster to IIS, a Code Behind file or a In Code aspx file?
When we call for a Class like dim f as new MyClass if it's a big class,
will it take longer to run? or the IIS only access the funcions that we call
inside the class when we call it?
Thanks
--
Bruno Ale... more >>
Read Client Environment Variable
Posted by B N at 10/5/2006 9:25:55 AM
A quick question:
How do I read client side environment variables using ASP.NET ?
What I want to do is:
1. users open a webpage
2. the page should collect all the information eg login name, domain,
Windows version etc
3. store the information in database.
I will be glad if anyone can... more >>
Specified cast is not valid error
Posted by .Net Sports at 10/5/2006 8:48:41 AM
I have a datagrid script where I modify data in an sql dbase in
asp.net, when i hit the "update" button, I get a Specified cast is not
valid error on my 'descript' declaration, whereas 'descript' is a
multiline text box and a varchar datatype (everything else is either a
char or a datetime datat... more >>
ASP / XML Reading / Error message
Posted by Rob Meade at 10/5/2006 8:46:30 AM
Dear all,
We recently lost our main production server to a RAID failure, as such we've
had to rebuild a new server, we've tried to as much as possible (difficult
without a build plan!) rebuild the new server to the same spec as the
previous one.
I have an ASP page however which is now er... more >>
Potentially dangerous Request.Form value for Cancel button Click
Posted by Sergey Zuyev at 10/5/2006 8:30:02 AM
Hello all
I have simple edit form. When user saves data that contains restricted
characters such as (< > , etc.) , regular expression validator will display
a warning message. It all works fine, but if users decides to exit the form
using Cancel button then error occurs: A potentially danger... more >>
Url Rewriting Using a Custom 404 ASPX Page
Posted by Greg Collins [Microsoft MVP] at 10/5/2006 7:33:23 AM
I have done a bit of research of Url Rewriting, but as yet have been =
unsuccessful at getting it to work well, and there are issues around =
what file types are supported and how much code you want to write.
While working on a similar, though partially unrelated, issue, I came =
across a poss... more >>
Master pages with diff style sheets
Posted by Neil Steventon at 10/5/2006 7:21:02 AM
Hi ,
I puzzled on how to layout my website. I have a master page with a style
sheet defined in the top. Then I have the various pages using this master
page, I would however for cetain pages either add or use a different style
sheet , whats the best wayto achive this.
Thanks
Neil... more >>
Download file, browser is filled with funny characters.
Posted by msxkim NO[at]SPAM yahoo.com at 10/5/2006 6:59:59 AM
My web app writes some binary data to a file at the client site via
Response.BinaryWrite. This action is accomplished
in response to a button click, with C# code behind as follows:
private void SubmitButton_Click (object sender, System.EventArgs e)
{
// Set up the response to write the pri... more >>
how to position a RadioButtonList after a TextBox
Posted by bjornvdneut NO[at]SPAM gmail.com at 10/5/2006 6:57:59 AM
Hello,
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Text="test"></asp:ListItem>
<asp:ListItem Text="boe"></asp:ListItem>
</asp:RadioButtonList>
How do I get the radiobuttton's after the textbox? It k... more >>
Closing IDataReader
Posted by ×™×•× ×™ גולדברג at 10/5/2006 6:49:02 AM
Hi,
In few places within my code
the business object pass IDataReader to the GUI.
Suddenly i noticed that nowhere in the code the IDataReader
is being closed.
Does the data binding operation closes the IDataReader?
If i didn't close it explicitly, the IDataReader remains open untill GC will
... more >>
Run asp.net 2.0 and 1.1 on IIS 5.0
Posted by KBSanjeev at 10/5/2006 5:51:02 AM
Hi,
I have Win2k Pro with SP3+. This system had VS.net 2003 installed on it.
Recently i installed Vs.net 20005 Professional on it. The installation was
successful and i am able to create and execute Windows applications.
But when i try to create and run websites, nothing happens. the brow... more >>
How sort dataset with Sql Union in it?
Posted by needin4mation NO[at]SPAM gmail.com at 10/5/2006 5:49:08 AM
Hi, I have a select that uses union. The gridview populates fine with
the two tables' returned data. But now I want to sort the resulting
dataset as if it were one set of data, since I know of no way to use
order by for both on my original SQL statement. If I use sort that
comes with the grid... more >>
Display "waiting" pages while long running operations complete
Posted by Jono at 10/5/2006 5:30:30 AM
Hi Everyone,
As it says in the title, I'm looking for a way to display a page while
long running operations are performed on the server. Ideally, I'd like
some way to push the current request onto some stack, where it would
continue to be processed asynchronously (most importantly preserving
... more >>
Converting Date Time Format
Posted by Alok yadav at 10/5/2006 4:48:02 AM
i am using a webservice in which a method is serach. i use this method
which accept a argument of date type in dd/MM/yyyy formate. i have a
textbox which accept the date from the user, when i convert textbox data
into Datatime formate it converted into MM/dd/yyyy formate, but i have a
requir... more >>
help needed on ObjectDataSource control
Posted by Manjunath at 10/5/2006 4:10:02 AM
HI,
How to catch custom exception using ObjectDataSource Control.
I am calling Business Layer method through ObjectDataSource control, when
Business layer method throws exception which will be wrapped to custom
exception and thrown. I want to capture the custom exception in UI Layer.
... more >>
Implementing MaxLength for asp textbox
Posted by Not Me at 10/5/2006 4:03:43 AM
Hi there,
There are hundreds of messages with different solutions on how to limit
the number of characters for a text box in ASP.net, none of which I can
get to work!!
I do lie, because using asp validators I can get a quick solution, but
I'd rather prevent the user from entering the charac... more >>
Odbc parameter error
Posted by Santosh at 10/5/2006 3:24:11 AM
Hii all i have written following code for inserting records into
database but it gives me an error espected parameter @NewsTitle which
is not supplied.
OdbcConnection conn = new OdbcConnection();
protected System.Web.UI.WebControls.Button Button1;
OdbcCommand cmd =new OdbcCommand ();
... more >>
Themes do not work with customer-controls in VS-Designer
Posted by Rolf Welskes at 10/5/2006 2:40:06 AM
Hello,
as example I have a simple customerCtrl
class MyCtrl : WebControl
{
//one own color-property
public Color MyBkColor
{
......
}
here rendering to see the bkcolor
}
Now if I set the property MyBkColor I also see in the VSDesigner that the ... more >>
Performance tweak
Posted by Jon at 10/5/2006 2:31:02 AM
Hello all,
I've been doing some performance analysis on our app, and I've discovered
that the below code is quite a bottle neck:
this.OnFillParameters(selectCommand);
SqlDataAdapter selectAdapter = new SqlDataAdapter(selectCommand);
try
{
selectAdapter.Fill(resultsDataSet);
......
... more >>
CustomControls inherented from CompositeControl allways have as tag span - how to change this
Posted by Rolf Welskes at 10/5/2006 12:58:23 AM
Hello,
When developing Customcontrols which have other controls it seems be good
practice to inherent from CompositeControl.
But other as at WebControl I am not able to set the tag of the control. It's
allways span.
If you now build such a control - as also in an example from the msnd - w... more >>
How to apply Captcha image correctly
Posted by Varangian at 10/5/2006 12:56:22 AM
Hi
I have another question about Captcha.... how should I apply a Captcha
Image on a Web Form correctlly?
Say I have an ASP.NET WebSite.. where should I make the code validity
check?. Should I do it on the Page_Load event or on each click or Event
where I wish to validate that particular?
... more >>
|