Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net > november 2006 > threads for thursday november 2

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

Set the width of a gridView column
Posted by Samuel Shulman at 11/2/2006 11:46:13 PM
I simply want to set the width of a column in the DataGrid Control Is there any way of doing that? Thank you, Samuel ...more >>


Object Data sources pros and cons
Posted by Annie at 11/2/2006 10:36:38 PM
Hello guys, We are planning for a big project ... and in the warming up stages ... we are trying to develop the applicaiton in n-tier. One of the option is to use the ASP.net object datasource to find BO to Controls. I just want to know the pros and cons of Object Data source control b...more >>

Web hosts...
Posted by Paul Aspinall at 11/2/2006 10:31:11 PM
Hi Has anyone any experience using either of these web hosts?? http://www.re-invent.com/ http://www.webhostforasp.net/ I'm looking for a good package with SQL Server support. Any info appreciated Thanks ...more >>

Displaying variable value in page?
Posted by brett at 11/2/2006 8:57:22 PM
I have assigned a value to a variable defined in a code behind page. I'd like to display a variable named myvar in the aspx page's <meta http-equiv="refresh" content=myvar> tag. If I put myvar there, it surrounds it in quotes. How can I get the value of myvar to render? Thanks, Brett ...more >>

ASP.NET using C# project
Posted by mrajanikrishna NO[at]SPAM gmail.com at 11/2/2006 8:13:36 PM
Hi Friends, I am new to dotNET. I am designing an application which has several modules. Like Sales, Inventory, Purchases, Accounting etc In every program, there is common actions like Inserting data to database, retrieval and update. In classic ASP, I did in each program. Is there a...more >>

Web client receiving "events" from server side.
Posted by Ricardo Vazquez at 11/2/2006 7:39:06 PM
THIS IS MY SCENARIO: - PBX (a private telephone exchange or switch) - A Telephony server running on computer "A" (it communicates with the PBX via IP) - An ASP.NET application (running on computer "A") for web clients of that telephony server (running on computer "B", "C", etc.) THIS ...more >>

menu in a user control
Posted by Boris Twila at 11/2/2006 6:52:51 PM
i can't get to the properties of a menu when it is in a user control what the heck do i need to do? ...more >>

Tables Login
Posted by Silviall at 11/2/2006 6:39:21 PM
Hello, I've developed an application in VB .NET 2005. To login I've used the login view control of ASP .NET 2005. But now I've to install it, and I don't know how could I create the tables to login?. My apologize for my english. Thanks for all, SilviaLl. ...more >>



newbie: configuring template column
Posted by Jeff at 11/2/2006 6:27:18 PM
hey asp.net 2.0 I'm trying to specify a template column for my GridView, but I get a compile error: Validation (XHTML 1.0 Transitional): Element 'itemtemplate' is not supported. <columns> <asp:ButtonField headertext="Occupation" commandname="Occupation" datatextfield="Occupation...more >>

How to create a filepath for ftp downloads
Posted by Parrot at 11/2/2006 6:13:01 PM
I am using WebClient to download a file from a server in my webpage. How can I create a dialog that asks the client for a download path? Now I am just hardcoding a directory path for the following command: myWebClient.DownloadFile(myStringWebResource, fileName); I guess I am looking for ...more >>

Access Request.QueryString in Master Page?
Posted by james at 11/2/2006 6:01:28 PM
Hey Guys, Do you have any idea how to acces Request.QueryString in a MasterPage? I need to use it to modify my sitemap. My code is: public partial class MasterPage : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { SiteMap.SiteMapResolve...more >>

How to make a GridView item label wrap on long text strings?
Posted by Keithb at 11/2/2006 5:48:54 PM
I have a GridView control with two item template columns, each containing a label control. One of the label controls wraps on long text strings, increasing the height of the row. The other one does not wrap. Instead, it makes the label column extremely wide so that it extends outside the brows...more >>

ASP 2.0 Problem with UNC
Posted by Damien \ at 11/2/2006 5:40:46 PM
Hi, I have a little problem with the 2.0 framework. I use a web farm with 2003 server and IIS. I have installed SFU 3.5 to use NFS on windows, it works great with ASP.NET 1.1 and IIS 6.0. So I have tried to install the 2.0 framework to use it and then i get some problem. I have make a small he...more >>

IIS url rewrite
Posted by Justin Kadima at 11/2/2006 4:59:30 PM
Hello all, I'm doing a redirect in Global.aspx's Application_BeginRequest method something like transforming the www.mysite.ro/john in www.mysite.ro/default.aspx?user=john and it works while inside the visual studion 2005 embeded web server But after moving the aplication under a IIS...more >>

Windows authentication with asp.net 2.0
Posted by Coder at 11/2/2006 4:50:09 PM
I am using windows authentication, I noticed that if I am already authenticated on the network, there is no popup asking me to user name and password. I am wondering if there is a way to force to popup to come up, even if the user logged on to the current machine is a valid user. ...more >>

[newbie] combining columns in GridView
Posted by Jeff at 11/2/2006 3:52:17 PM
Hey asp.net 2.0 I'm wondering how 2 columns can be configured to 1 column in GridView This is 2 columns <asp:BoundField HeaderText="IP" DataField="IP" /> <asp:BoundField HeaderText="DNS" DataField="DNS" /> But I want it to become 1 column in the GridView, so I must find away to put t...more >>

AddAttribute
Posted by rn5a NO[at]SPAM rediffmail.com at 11/2/2006 3:00:00 PM
Assume that a custom server control derived from System.Web.UI.WebControls.WebControl encapsulates a Button & a TextBox. The Button & the TextBox controls are added using the CreateChildControls sub like this: Namespace MyNS Public Class MyClass : Inherits WebControl Protected Ov...more >>

ASP .NET Datagrid Post Back
Posted by nschiffelbein NO[at]SPAM gmail.com at 11/2/2006 2:52:05 PM
Hi, I have a datagrid containing about 250 items. I need these items to viewable on a single page for printing purposes as well as viewing purposes. At the same time I need each row to be editable. The problem I'm running into is that when you click the edit button the page posts back to make...more >>

GridView RowUpdating has old values
Posted by slemen at 11/2/2006 2:42:02 PM
The controls (textboxes) in the gridview row being updated have the old, pre user updated values in the RowUpdating event. Does anyone have an idea why? Thank you, Scott...more >>

Gridview Question
Posted by Robert at 11/2/2006 2:21:02 PM
I have a question regarding the gridview. Does the gridview persist the entire datasource in the viewstate? For example my datasource is returning 100 records, but my gridview only displays 10. Are the other 90 records stored in the viewstate? Thanks....more >>

From a webservice tell if you are coming in on a secure port.
Posted by UJ at 11/2/2006 2:20:24 PM
Is there a way to tell when a webservice is called whether it came in through HTTP or HTTPS ? TIA - Jeff. ...more >>

Placeholder and Dynamic controls - help!
Posted by Phuff at 11/2/2006 2:04:27 PM
I need to add controls on a button click. I would prefer to do this in the page load or init functions, however due to the nature of the page I have to add them later on. When I try to enumerate through the place holder's control collection is always at 0. How can I get to the text of these t...more >>

Any alternative to bgsound in ASP.NET 2005?
Posted by tundra999 NO[at]SPAM yahoo.com at 11/2/2006 1:49:24 PM
Is there any multimedia support in ASP.NET 2005? None of my books even mention sound or video, MSDN only mentions some complicated API, and searching these newsgroups only mentions bgsound for playing a sound in ASP. I may just be looking in the wrong places but I find it difficult to believe...more >>

Two Requests acessing the Session collection
Posted by Michael Schwarz at 11/2/2006 1:39:48 PM
Hi, I have a problem where I have two requests (i.e. two different windows that are using the same session) that are accessing the session collection. The requests will need more time on the server, but I get the problem that the two sessions are not getting updated values from each requests. ...more >>

Simple "postback" question.
Posted by Phillip Vong at 11/2/2006 1:27:02 PM
I know how to check IsPostback, but what is the VB code to force a postback? I have a link I want to do a postback with this URL. I've tried using Postback and I've tried using doPostback. Am I missing something? I just want the link to postback to this site. "~/Misc/Forms.aspx?InsertMode...more >>

unexplained postback in content page
Posted by BillE at 11/2/2006 1:10:51 PM
I am using master/content pages, with a treeview in my master page. When the selected node changed event fires in the treeview, I redirect to the requested content page associated with the selected node in the treeview. When this treeview event occurs in the master page, I noticed that the...more >>

Label text formating
Posted by Greg Smith at 11/2/2006 1:05:20 PM
I have a web page with labels to the left of textboxes. Some of the labels seem to "grow right" is size when shown in the browser even though I have aligned the right edges in development mode. Is there any way I can anchor the right edges of the label when shown in a browser? ...more >>

asp.net problem
Posted by MS News Public at 11/2/2006 12:26:33 PM
Hi I have an asp.net 2.0 project and am experiencing a problem. In the project, I am trying to make use of Membership. I have one Role, called "Basic User" and two users - "admin" and "test". "admin" is a member of the Role but "test" is not. I have only a few pages in the project a...more >>

Pass args to a DataSource?
Posted by james at 11/2/2006 11:56:22 AM
Does anyone know how to pass a username/password to a DataSource's Delete method? I only see a way to pass those to the Select method. For instance: <asp:DetailsView DataSourceID="ObjectDataSource1" ... /> <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" ... /> Thanks James ...more >>

Comparing two date times
Posted by Srini at 11/2/2006 11:56:01 AM
Hello, I have two texboxes txtStart and txtEnd. User will pick startdatetime and enddatetime from the calendar picker. The datetime format will always be 11-02-2006 02:30 PM. I am trying to create a custom Validator control to validate few conditions like startdate cannot be less than e...more >>

Master Pages and CSS
Posted by Mikaƫl_PLOUHINEC at 11/2/2006 11:41:22 AM
Hello, I have created a master page with a css. How can I use css in the children pages? The css must be declared in the <head> </head> section. Does I have to import all my css in my master? Is there a way to import only one css for one children page? Thanks a lot. Mike....more >>

SSL and WebServices
Posted by UJ at 11/2/2006 11:36:06 AM
Can WebServices run through SSL ? I realize we have to change the HTTP: to HTTPS: but is that it? TIA - Jeff. ...more >>

Nesting an asp:label control inside of an asp:table
Posted by Guy Noir at 11/2/2006 11:31:30 AM
So, I have a table that I only want to appear after some event has fired. Using the asp:table control and the Visible property, this is a piece of cake. The problem is that when I try and drop a label control or any other asp:control to the table, the designer view gives me the old circle and sl...more >>

uploading files question
Posted by djc at 11/2/2006 11:17:40 AM
I have used the FileUpload web server control to upload a file in a previous project. Now I'm wondering how I can allow a user to select more than one file for upload and upload them at the same time? ...more >>

Nightmare with ASP.NET Menu control: sub-Items open in a wrong place
Posted by Afshar at 11/2/2006 11:03:29 AM
Dear nice people around the world! Please help ending this nightmare, I have 2 problem with ASP.NET Menu control First: I have a horizontal menu at top of my page, each item have some sub-items that sometimes wont open at exact below their parent item. They open 4 cm left of their correct loca...more >>

SiteMapPath: Can I add node the following way?
Posted by shapper at 11/2/2006 10:40:40 AM
Hello, I want to add nodes to Asp.Net 2.0 SiteMapPath in my runtime code. I did as follows: ' Create site map path node collection Dim siteMapPathNodeCollection As SiteMapNodeCollection ' Add node siteMapPathNodeCollection.Add(New SiteMapNode(...)) My problem...more >>

Odd issue with Switch-Case statement in Code behind page.
Posted by Guy Noir at 11/2/2006 10:32:42 AM
Hello again. I'm assuming I'm doing something dumb here.... When I try and add a default: case to my switch statement, I get an error that says "Error 1 Syntax error, '(' expected" and the red squiggly is under the : after the word default. Can anyone see my silly error? Thanks for the extra s...more >>

Help! how to make fields on the fly?
Posted by james at 11/2/2006 10:19:54 AM
I recieve a business object and need to create a form to edit each property. This object is huge (like over 100 properties), and I dont want to make 100 label/textboxes by hand. Does anyone know how to easily generate the form? By properties I mean the business object looks like: public c...more >>

ASP.NET + SQL Server + WebHost - Setup Questions
Posted by Dean Craig at 11/2/2006 9:59:39 AM
I'm getting ready to build my first ASP.NET/SQL Server website that will be hosted on some web host out there (long distance, different network). The work I've done in the past (pre-.NET) was all done on in-house servers. Since this website/web-app will be hosted elsewhere, I wanted to ask so...more >>

missing doctype
Posted by Boris Twila at 11/2/2006 9:41:36 AM
visual studio does not stick in a doc type. How did they overlook this?? ...more >>

upload very large files
Posted by Sandy at 11/2/2006 9:30:02 AM
Hi, Can someone guide me how can I upload very large file say 10 MB using asp.net. What is best way to do it to get best performance considering that there can be 500 concurrent users to the site. Also suggest that while uploading the file, there should not any script time out. I know that we...more >>

DataList not being rendered
Posted by studen771 at 11/2/2006 9:03:02 AM
Thanks in advance to anyone who can help :) I'm fairly new to templated asp.net controls- my dataList is not appearing- its very simple and all of the code is being placed inline via tags. Here's the code: <asp:DataList ID="dtList" runat="server"><HeaderTemplate><table><tr style="backgrou...more >>

How to pass a querystring to a popup window
Posted by rameshk75 NO[at]SPAM gmail.com at 11/2/2006 8:27:57 AM
I have a parent window and popup window. Would like to pass a value stored in a Code behind variable(_strUserId) as a querystring. Below is the code. Dim Popupscript As String Popupscript = "<script language='javascript'> var strReturn; strReturn=window.showModalDialog('RequestPopup.aspx?...more >>

How do I validate a ReadOnly Textbox using the RequiredFieldValida
Posted by Ian at 11/2/2006 7:44:02 AM
I have an ASP.NET 2.0 page with a readonly textbox on it who's value is populated by a popup child window used for selecting from a list. I use a javascript function to pass the data back to the parent using the name of the textbox with the parent form. This all works fine, except when I cli...more >>

singleton pattern
Posted by donet programmer at 11/2/2006 7:37:50 AM
Can somebody comment on the usage of the singleton pattern for maintaining session variables?? Thanks ...more >>

Storing return value of a Stored Proc in a Session
Posted by raghav at 11/2/2006 7:27:24 AM
Hi all I am having a SP which is returning a value......Now I have to store that value in session...I saw some examples in msdn lib ----> string Name=string.Empty; Session["Raghav"]=Name.ToString(); But in my case return value is ID ...and it has not been declared in C# code as Name i...more >>

Database remote access: password
Posted by david at 11/2/2006 7:22:02 AM
I want to write program to remotely accesss to the database in SQL Server under Windows 2000 server. Which password should I use? password for database or password for Windows 2000 server? or something else? When I use the password for my account in 2000 server (it allow me to access to ...more >>

Unable to open webproject...The two need to map to the same server location
Posted by anToNIcHeN at 11/2/2006 7:17:20 AM
Hi All, I am getting this frustating error message when i try to open my project using VS.NET 2003. OS: Windows 2003 Standard Edition with SP2 S.W Installed : VS.NET 2003, VS.NET 2005, Sharepoint Portal Server 2003. In my IIS, I have created a website under port 111. And i have created a ...more >>

Howto to use resources from System.Web?
Posted by dpomt at 11/2/2006 4:53:02 AM
I am using the ContentTemplate to extend the CreateUserWizard's CreateUserWizardStep with additional controls. For the CreateUserWizardStep labels, I would like to keep the automatic localization. With Lutz Roeder's .Net Reflector, I found out that System.Web contains the text resource System...more >>

Get label text when dropdownlist is changed
Posted by staeri NO[at]SPAM gmail.com at 11/2/2006 3:44:04 AM
I have a datagrid containing one TemplateColumn with a label (lblObjectID) and one TemplateColumn with a DropDownList. When the DropDownList is changed I want to capture the value in the TemplateColumn with the label. How can I do that? I'm using the following code: Private Sub ddContract...more >>

Question on Session
Posted by michdoh NO[at]SPAM yahoo.com at 11/2/2006 1:53:08 AM
HI We currently are running an MCMS 2002 web site on windows 2000. dot.net framework 1.1. I'm looking to use the asp.net session to keep a user logged in after authentication. This seems pretty straight forward but I have a couple of general questions about the asp.net session object if any...more >>

Scroll bar in Grid View
Posted by Umeshnath at 11/2/2006 1:27:01 AM
Hi, I have placed a grid view inside Atlas panel. On click of a button event, data is populated in the grid view, I want to add scroll bar instead of increasing the size of grid view. I have written the following code. <div id="Layer1" style="width:350px; height:140px; z-index:1;overflow-y...more >>

.net generic problem
Posted by Jeff at 11/2/2006 1:25:27 AM
Hey asp.net 2.0 The code below throws an "Object reference not set to an instance of an object" exception at the "logitems.Add(item);" line... the "LogItem item" object is successfully created, but it the exception is thrown when trying to put this object on the list... maybe it's becau...more >>

Problems using masterpages in ASP.NET AJAX 1.0 Beta
Posted by RBM007 at 11/2/2006 12:46:58 AM
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same tags and properties are used in a page without a masterpage. Does anyone shares this exprerience wit...more >>

Clientside CheckBox validation
Posted by oakura_ape at 11/2/2006 12:31:42 AM
I have inherited a site that I have ported to ASP.Net 2.0 within the site I have a checkbox in a datalist ItemTemplate as such: <TD width="4%"><INPUT class="rach" id="chk_vid" type="checkbox" name="chk_vid" value="<%#container.dataitem("vid")%>" runat="server"></TD> There is some client side...more >>

strange authentication dialog
Posted by KNC at 11/2/2006 12:25:22 AM
Hi all, I'm developing a website and deployed on webserver, it always display an authentication dialog that user must login with valid Windows user. Would anyone helps to instruct how to prohibit this dialog? Some information provides for you: 1) Dev softs: - VS 2005, ASP.NET ...more >>


DevelopmentNow Blog