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 > august 2006 > threads for tuesday august 1

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

What is the advantage of Skin over CSS
Posted by kai at 8/1/2006 10:34:44 PM
Hi, What is advantage of Skin over CSS? They both control the appearance of WebControls, and CSS also controls HTML controls. Please help Kai ...more >>

RadioButton in a GridView
Posted by Merichel at 8/1/2006 10:30:57 PM
Hi everybody, I would like to have a gridview with a radiobutton column in order to select just a row and do some task. I added a templatefield but when I run the application, it let me select all rows, but what I want is select only one. How can I do that? I mean, I want the radiobutton colu...more >>

OnChange
Posted by Peter at 8/1/2006 10:08:52 PM
Does anyone know how to trap SelectedIndexChanged event on the client side for the following control? http://www.metabuilders.com/Tools/ComboBox.aspx I have tried MyComboBox.Attributes.Add("OnChange", "return IndexChanged();"); but OnChange event never fires Thanks Peter ...more >>

Help executing an IF TEST within MASTERPAGE, please
Posted by simon at 8/1/2006 9:50:02 PM
Hello, I'm helping write a .net app, we are using VS2005 and asp/vb.net for code we are using the "masterPage.master" technique, within the masterpage we have an asp:contentplaceholder that is the place holder for the main portion of the body of the site my question is, is there a way to tes...more >>

Validation (XHTML 1.0 Transitional): Attribute 'leftmargin' is not a valid attribute of element 'body'.
Posted by anonymous at 8/1/2006 9:21:13 PM
Hello I am developing something along with my friends and when I load their asp pages I am getting this error Anybody has any idea why is the XHTML validation failing Thanks in Advance -Newbie ...more >>

Hyperlink is going to wrong place
Posted by amchimam at 8/1/2006 9:03:31 PM
My asp.net code is: <asp:hyperlink id=hyperlink1 runat="server" NavigateUrl='<%# "../dafault.aspx? Dp=" & databinder.eval(container.dataitem, "dp")....................</asp: hyperlink> and I have 5 computers, three of them go to it suppose be www.mysite.com/host/default.aspx? Dp=... anothe...more >>

how to edit aspx documents
Posted by Reg at 8/1/2006 7:21:13 PM
I know I have done this before in Visual Studio 2003. How do you edit an aspx document, such as making a font change, and preview it? Thank you. ...more >>

Datalist pagination - How?
Posted by VB Programmer at 8/1/2006 6:21:43 PM
I am using a datalist on an ASP.NET 2.0 website. Any idea (or code examples) how I can use pagination on a datalist? Thanks! ...more >>



Databinding timestamp
Posted by Martin at 8/1/2006 4:58:55 PM
Hi, Simple question: I have a SqlDataSource control that returns a tmiestamp column. This is fed into a FormView control, which represents my time stamp as the string "System.Byte[]" I would expect to represent the timestamp as a base64 string. Where can I convert between my base 64...more >>

label control in asp
Posted by Seema Multani at 8/1/2006 4:46:09 PM
I have two label controls inm asp.net 2.0 and I am using vS 2005. I want this control's text as <-- or --> How Cqan I do that. ...more >>

file system problems
Posted by Jack Fox at 8/1/2006 4:40:02 PM
We are encountering a couple of problems with our ASP.NET / IIS 6.0 applications: In each of 3 production environments we maintain a Windows Server 2003 machine running NTFS as a file server. The file server typically has 10s of thousands of files on it. We've nver bothered to count, but I ...more >>

GridView / FormView binding question
Posted by Bob at 8/1/2006 3:39:22 PM
Hi All: I have a GridView with several pages and a FormView linked via a ControlParameter. The FormView populates correctly when the user makes a selection from the first page of the grid. However, when the user goes to the next page of the grid, the ControlParameter is passing in a null (or ...more >>

random FileIOPermission error
Posted by Nalaka at 8/1/2006 2:40:16 PM
Hi, I get the following error at times... I do not read or write to files. I do query sql server. This error does not happen all the time either..... Have you seen this before.... any help is very much appreciated.. as I have spent a lot of time looking for a fix. mscorlib <br>Message: ...more >>

Error using TransmitFile() with asp.net 2.0 on windows xp
Posted by MatsL NO[at]SPAM newsgroups.nospam at 8/1/2006 2:01:39 PM
Hi, I'm having a problem sending a file using TransmitFile(). The code works perfectly using WriteFile() so I'm a little confused. Does TransmitFile() have any other prerequisites than WriteFile()? Here's a short snippet of the code I use that doesn't work: protected void Page_Load(...more >>

asp.net windows authentication - login / password prompt
Posted by jdstroud NO[at]SPAM hotmail.com at 8/1/2006 1:25:53 PM
I have an asp.net application on our intranet, and I am trying to use windows authentication. My problem is that I would like to get the user's credentials without having the login / password box pop up when you go to the page. I'm currently logged into the domain, and I when I go to the web...more >>

What is the difference?
Posted by odwrotnie at 8/1/2006 1:04:49 PM
Hi, what is the difference between Response.Redirect("Stop.aspx"); and Server.Transfer("Stop.aspx"); ? -- Best regards, Odwrotnie....more >>

Wizard Control
Posted by Hugo Mind at 8/1/2006 12:44:17 PM
Hi, I've used a Wizard and have added a Gridview in STEP 1, but I'm unable to access it. mygrid always returns null :( ? Any ideas ? protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { GridView mygrid = (GridView)Wizard1.FindControl("GridView1"); } ...more >>

Asynchronous Logins
Posted by Simon Gorski at 8/1/2006 12:27:32 PM
I have a large problem, and I believe there is not yet a way to solve this using IIS and ASP.NET. I hope someone has a solution which we couldn't find. The current situation When a user logs in to our website, we implement a single login for multiple services (let's call them services A-D...more >>

ScriptTimeout
Posted by simonZ at 8/1/2006 12:21:02 PM
Page.Server.ScriptTimeout =10000 No matter If I set Server.ScriptTimeout to larger values in code behind on page_load event, page is always executed in 90 seconds.? I don't have pool setted to recycle or something similar. Also I included the following line in web.config: <httpRuntime ex...more >>

INPUT Type="FILE" - Just want to get the file name and path as string
Posted by kevin NO[at]SPAM webpageconcepts.com at 8/1/2006 12:18:32 PM
Hi, I am trying to create a page so the user can browse the network, select a file and have that file name (text) inserted into our sql DB so I can build the hyperlink path later on. Here's what seems to be the problem. These are video files and are enormous with long crazy names so trying to...more >>

Text in textbox enables button.
Posted by hledman NO[at]SPAM gmail.com at 8/1/2006 12:13:15 PM
Hello beginner here. I've been researching for awhile to find a way to enable a button when text is entered into a textbox (client side). I working with asp.net 2.0 C#. I've been trying to figure this out through javascript or someone told me to research Page.RegisterClientScriptBlock Method, ...more >>

ASP .Net CMS Examples?
Posted by JJ at 8/1/2006 11:42:23 AM
I want to write my own CMS (or use an opensource one), which is based on ASP.net without having to choose from the PHP based ones out there. Is there any examples, software or advice you may have for me? Thanks, JJ ...more >>

Enable/disable all controls on a web page
Posted by disaia NO[at]SPAM earthlink.net at 8/1/2006 11:17:21 AM
I saw the C# solution: for each Control c in Page.Controls if c is WebControl --> ((WebControl)c).Enabled = False / true / variable But could figure out the VB syntax. The closest I got was this: Dim ctl As Control For Each ctl In Page.Controls if ty...more >>

HtmlControls.HtmlInputFile and WebControls.Button click event
Posted by bcumminsr NO[at]SPAM yahoo.com at 8/1/2006 10:46:14 AM
Hi, I have a input="type" control and two WebControls.Buttons that do not respond to click events if I type into the file input box a network path and file. I have a break set on the click event and it doesn't even enter the code. If I use the browse button on the input file control to select t...more >>

Cookie Basics
Posted by Greg Smith at 8/1/2006 10:37:28 AM
I am learning to create cookies. When I do something like this: Response.Cookies["Username"].Value = "fred"; Response.Cookies["Username"].Expires = DateTime.Now.AddYears(30); I get a cookie with the name of the host in it, i.e.. greg@localhost or greg@myServerDNS. I would like to...more >>

How to use the new "Bind()" ?
Posted by Ganesh Muthuvelu at 8/1/2006 9:24:02 AM
Hello, I am trying to use the new "Bind" instead of "DataBinder.Eval" but cannot see a way to use it in code. Can someone help?. Here is my code that is using "DataBinder.Eval" which I want to change to "Bind" method. Sub BindStringColumn(ByVal sender As Object, ByVal e As EventArgs) ...more >>

<asp:label> reverting to initial value
Posted by mark.norgate NO[at]SPAM gmail.com at 8/1/2006 9:10:10 AM
Why oh why does my <asp:label> revert to its initial value, having been changed programmatically, when I click a button in a user control I have added dynamically to the page? It's EnableViewState is set to true. Mark ...more >>

System.EventHandler created but event not fired
Posted by lauralucas NO[at]SPAM gmail.com at 8/1/2006 9:08:15 AM
I'm having this exact same problem: http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/tree/browse_frm/thread/731f784a74246dd0/5d072e420a5a96ea?rnum=1&_done=%2Fgroup%2Fmicrosoft.public.dotnet.framework.aspnet%2Fbrowse_frm%2Fthread%2F731f784a74246dd0%2F5d072e420a5a96ea%3F#doc_...more >>

need diagnosis: problem loading assemblies
Posted by kenfine NO[at]SPAM nospam.nospam at 8/1/2006 9:08:12 AM
I have made a web application that is giving me an error in loading assemblies. It reports file not found (error message below). I know I have the .dll in the .bin directory for the application.: Parser Error Description: An error occurred during the parsing of a resource required to servi...more >>

Got error CS0433 for Crystal Report on Windows 2000 Server
Posted by lodatokab at 8/1/2006 8:06:02 AM
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on Windows 2000 Server I got the following error: Compiler Error Message: CS0433: The type 'Crysta...more >>

How to handle images on ASP.NET?
Posted by Artificer at 8/1/2006 7:52:55 AM
How can I write and read images to a SQL Server Database from an ASP.NET application? ...more >>

Urgent - Spell Check Without Microsoft Word
Posted by dinoo at 8/1/2006 7:49:02 AM
I would appreciate if some one can help me out. We are using Microsoft Word's spell check functionality in one of our web pages based on the requirement. We are using Microsoft PIA assemblies to interact with Word. The problem is we can not install Word on Web Server. I woud prefer not to go...more >>

Adding controls at runtime
Posted by cashdeskmac at 8/1/2006 7:43:02 AM
I have created a Datagrid in code, added it to the Controls collection and set it's DataSource. All works fine. I try the same thing with a button (create an instance, add it to the controls collection), it doesn't want to know. I just get an error stating: "Control '_ctl1' of type 'But...more >>

Dynamically added Checkbox in Gridview
Posted by Bill44077 at 8/1/2006 7:39:02 AM
I am dynamically adding a checkbox in a gridview and I find there are several things that I cannot figure out how to address. 1. The width of the checkbox column is very wide. I've tried adding properties and Item Style to the column but it has no effect. Is there someway to size this colum...more >>

TreeView - disabling hyperlink on the leaf node
Posted by mazdotnet at 8/1/2006 6:53:33 AM
Hi, I'm using the asp:TreeView component of asp.net 2.0 and my tree is structure is Root -- Parent 1 --------- Leaf 1 --------- Leaf 2 However, Leaf 1 and Leaf 2 both appear to be as hyperlinks (fire an event). How can I disable the hyperlink property of Leaf 1 and Leaf 2 so that it o...more >>

Crystal Report printing question
Posted by Ralf at 8/1/2006 6:22:05 AM
I am trying to get the reports to print in landscape mode. The customer does not want to change his setting to be landscape mode all the time, he want the code to do it. From what I have read, there seems to be a bug. So, I see there is a way around the bug by coding in the landscape orientat...more >>

asp.net 1.1 help need
Posted by amjad at 8/1/2006 6:09:02 AM
Hi i have asp.net 1.1 application in which i simulated tab control becuase in asp.net their is no multi page control like in asp.net 2.0 has. every thing is working perfect except when i try to click save button on tab 2. it return control to tab1 which is by default ... i am just switchin...more >>

Find All Labels On Form
Posted by Jim Heavey at 8/1/2006 5:59:18 AM
I am trying to write some code which will find all of the "Label" controls on the form and change some property. I started off by iterating over the Page.Controls and looking the the type of each control to see if it is a label. This does not do the trick. I am guessing that if a control ...more >>

Datagrid header databinding problem
Posted by Santosh at 8/1/2006 4:32:26 AM
Dear all I am writting following code for binding data to the header template of the datagrid on the button click event. but it gives me an error object referance is not set to an item of object can any one tell me how i can bind data to the header template of the datagrid on button click e...more >>

SortCommend event is being fired twice
Posted by Anup at 8/1/2006 4:22:30 AM
Hi Group, In my application I am using a datagrid, now I m implementing sorting for that datagrid, I am changing the flag for ascending and descending when SortCommand event of datagrid is fired. Now the problem I am facing is that the Sort Command event is being fired twice even if I clic...more >>

Processing Date Input
Posted by Saitir at 8/1/2006 4:16:02 AM
Example: On a web page the user enters for a date: 12/05/2006 They're in the UK, so this is 12th May 2006 Once this value arrives in a datetime variable in VB, date.month = 12 and not 5 as should be expected, ie, it has assumed a US date formatting. We have tried the following: Setting...more >>

Calendar pop-up won't return value in Firefox
Posted by msch-prv NO[at]SPAM bluewin.ch at 8/1/2006 3:22:00 AM
I created a pop-up window using the ASP.NET 2.0 calendar in a distinct file (calpopup.aspx). The calendar pops up when clicking on a linkbutton and copies the selected day back into the textbox. This works fine in IE. In Firefox however, while the calendar is displayed correctly, the date is ...more >>

ClientScript.RegisterStartupScript
Posted by C at 8/1/2006 2:54:02 AM
Hi, On a click event of a button I do some validation. If my validation is unsuccessful I display an alert to the user as below. string message = "This is a test alert."; ClientScript.RegisterStartupScript(typeof(Page), "alert", "<script language=JavaScript>alert('" + (message) + "')...more >>

VB.Net - checking for Null values in DataSets
Posted by Martyn Fewtrell at 8/1/2006 2:23:02 AM
Hi there. I wonder if there was a "correct answer" for Vb.Net (I understand this is quite easy in C#). If im drawing data from a database using a TableAdapter the data ends up in a DataTable. I then need to iterate through the DataTable to get the values out. This in itself is not a big ...more >>

Multiple web-apps under one master page site?
Posted by Alec MacLean at 8/1/2006 2:05:02 AM
Hi I've just recently upgraded to VS2005 and started using/learning about the Master Pages. I'd like to know if it is possible to have separate web app projects use the master page(s) from their "parent" site. E.g.: Main site at http://localhost/mainsite/ sub-app at http://localhost...more >>

HTTPHandler doesnt seem to execute
Posted by Lopamudra at 8/1/2006 1:53:01 AM
Hi, I have implemented a HTTPHandler named ThumbnailGenerator.ashx to generate thumbnails for images. I have referenced this within my aspx file in the ImageUrl property of the Img control. When I debug the ashx page by setting it as the start page, the handler executes ( and also writes a ...more >>

ASPNET 1.1 and Visual Studio 2005
Posted by Dariusz Tomon at 8/1/2006 12:14:40 AM
Hi I installed VS2005 and I cannot choose in IIS that my application will be run on 1.143 version of ASPNET (only 2.0 exist). I have several application causing problems when running in 2.0 environment. How can I have ASPNET 1.1 on combo box in IIS ? (so that I can choose it) Regards ...more >>

Dynamically Populate Server Control?
Posted by Arpan at 8/1/2006 12:05:14 AM
In order to populate any server control with data dynamically, is it ALWAYS NECESSARY to either BIND the DataSource to that server control or call the DataBind method of that server control? For e.g. consider the following code: <script runat="server"> Sub Page_Load(ByVal obj As Object,...more >>

How to new a session with program?
Posted by ad at 8/1/2006 12:00:00 AM
I use VS2005 to develop asp.net program. I want to get a string from WebService in the Session_Start. But it often wasted a long time to get the msg. I want to new a Session in the application start, and the Session check if a new message form WebService evey 1 hour. How can I new a sess...more >>

SQL Server Migration
Posted by Nitin at 8/1/2006 12:00:00 AM
I used access as backend for a website and it worked perfectly fine. Now i have changed to MS SQL Server 2000. The page gives an error "Must declare the variable '@CategoryId'. " (@categoryid is a oledb parameter) when I remove all the parameters and create the query using string.format it wo...more >>


DevelopmentNow Blog