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 2007

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

How to fill background of page with gradient
Posted by moondaddy at 8/31/2007 10:24:26 PM
I want to fill the entire background of a page with a gradient. As a test, I first filled with a solid color like this: <body style="background-color: #ccffff;" > and the entire page was this color. next I replaced that with a gradient style like this: <body style="filter: progid:DXIm...more >>

[STRING, MeasureString method] problem on retrieving the px length
Posted by teo at 8/31/2007 7:57:16 PM
I have to measure the length of a string in a Label, to set the adequate Label width (because not all browsers support the auto-size Label property). I decide to use the 'MeasureString' method. It works on a Win Form, but it doesn't work on a Web Form. I see the usual blue zig-zag unde...more >>

Sort by two columns in grid
Posted by Sehboo at 8/31/2007 5:24:58 PM
I have three columns in grid, name, division and terminal. What I want is that when I click on name header then I want the grid to sort by name, but when I click on division then it should sort by division, and then name. This way, all the poeple in each division will be sorted in alphabatical...more >>

Email an image
Posted by Dave at 8/31/2007 5:02:00 PM
I sent an email with an embedded image, but when I view the email, the message is grayed. I'm unsure if it is my email provider that is blocking it. Here is the mark up message.IsBodyHtml = true; message.Body = "<html><body><img src=cid:\"~/Images/logo.jpg\" alt=\" Logo\" width=\...more >>

Custom form control in asp.net
Posted by Yo mama at 8/31/2007 4:48:25 PM
Hi! I have problem using simple custom form control on asp.net page. It does not do much. Just label and button. (It is for training purpose). My control works fine when I use it in my windows application but I have problem with asp.net. I use <object id="Cont1" classid="http:Cont.dll#Contr...more >>

asp.net 2 list box and get selected items
Posted by pelegk1 at 8/31/2007 4:34:00 PM
i made a list box and a button inside a form that when the button pressed i have a function on the server that i s called : <asp:ListBox id="ddl_lstGames" runat=server Rows=4 SelectionMode=Multiple> </asp:ListBox><br/> <asp:Button Text="Add Games!" runat=server OnClick="AddGames" /> an...more >>

asp.net 2 : asp:listbox doubleclick and fire event
Posted by pelegk1 at 8/31/2007 3:42:00 PM
how can i fire event on doubleclick and what function/and how do i read the selected list of values? thnaks in advance peleg ...more >>

Unable to read data from the transport Connection
Posted by ninjamonkey at 8/31/2007 3:27:10 PM
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql server mobile ce database. Until recently I was synching everything thru a com port serial cable. ...more >>



Function without an 'As' clause; return type of Object assumed
Posted by Rick at 8/31/2007 3:27:04 PM
We have a very large web project, during migration from VS 2003 to VS 2005, I'm getting hundreds of warnings: "Function without an 'As' clause; return type of Object assumed." I know this is not the proper way of coding, but when you inherit code from earlier developers there's not much you c...more >>

Required user to read - then click a checkbox and then a button becomes enabled.
Posted by Mufasa at 8/31/2007 2:36:50 PM
I have a screen where the user has to agree to stuff. I want them to have to click a check box saying they have read it and then have the ok button become available. What's the easiest way to do this? TIA - Jeff. ...more >>

Pre_Init
Posted by Mike at 8/31/2007 2:18:41 PM
protected void Page_PreInit(object sender, EventArgs e) { TextBox1.Text = TextBox1.GetType().ToString(); } In the Pre_Init event of the page, I can set the value of say a TextBox's Text property, but the TextBox isn't created until the Init event. Also I noticed while debugging that...more >>

Where to buy, and best version for writing websites using VB.NET and ASP.NET???
Posted by jonny at 8/31/2007 2:13:39 PM
Please help. I would like to make websites using VB.NET and ASP.NET. Could you recommend the best version and where I can make this purchase? ...more >>

C# Web Site. Connecting to SQL Server. Test Connection Fine...BUT
Posted by samadams_2006 NO[at]SPAM yahoo.ca at 8/31/2007 2:10:57 PM
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express Edition" via the link on: http://msdn2.microsoft.com/en-us/express/bb410792.aspx This Web Site has v...more >>

Can someone help me (a Newbie)?
Posted by Shelly at 8/31/2007 1:53:11 PM
I was hoping to get some answers to my previous post where I asked: 1 - How do I specify the style sheet? The CssClass value is not defined is the message I get. 2 - It doesn't recognize <embed>. I have a Flash stuff at the top. 3 - Answered. 4 - It says that "background" is invalid in <td>...more >>

Use Flash in VS2005 Project?
Posted by David C at 8/31/2007 1:40:06 PM
Is it possible to incorporate Flash player into an ASP.Net web site? If so, can someone point me to more information on this? I would like to be able to play back some video on a web. Thanks. David ...more >>

Postback and RegisterForEventValidataion
Posted by SECSteve at 8/31/2007 1:24:15 PM
I am working with a radio button group. Depending on the seleciton panels and controls will show/hide. I keep getting an Invalid Postback or Callback argument. I have tried registering the values that I am using in render() with ClientScript.RegisterForEventValidation but it is not working...more >>

asp.net 2 loading picture - the file is "corrupted"
Posted by pelegk1 at 8/31/2007 1:20:02 PM
i am trying to load diffrent types of pictures like jpg/png/.... the file is being uploaded but i cant after it see the file (i try to open it and get the message that "preview cant be viewed" when i lin it to my html in IE i see whith box empty. this is the code i use : [code] <form id...more >>

select listbox
Posted by Mike at 8/31/2007 12:53:25 PM
I have an edit page that contains a listbox. I want to select the items = in it that were passed from the previous page, but have them at the top = of the list box. is there a way to do that/ so for example: on my main page I have in my grid BMW, Mercedes, Lexus when I click edit, I want...more >>

Doubt global variable?
Posted by Paulo at 8/31/2007 11:32:12 AM
Hi, I have a first button_click wich generates/fill a DataSet, etc, etc... and on a second button click I need to access the DataSet generated by the first button to manipulate some rows, etc, but how can I do that? Something like declaring a global variable? Can you help me ? Thanks! ...more >>

Gridview hyperlinkfield - pop new window with certain attributes
Posted by boevermann NO[at]SPAM gmail.com at 8/31/2007 11:10:37 AM
I prototyped an html table that has a hyperlink that pops a window showing a map of the entry from the that table. The link looks like this: <a href="authenticate.asp" onClick="window.open('authenticate.asp? code=COUNTRYSIDEESTATES','gismap','toolbar=no,menubar=no,location=no,directories=no,st...more >>

ContentPlaceHolder Problem
Posted by ZZ_Scarab at 8/31/2007 11:06:01 AM
Hi, I'm trying to use the Master Page/ContentPlaceHolder structure for the first time. I created a master page with a banner and a table with 2 rows (body and footer) with the top (body) row split into 3 columns, the first for a navigation treeview, the second as a separator and the third t...more >>

Scraped content via WebRequest: Fixing mis-rendered characters systemically?
Posted by Ken Fine at 8/31/2007 10:42:04 AM
I have a portion of a web page that I am scraping via .NET's WebRequest object. Code and page URL is below. Some characters are being mis-rendered when the string representing the page portion is returned: these are various entity characters that do not translate correctly into renderable HTML...more >>

FileUpload Control
Posted by shapper at 8/31/2007 10:35:03 AM
Hello, I want to change the font of the browse button in FileUpload control. How can I do this with a CSS Style? Thank You, Miguel ...more >>

Forum package
Posted by Joe at 8/31/2007 10:30:17 AM
I'm looking for a forum package. I would prefer something free with source and written in C#. I want to add a community forum section to my web site. Any suggestions? Thanks, Joe ...more >>

Thumbs Up/ Down postback event
Posted by DanWeaver at 8/31/2007 9:51:04 AM
I am trying to implement a "thumbs up- down" scoring system- I have an asp: repeater control to spit to my page a series of unique data eg John Yay- 2 Nay 10 Lucy Yay- 5 Nay 12 Susie Yay- 25 Nay 3 Each of which has a unique id in my sql database. I have a thumbs up and thumbs down icon and a ...more >>

Add subtotal within the footer in Gridview
Posted by Ken at 8/31/2007 9:36:25 AM
hi. I need to add subtotal of some columns on the bottom (footer ?) of Gridview? is it possible? then how? Thanks ...more >>

aspnet email control to differentiate reply to" and "bounced / rejected" messages
Posted by Stuart Harden at 8/31/2007 9:04:01 AM
We use Exchange 2007, but asp.net programs we have written to send out the mail. Is there an asp.net control to request the bounce backs be to a specific address? We can of course do this on the client end; it would be "simple" enough to have the logged in "from" person set a filter on the...more >>

Added pages in PDF
Posted by Herb at 8/31/2007 8:00:01 AM
When I render my ReportViewer to the screen it is fine. When I export it to a PDF, it adds a blank page between each regular page. Any easy fix for this?...more >>

Getting a quick list of the routines that are called by an object.
Posted by Mufasa at 8/31/2007 7:55:39 AM
Is there a quick and dirty place I can find a list of the events that are fired by objects. And preferably the order they are fired in? Also what the default is for the name if everything is AutoWired. For instance - Page_Load, Page_PreRender, .... TIA - Jeff. ...more >>

YOU MUST KNOW THIS MAN
Posted by abdo911 at 8/31/2007 7:23:55 AM
Allow me to share with you here some information about one man his name is muhammad. In The Name Of Allaah, Most Gracious, Most Merciful YOU MUST KNOW THIS MAN MUHAMMAD (May peace and blessings of God Almighty be upon him) You may be an atheist or an agnostic; or you may belong to anyon...more >>

IE6 doesnt render the page properly whereas IE7 does
Posted by Alex Fimine at 8/31/2007 6:56:02 AM
Hi all! My ASP.NET 1.1 app is working perfectly in IE7, however, when I open some page in IE6 they render as follows: 1. First dropdowns appear, then the rest of the page - looks ugly 2. When I click on a javascript which changes the cursor and navigates to another page, the background lo...more >>

Pass values in properties, or in parameters?
Posted by Larry Bud at 8/31/2007 6:49:00 AM
I'm writing a class to create a specifically formatted fixed width file. It's 800 characters wide, consisting of approx 30 fields. So I need to pass 30 variables, maybe 10 are required. Should I write the function to accept these as parameters in a method, or should I make them properties? ...more >>

ReportViewer Deploy
Posted by Herb at 8/31/2007 5:56:00 AM
On my development machine veerything works fine. When running from the server I get the error messge: >> An error occurred during local report processing. The definition of the report 'Main Report' is invalid. An unexpected error occurred in Report Processing. Could not load file or assembl...more >>

hi,
Posted by Lamis at 8/31/2007 5:24:00 AM
this is my code string filter ="LDAP://165.22.55.9"; DirectoryEntry dr = new DirectoryEntry(filter); DirectorySearcher mySearcher = new DirectorySearcher(dr); mySearcher.Filter = ("CN="+LoginName); try { DirectorySearcher(filter); mySearcher.SearchScope = SearchScope.Subtree; ...more >>

Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.Security.FormsIdentity'.
Posted by adupuis NO[at]SPAM dublin.ie at 8/31/2007 4:52:06 AM
Hello, I'm currently working on a web application that normally works fine. Times to times I have the following error: ' Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.Security.FormsIdentity'. ' Have you an idea where it could come from ? I th...more >>

Why is ASP.NET using C:\Windows\Temp?
Posted by ssg31415926 at 8/31/2007 4:16:49 AM
I've needed to give IIS_WPG Modify permissions on C:\Windows\Temp to get it a web service to work? Is this normal? ...more >>

How do I update a DataList (on a UserControl) on a Master Page from a Content Page
Posted by pierre NO[at]SPAM absoluteprecision.co.za at 8/31/2007 4:01:10 AM
Hi, I have a DataList inside a UserControl, which I use on a MasterPage. My ContentPage lists items which a user can add to his/her shopping basket. Can someone PLEASE let me know how I can "refresh" the datalist, contained within a usercontrol (which is on the MasterPage), from the ContentPa...more >>

XSLT in asp.net 2
Posted by pelegk1 at 8/31/2007 4:00:02 AM
i am looking for a very simple XSLT example in asp.net 2 on how to use and so on thnaks in advance peleg...more >>

Refresh "parent" form after filling out child popUp form?
Posted by Bob at 8/31/2007 2:06:16 AM
Hello folks! I have a form and when users fill in the form they normally fill in a simple text box. But when they can add several items...such as people on a project, I use a pop up form and they can add as many project members as they like. But after they add the member through the po...more >>

publishing asp application
Posted by Lamis at 8/31/2007 1:48:00 AM
Hello, I am now done with developing my webapplication and it is time to publis it. I have a wmware instance that I am trying to work it on before publishing it on the web. First thing I tryed to do is the browse (from my wmware instance) to htt://ip-adress/myWebApplication/index.jspx wh...more >>

SelectSingleNode throwing exception:
Posted by Anup Daware at 8/31/2007 1:22:18 AM
Hi, I have following XML which I need to modify and invoke a http request I need to select a node but I am getting "Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function." Error I am trying to access the <CUSTOMER/> tag with following code: re...more >>

Web deployment project - config section replacement files
Posted by Duke (AN247) at 8/31/2007 1:20:00 AM
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file, test.appSettings.config, and when I build the appSettings are correctly overridden, but I also end up with a copy of...more >>

Where's my settings file?
Posted by ssg31415926 at 8/31/2007 12:24:20 AM
I've got a small web site and I've added some settings in appSettings which appear in web.config. So far, so good. I've just added a DLL to the site which was originally written to be called from a Windows Forms app. The DLL has a settings file (<name>.dll.config) when I use it in the Window...more >>

IOException - Bad file name but NOT a permissions problem
Posted by teddysnips NO[at]SPAM hotmail.com at 8/31/2007 12:09:53 AM
My clients get the following exception message when they try to write to a file: <exception> Server Error in '/MyApp' Application. Bad file name or number. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more ...more >>

Draw a graph :(
Posted by Vicente_GarcĂ­a at 8/31/2007 12:00:00 AM
Hi, I need to programmatically draw a graph (his nodes and his edges) from dynamic XML file. The graph is very complex and I don't know how I could do this task. Any ideas please? Microsoft Sparkle? Thanks in advance, Vicente. ...more >>

Get Text from dropdown list using javascript
Posted by moondaddy at 8/30/2007 10:49:23 PM
I'm using the asp.net dropdownlist in a datagrid row item template. using client side JavaScript, I need to get the text from the selected item in the dropdown list to update the corresponding grid cell. This dropdown list uses numbers for the values, and text as the display text, therefore,...more >>

Newbie question: Content and Master
Posted by Shelly at 8/30/2007 7:17:12 PM
I am just learning ASP and .NET (coming from a php, C, Java background) so please bear with me. Where can I find a simple example of a master page which references a css style sheet, and a content file that uses that master file. I would like to see how to include the style sheet and wheth...more >>

Login Cookie
Posted by Samuel at 8/30/2007 6:44:28 PM
Hi I would like to set the login cookie for longer than the default 20 minutes, how can I do that? Thank you, Samuel ...more >>

VS.NET 2008 beta testers: anyone else getting thousands of &#160; strings on design view change?
Posted by Ken Fine at 8/30/2007 6:17:31 PM
I am using VS.NET 2008 and like it a lot. One of the very few things I don't like is a bug that seems to spawn literally thousands of &#160; strings, one after the other, on design view changes. Sometimes I will end up with as many as 30,000 of them. I have to do a "Replace" which is slower th...more >>

Application Directory & Deployment
Posted by zethon NO[at]SPAM gmail.com at 8/30/2007 5:56:15 PM
This is my first ASP 2.0 project and I'm running into a snag now that I'm trying to deploy the project. On my development machine, whenever I browse to the site via the IDE webserver, the URL bar looks like this: http://localhost:1234/directoryname/default.aspx Which works just fine. Howe...more >>


DevelopmentNow Blog