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 > april 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

Localisation with RESOURCE: in aspx pages need resx files no dll
Posted by WT at 4/30/2007 11:26:00 PM
Hello, Could we use 'Embedded resources' with resx files that contain text resources used in aspx pages with the syntaxe: Text="<%$ Resources:ResourcesMy,KEY1 %>" I tryed removing the App_GlobalResources folder, and after verifying thta my resources were correctly embedded in my dll, ...more >>

How to convert from string to integer?
Posted by Allen Maki at 4/30/2007 9:47:18 PM
I am working with MS Visual C++ .net 2003. With your help, thank you, I am able to take data from the user through a text box of a form and show the information on label of another form. But I discovered that the data that I collected was not in such a format by which I can do simple a...more >>

How to use CSS Control Adapters
Posted by a.mustaq NO[at]SPAM gmail.com at 4/30/2007 9:18:40 PM
Hi All, My Client wantsb to develop the site using CSS Control adapters. I go thru number articles on web, but could not understand how they are worthfull. What are theire merits over <table> tags. Please help me. Thanks and Regards A.Mustaq Ahmed ...more >>

ASP.Net 2.0 - how to add custom style into page header in code
Posted by Sergey Poberezovskiy at 4/30/2007 7:23:27 PM
Hi, What is the "right" way to create the following css rule in a page header: &lt;style&gt; ..myRule{text-align:right;padding-right:10px;} &lt;/style&gt; I know that you can add simple styles as follows: this.Page.Header.StyleSheet.CreateStyleRule(style, this.Page, ".mySimpleRule");...more >>

ASP.Net 2.0 - how to add custom style into page header in code in
Posted by Sergey Poberezovskiy at 4/30/2007 7:15:23 PM
Hi, What is the "right" way to create a css rule similar to the following in a page header: &lt;style&gt; ..myRule{text-align:right;padding-right:10px;} &lt;/style&gt; I know that you can add simple styles as follows: this.Page.Header.StyleSheet.CreateStyleRule(style, this.Page, ".my...more >>

How to read a value in a Formview ?
Posted by user at 4/30/2007 6:50:27 PM
Hello, How to read a value in a Formview, when the page is load or when the formview is updated, and if the value (integer) is negative,for example, the user will get a msgbox that say "becarefull ! negative value !") Thanks a lot ... ...more >>

Do most of Fortune 500 companies use OOP with ASP.Net 2.0?
Posted by Randy Smith at 4/30/2007 6:44:30 PM
Hi ALL, I was told that most Fortune 500 companies use OOP in conjunction with ASP.Net 2.0. Personally, I find this hard to believe, unless the class libraries being created are going to be used over and over. But what about instances where the web application is designed to be stand-alone....more >>

HTTP Handler?
Posted by RSH at 4/30/2007 4:15:33 PM
Hi, I have a situation where my company wants to implement a part of our website that needs to process requests such as: http://www.mydomain.com/<ServiceCenterName> I want to build a template page that will ultimately handle the request, but Im not sure how to go about interception the in...more >>



Newbie question
Posted by Robert Dufour at 4/30/2007 4:01:46 PM
I am using vs2005 and I have Created a new web site into which I have simply copied existing html and asp pages as they were when created with an earlier dev tool. I suspect it was Visual interdev. If I try to view an asp page in browser I get an error page saying Server error in the web si...more >>

(Hopefully) Quick Question about Session Variables
Posted by DLN at 4/30/2007 3:41:34 PM
Hello all, I apologize for the naivety of this question, but I'm wondering whether session variables can ever be modified (somehow) by a client without having to go through code that I write. If I read in user input from a web form, sanitize the input to make sure there isn't any injected ...more >>

Masterpage problem please help...
Posted by vinit_mahajan99 NO[at]SPAM yahoo.co.in at 4/30/2007 3:14:16 PM
Hello All. I am designing the master page for my site. I have used a table and ther are three rows in a table. Table lies in the 1. Header 2.ContentHolder 3.Footer The footer should be always at the end of the browser. But I have a problem my footer is being shown at the middle of ...more >>

Validate control to check 2 entries
Posted by David C at 4/30/2007 2:52:34 PM
I have a DropDownList control that has a value of 0 for not selected and a -1 for adding a new company. I want to be able to validate to say that this selected value is not 0 or -1 but I couldn't find a control validator that did this. Can someone help? Thanks. p.s. I am using .Net 2.0 and...more >>

How to use a repeater with two buttons?
Posted by Roger0x1 at 4/30/2007 2:38:01 PM
Language: c#,.net 2 This looks simple in concept: I have a page that needs to display a userid, a date/time to start vacation, a date/time to end the vacation, and two buttons: one says approve, the other deny. When you press Approve, it updates the sql table from pending to approved, wh...more >>

check for a connect request
Posted by Tenacious at 4/30/2007 2:35:54 PM
I need to add to my server application the ability to receive up to 30K of XML data from a client application. I know I can use an XmlTextReader() to receive the data and put it into the cache. What I am mostly not sure about is how the server is supposed to know that a client is wanting to conn...more >>

Formview template insert to edit mode
Posted by Ann at 4/30/2007 2:16:00 PM
Hello, I am using ASP.net 2.0 and I am using templates in a formview control. After I insert a new record, I want the formview Edit template to display with the NEW record that I just inserted. Is this possible and can someone show me some example code in VB. Thanks for your time! ...more >>

I need UTF-8. But I keep getting UTF-16. Why? How to fix?
Posted by darrel at 4/30/2007 1:38:17 PM
I've been struggling for some time now getting a RSS app to work. I'm creating RSS from existing XML files (transforming via XSLT). The problem is that the page, itself, is still being sent at UTF-16 when I create the RSS from XSLT. It's UTF-8 when I'm creating the XML myself via the DB and...more >>

downloading orcas vpc
Posted by rodchar at 4/30/2007 1:34:01 PM
hey all, i downloaded orcas from msdn and was wondering if .net framework is on it by default or do i have to that manually? Or how can i tell if it's already on the vpc? thanks, rodchar...more >>

Any equivalent to debug.assert?
Posted by Brian Cryer at 4/30/2007 1:03:27 PM
It would be very handy to be able to stop the debugger on parts of code without having to explicitly set a breakpoint - either a "debugger.break" or "debug.assert" type of thing would do. I've not come across anything, but is there anything in (VB).NET that would allow me to do this? TIA. ...more >>

Remember ViewState after Redirect
Posted by Joe Kovac at 4/30/2007 12:39:23 PM
Hi! I have an edit page and a view page. When I edit I sometimes want to see the results graphically in the view page. Therefore I use: Response.Redirect("ViewPage.aspx"); Then I go back, using: Response.Redirect("EditPage.aspx"); Coming back I don't have the view state of my edit p...more >>

Learn AJAX
Posted by gouqizi.lvcha NO[at]SPAM gmail.com at 4/30/2007 12:06:15 PM
I would like to learn AJAX under ASP.net environment, but I don't know how to get started. Any suggestions? Thanks ...more >>

HttpContext.Current.User.Identity.Name loses value
Posted by Doogie at 4/30/2007 12:01:22 PM
Hi, I am using HttpContext.Current.User.Identity.Name to get a user id from a web application. I then use that as part of a name of a cookie I'm writing. 30 minutes later I do a refresh of this page and try to access that cookie. However, because I am using HttpContext.Current.User.Identity....more >>

dynamically adding a FormView
Posted by justin at 4/30/2007 10:49:26 AM
I am trying to make a page that has a drop down list at the top, and based upon the selection in the drop down list, inserts a FormView in the bottom of the page. I tried to create each of my FormView's in seperate files, and then use the following method. <!--#include file=<name of correct fi...more >>

Using forms authentication, but you can get at a file if you know the name of it.
Posted by Mufasa at 4/30/2007 10:33:48 AM
I have a website where there is a login screen on it. All works fine. As part of the website I have links to some pdfs, htmls, jpgs, and assorted other stuff. I have found if you know the name of the file (or login, and copy the link) you can get at the file without logging in. I verified t...more >>

Radiobutton list return truncated values
Posted by Fendi Baba at 4/30/2007 10:22:50 AM
I encountered a very strang problem. In my form I have a radiobuttonlist control. I listed sizes ranging from XXS to XXL in them. And users must select one. The list are: XXS XS S M L XL XXL Now, each of the selection has the same values ie XXS values is XXS. Now with XXS and XS, m...more >>

Cookie isn't being read
Posted by Doogie at 4/30/2007 8:12:08 AM
Hi, I am having a problem reading a cookie that I can see is being created. I create the cookie in my global.aspx.vb page like so: Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) Dim user As String = Current.User.Identity.Name Dim roleCookieName As String = user & "-R...more >>

View tiffs
Posted by David C at 4/30/2007 8:03:30 AM
I have a DataList control that shows thumbnails of jpg files. I would like to be able to show other image types, such as tif files. Can I do that in ..Net 2.0, and if so, how do I display them intermixed with .jpg files? Thanks. David ...more >>

Saving profile information for a specific user when not logged in
Posted by daokfella at 4/30/2007 7:41:20 AM
I want to be able to store profile information for a user when they sign up for an account...but BEFORE they can log in. Can this be done using any of the built-in profile methods? Here's my current sign-up procedure: 1. User creates an account with username, password, e-mail and other info...more >>

PostbackURL not working
Posted by Joe at 4/30/2007 7:36:00 AM
I have a page that has a drop down list that does a autopost back which brings up a datagrid. I then also have a button at the bottom that has a PostBackUrl property to go to another page. I cannot get the button with the postbackurl to work at all. The drop down has to be used for the prop...more >>

ASP.NET Postback Event Occurrs Again after page refresh
Posted by Mike at 4/30/2007 6:58:03 AM
Hi. If an ASP.NET page postsback, for example, after a button is clicked, and then I refresh the page (ie, by pressing F5 key), why does the same event occur when I press F5 as it did when I clicked the button? For example - On an ASP.NET webform I click a button which produces a postback ...more >>

Why can't I set the textbox "text" property??
Posted by mj.redfox.mj NO[at]SPAM gmail.com at 4/30/2007 6:45:15 AM
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString Page.FindControl("tdInput").Controls.Add(txtTest) This successfully creates a textbox called "txtLeft1" in the table cell "td...more >>

ASP.NET Search Engine
Posted by hardieca NO[at]SPAM hotmail.com at 4/30/2007 6:37:20 AM
Hi, I'm building an internal website which will require a search engine. It needs to scan the title of the document, the content of the page, the keywords metatag, and also some additional custom metadata. Does anyone know of any search engine out there that I can easily plug into a an ASP.NE...more >>

Automation urgent help
Posted by Badis at 4/30/2007 4:14:01 AM
I'm doing a server side automation(I know it's bad but..) and its working fine locally and when accessing it from a remote machine using web browser is was giving me this error"Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the ...more >>

Remove spaces
Posted by shapper at 4/30/2007 3:29:57 AM
Hello, I have the following string: str = " string , hello,something ,new object, london city " How can I remove all the spaces before and after a comma but never the ones between words? So I get my string as follows: str = "string,hello,something,new object,london city" Thanks...more >>

Get Substrings
Posted by shapper at 4/30/2007 3:27:55 AM
Hello, I have a string as follows: str = "string,hello,something,new object,london" How can I get each substring between commas and add it to a generic list of string? Thanks, Miguel ...more >>

Get data from dataset
Posted by shapper at 4/30/2007 3:19:52 AM
Hello, I have a stored procedures as follows: SELECT a.ArticleID, a.Title, a.Content, c.CommentId, c.Title, c.Comment FROM Articles a INNER JOIN Comments c ON a.ArticleID = c.CommentID WHERE a.ArticleDate = @articledate I get a dataset in my .NET code. How can I get,...more >>

Resizing table height
Posted by JMT at 4/30/2007 12:00:00 AM
Hello, I get some dynamic controls (ASP .Net) inside a table, the height property of the table is variable according the controls loaded, so I need to know the final table height, this value must be an odd number by graphic design. I put the next code at bottom of the page; <script type...more >>

Standard for error trapping in Classes?
Posted by Elmo Watson at 4/29/2007 11:56:48 PM
Up until now, I've done all the work (gui/front end programming, classes, etc) I've done all my error trapping (try/catch) in the methods in the code behind. Now I've got an opportunity to do programming that is all class type programming. I've never created events of any type What i...more >>

<newbie> Using Google maps on ASP.NET 2.0 pages, how??
Posted by Jeff at 4/29/2007 10:52:26 PM
Hey I'm wondering how to use Google Maps on a ASP.NET 2.0 page? I've read a few tutorials on this subject and I'm a bit confused. Some so it is straight forward. Just put the google map code into the .aspx page and run it - I have never been able to run it if I put some google map code (...more >>

Continuously Transaction Number
Posted by Menaka at 4/29/2007 10:18:02 PM
im developing a web application for intranet solution. it have a transaction named is "Receipt", two locations are use this. but receipt number should be continue. who can i do this, please help me...more >>

Configuring IIS SMTP for System.Net.Mail
Posted by daokfella at 4/29/2007 8:55:47 PM
I'm having trouble using localhost to test the e-mail functions in my application. I keep getting the following error when sending mail: "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." This is what I have in my config: ...more >>

MailSettings code generates VS2005 error in web.config
Posted by John Kotuby at 4/29/2007 8:14:34 PM
Hi all, Here's a good one. I'm just trying to set up simple email configuration in web.config so that I can move my site from my development machine to the production server. I didn't need to pass an ID and Password to the smtp server at my office, but the Web server I'm using requires it. So...more >>

ASP.NET 2.0 maximum URL length?
Posted by Vlad Hrybok at 4/29/2007 7:52:03 PM
Using IIS7, Vista x64, ASP.NET 2.0. I am getting HTTP 400 "Bad Request" for the following URL: /HTTPVPNWebPortal/62ccc22e-069b-441e-b9f0-83b45e7f4f1e/UdVpnSGFuZGxlcnMvQ292ZXJBcnQuYXNoeD9DJTNhJTVjRG9jdW1lbnRzK2FuZCtTZXR0aW5ncyU1Y011c2hyb29tJTVjTXkrRG9jdW1lbnRzJTVjTXkrTXVzaWMlNWNGcmVuY2glNWNBbWVpb...more >>

null for int value
Posted by Barry400 at 4/29/2007 5:52:27 PM
Hi i want to set the following int xxx = null; // this is not allowed i want to pass a null value to a method like this setvalue("Hello world ", null); // to the following, it does not work, private void setvalue(string s1, int iVal) { } Barry ...more >>

Page_Load gets called twice
Posted by fiefie.niles NO[at]SPAM gmail.com at 4/29/2007 4:25:50 PM
I am using ASP.NET 2005 and I have a simple form. Page_Load calls a sub mySub that does not do anything (for testing purposes). But, Page_Load gets called twice. On every single ASPX page in my site, Page_Load gets called twice. Why is that and how can I fix this problem ? Thank you very much. ...more >>

Loading an unfinished questionnaire from a database
Posted by Vili at 4/29/2007 3:34:23 PM
Hi all I am having problems with creating an functional questionnaire with asp.net 2.0 and MSSQL 2005 database. I have a table with field id (key & auto int), clientId (int), QuestionId (int), And answer (nvarchar(255)) and a set of questions on an another table. Questions can have 0 ...more >>

connecting to mysql using asp.net - c#
Posted by Paradox Synthesist at 4/29/2007 1:26:28 PM
hi, i am a newbie to asp.net and have started learning mainly from websites. i have a question which IS very silly and trivial. http://msdn2.microsoft.com/en-us/library/system.data.odbc.odbcconnectionstringbuilder.dsn(VS.80).aspx i looked through this url to see how could i connect to a mysq...more >>

How to configure a virtual directory as an application with an installer
Posted by david.torgerson NO[at]SPAM gmail.com at 4/29/2007 1:03:14 PM
I am able to configure my virtual directory as an application from the admin tool by selecting properties. But I want to set this up in an installer. Is there a way to set the virtual directory as an application from the command line? Thanks dtorg ...more >>

Server-side, then client.
Posted by gsauns at 4/29/2007 11:49:01 AM
Is it possible to, on a click of a button, run server-side code, and then, upon page refresh, run a client-side Javascript function? The client-side code would run only when the page was refreshed by that particular button. ...more >>

Server.Transfer doesn't trigger PreInit event?
Posted by Morgan Cheng at 4/29/2007 6:06:07 AM
"Server.Transfer(Request.FilePath);" make server re-evaluate current page. In debugger, I found that though the page's OnPreInit is called, delegates attached in HttpModule is not executed. Why ASP.NET is designed in such a way? To make the page executed from scratch, I have to use Resposne.R...more >>

Flash Menu on the apsx page
Posted by icegray at 4/29/2007 3:07:57 AM
Hi, I have been designing a web page with asp.net. I want to use flash menu and I add it to aspx page. but page can't load if i use the flash menu when i trying the page on my computer. I try flash menu on the html page it is ok. but i can't use it on aspx page. What is my mistake? Thanks ...more >>


DevelopmentNow Blog