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

mail attachment program in c#
Posted by vinodkus NO[at]SPAM gmail.com at 5/31/2007 11:36:57 PM
MailMessage MyMail = new MailMessage(); MyMail.To = txtTo.Text; MyMail.From = txtFrom.Text; MyMail.Subject = txtSubject.Text; MyMail.Cc = txtCC.Text; MyMail.Body = txtBody.Text; ******** MyMail.Attachments.Add(how can u put browse file inside ...more >>


scraping content from iframe
Posted by pb at 5/31/2007 11:01:47 PM
Hi, I have as asp.net 2 web page that has an iframe. The content of this frame is a 2nd web page that contains a load of javascript. You play around with this 2nd web page to define certain things. What I need to do is to somehow scan the content of this embedded web page to extract data se...more >>

ASP.NET and AJAX: JavaScript files from the Microsoft AJAX Library
Posted by Nathan Sokalski at 5/31/2007 10:57:16 PM
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously functioning as desired when I test it on my machine using Visual Studio 2005. From what I have deter...more >>

.net debugging with ie7 is becoming painful!
Posted by robert112 at 5/31/2007 10:50:48 PM
my ie7 throws a 'page cannot be found' error when I leave my asp.net application no a debugging line. it gives me about 30 seconds worth of debug time before it throws that message and then when i am done with my debugging and press play to resume the application, ie7 wont render the webpage bec...more >>

Scope_Identity() - Output parameter or not?
Posted by Mike at 5/31/2007 9:28:10 PM
Sql Server, Scope_Identity(), Ado.NET: Which is better? Using an output parameter to return Scope_Identity through ExecuteNonQuery(), or adding Select Scope_Identity() to the end of the procedure or ad hoc SQL and using ExecuteScalar()? Thanks. ...more >>

Response.Redirect VS Response.RedirectLocation
Posted by cmay at 5/31/2007 7:46:14 PM
Does anyone know the difference between these two? Response.Redirect( "http://site.com/newlink.aspx"); and Response.RedirectLocation = "http://site.com/newlink.aspx"; Response.End(); ...more >>

How to use Session ?
Posted by fniles at 5/31/2007 4:45:15 PM
I am using Visual Studio 2005. In my ASPX page, when I try to use Session, I got the error "Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom sess...more >>

Custom role provider not working
Posted by Tom Van den Brandt at 5/31/2007 4:01:43 PM
Hi all! I'm trying to implement a custom roleprovider in asp.net. The new roleprovider works fine when I access it programmaticaly. However, it doesn't seem to work with the standard controls. More specifically, I have a loginview with rolegroups and the parts of the site that should b...more >>



IIS 6.0 missing random dll problem
Posted by Piotr Nowak at 5/31/2007 3:52:39 PM
HI, Im running IIS 6.0 and asp.net 1.1 application. Everything works fine until i try to get database connection through our DAO objects. What i get is missing dll, which is different after every page refresh, for example (IIS error page): === Pre-bind state information === LOG: Whe...more >>

Assembly's manifest definition does not match the assembly reference
Posted by Monty at 5/31/2007 3:22:36 PM
I'm sure I'm missing something very obvious here, but... I have an ASP.Net web application project (VS2005) that is compiled into a single DLL. I created a setup and deployment package and set it up on a test machine. It installed fine, but as soon as I started it I saw something I wanted to ...more >>

__EVENTTARGET correct but events don't fire and IsPostback == false?
Posted by Kenneth Baltrinic at 5/31/2007 3:21:58 PM
I am having a very odd problem. On a page that was working until very recently we are now encountering the following situation: The page is a very basic fill in the blank form used for changing ones password in a forms based authentication scenario. After the user fills out the form and c...more >>

.NET 1.1 i18n
Posted by Piotr Nowak at 5/31/2007 2:10:10 PM
Hi, Is there any solution for asp.net 1.1 for internationalization ? I need to make multilingual web application with language selection on the login page. How this could be done, any usable web resources ? im digging some google resources, if you have any ideas please send it here, ...more >>

banner ads
Posted by rodchar at 5/31/2007 1:39:00 PM
hey all, just wanted to know what you all use to create banner ads. thanks, rodchar...more >>

Redirecting a page after a delay
Posted by JJ at 5/31/2007 12:58:31 PM
I used this to redirect a page after a delay of 8 seconds: this.Response.AddHeader("Refresh", "8;URL=mylocalurl") However I notice that the page I am redirected to is also refreshed again in 8 seconds. Is there any way I can forward without the extra refresh? Thanks, JJ ...more >>

Report binding to Objects
Posted by Gene at 5/31/2007 12:57:02 PM
In the WinForm you can select an Object as a datasource for Report. I can not find such options in Report datasource in web forms. Can reports in ASP.net project have objects such as iList as Datasource or do I need third party software such as Report Sharp Shooter? Thankx ...more >>

Accessing Files In 'App_Data' Folder
Posted by Joey at 5/31/2007 12:36:06 PM
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'. Finally, I redirect the page to that file in order to serve it out (push the download) to the user. ...more >>

A vb.net function that resturns a dataset from stored procedure?
Posted by jobs at 5/31/2007 12:27:34 PM
How do you return dataset from a vb.net function? my sp: ALTER FUNCTION [dbo].[GetAllUsers_test_fn] ( ) RETURNS TABLE AS RETURN ( SELECT * from users ) my function: Function GetAllUsers() As DataSet Dim cmd As New SqlCommand With cmd ...more >>

Web Page Not Found
Posted by OldButStillLearning at 5/31/2007 12:20:02 PM
I have a web site in production which i converted to be an ASP.Net web site. Prior to converting it, I tested it all out first on my work station and then on a test server. When I moded to application to production, a few of my web pages come back as web page not found 404 errors. These wor...more >>

Weird SQL Truncate error
Posted by JJ at 5/31/2007 11:18:20 AM
This is slightly OT but .... When testing why my aspx page isn't returning the data as expected I decided to type directly into one of my SQL tables. (The column definitions are below). When I type in data into any of the columns I get this error: "string or binary data will be truncated" ...more >>

ASP.Net Newbie question
Posted by ranch99ranch99 NO[at]SPAM gmail.com at 5/31/2007 10:42:06 AM
I read a piece of code like the following <asp:TextBox id=myTextBox ...> </asp:TextBox> Does asp in asp:TextBox is a namespace? ...more >>

ASP.net OOP book recommendations?
Posted by darrel at 5/31/2007 10:08:36 AM
I want to get a book that will meet my particular needs. I've been working in ASP.net for several years now (VB.net) and have a strong grasp on the syntax, but never having a formal CS degree or background, I'm still lacking in proper OOP concepts. Is there a book out there that focuses on...more >>

Generic code to scan and display folders\Docs
Posted by NH at 5/31/2007 9:34:02 AM
Hi, I am looking for some code that would scan a folder structure and files in those folders and display them on a web page so that people can click on the file links and open the files. There may be multiple folders beneath each folder etc. Anyone know of any such code, preferable vb.ne...more >>

AJAX not working when using Session variables.
Posted by Shawn Sesna at 5/31/2007 8:43:01 AM
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick application working. However, when attempting to implement the solution, the AJAX calls weren't ...more >>

Saving contents of page to a string variable
Posted by John Kotuby at 5/31/2007 8:36:50 AM
Hi all, I am using a 3rd party program in a VS2005 web project. The tool takes as input a string containing HTML and converts it to RTF. I have been creating a page by dynamically loading UserControls and then sending the page to the browser. Now I want to write the contents of the the pa...more >>

gridview auto columns
Posted by rodchar at 5/31/2007 7:52:01 AM
hey all, i have a gridview that have auto columns on. Well one of the fields is a date field which shows the time by default. Is there a way to format without the time when Auto Columns are on? thanks, rodchar...more >>

404 best practice
Posted by Dunc at 5/31/2007 7:37:32 AM
I have a website where I wish to display a custom 404 error page when applicable. I also want to ensure that when a search engine hits a page that no longer exists, it gets a StatusCode of 404 so it will eventually remove it from it's index. Currently to do this, I'm capturing all errors usin...more >>

Page Reload
Posted by general problem at 5/31/2007 7:17:00 AM
Hello All, I want to Reload the Page, i mean to say when a button is clicked i want to run the code even written with in the If Not Page.IsPostback then. Help me how can i do that. Shiva Kumar...more >>

Getting a record count for a filtered datasource
Posted by Greg Smith at 5/31/2007 6:58:13 AM
I would like to display the filtered record count for a datasource used to populate a gridview. I would like to change it every time the filter is changed. Is there a way to do this? Any help is greatly appreciated. ...more >>

How can I perform some form actions on a seperate page?
Posted by Peter Bremer at 5/31/2007 6:30:30 AM
Hi all, I've got a form which lists all members of a club, with checkboxes to select them. The form offers functions to delete selected members, send email, etc. Now I want write some code to perform complex analyses on the selected members. I'd prefer to keep this code seperated from the b...more >>

Debug Question
Posted by gfergo NO[at]SPAM gmail.com at 5/31/2007 5:39:28 AM
Good Morning, I seem to be having a problem. I thought I could display detailed debugging information (including file name and line number) on a page using two different methods: 1.) modify the debug attribute of the compilation element in the web.config file - <system.web> <compila...more >>

Page level (user defined) properties?
Posted by Mark at 5/31/2007 4:36:01 AM
Hi, Why doesn’t this property work at the Page level after postback; public virtual string SomePageProperty { get { string s = (string) ViewState["SomePageProperty"]; return ((s == null) ? String.Empty : s); } set { ViewState["SomePageProperty"] = value; } } I'v...more >>

Make a user control floatable?
Posted by C at 5/31/2007 3:40:00 AM
Hi, I have a user control which I use on all my pages. The control is situated on the top of my page (sits on my master page). For some long pages the user has to scroll back up to the top of the page to select an option from my user control. Can I make this user control floatable so th...more >>

How to use Request.FORM() ?
Posted by user at 5/31/2007 2:06:31 AM
Hi, I have an old page written in classic ASP. I do not wish to rewrite to ASP.NET. Is it possible to use POST in the classic ASP page's FORM tag and retrieve the POST data in another ASP.NET page? I can't seem to be able to use Request.FORM in asp.net Pls advise. Thanks. ...more >>

how to insert database values into a pdf
Posted by sarellaravi NO[at]SPAM gmail.com at 5/31/2007 2:06:10 AM
hi to all. just help me out in solving this problem. i have a pdf template which contain name,address...etc like fields. how to insert the values into these fields from the database. In vb.net and the database is sqlserver. code behind-vb.net database-sqlserver thanks in advance. with regard...more >>

how to insert database values into a pdf
Posted by katta.naveenkumar NO[at]SPAM gmail.com at 5/31/2007 2:05:58 AM
Hi friends My name is naveen kumar katta .My task is insert database values to pdf template with editable mode plz help me frieds.using ASP.NET I am giveing ex: step 1: How to create pdf template with my requrements ex: Name:---------------- Address:--------- Phone NO:---------...more >>

Generating random strings
Posted by Mike P at 5/31/2007 1:31:02 AM
I am generating 12 random strings and my code works fine when I step through, but when I then let it run without stepping through and populate a listbox with the array I am building, I get the same value repeated 12 times. Here is my code : protected void btnGenerate_Click(object sender, Even...more >>

Website restrictions
Posted by ciccone1978 NO[at]SPAM gmail.com at 5/31/2007 12:41:26 AM
Hello everybody, I'm working on a website using asp.net/iis and this site will be published only on my company's intranet. Now I want that only a subset of the intranet users can have access to the site in read mode (that is to view data only) and I want also that another subset of company u...more >>

XML Database Best Practices
Posted by Yehia A.Salam at 5/31/2007 12:06:15 AM
Hello, I am building an ASP.net website that connects to an XML database, and was wondering which is the best way to create the connection if I need frequent access to the database, I have one of the three options: 1. Use one instance of XmlDocument thought the whole Application by initi...more >>

How to determine authorized roles for a page?
Posted by MyndPhlyp at 5/31/2007 12:00:00 AM
I've been combing through Google trying to find the answer but not luck. I'm using Forms authentication. Determining what Roles the current user is in was the easy part (User.IsInRole). But how does one determine what Roles are permitted to use a particular ASPX page? (.NET 2.0, VS05) ...more >>

asp
Posted by Ahmd at 5/30/2007 11:57:41 PM
Pls help me.. pls c this code <FORM Action="<%=Request.ServerVariables("SCRIPT_NAME") %>" Method=POST> <Input Type=Hidden name="CurrentPage" Value="<%=CPage%>" > <% If CPage > 1 Then %> <Input type=Submit Name="Submit" Value="Previous"> <% End IF%> <% If CPage ...more >>

Error accessing pages
Posted by i.sobha NO[at]SPAM gmail.com at 5/30/2007 10:57:47 PM
Hi, I have an application where each user can log in to the system with a unique username and password. One of the user is facing an issue like after he logs in with his username and password he is not able to view some of the pages by clicking on specified links. He says that he gets an e...more >>

Creating a Multi-Line Button Control
Posted by Nathan Sokalski at 5/30/2007 10:46:37 PM
I have a Button control whose text property is "Move To Archives". Because this makes a relatively wide Button when the text is all one line, I want to put a line break between the words "Move To" and "Archives". However, if I specify the Text property as "Move To<br/>Archives" the "<br/>" sim...more >>

PostBack before ViewState loaded in Browser give incorrect result
Posted by scolemann NO[at]SPAM gmail.com at 5/30/2007 10:33:39 PM
Hi All, I've noticed that if I click a button before the viewstate has been transferred to the browser, the viewstate information posted back is none or part of the ViewState. I verified this using the Fiddler tool to monitor the requests sent to the server. This postback causes havoc on t...more >>

Problem with list box
Posted by lal.jagdish NO[at]SPAM gmail.com at 5/30/2007 10:26:06 PM
Hello, I have two listbox when i clicked items from one listbox the other one gets populated list box but when it gets autopostback to the server the page jumps or refresh that i get confused. so what i have to do is i wanted stop autopost back but when i select the first dropdown ...more >>

Export to Excel
Posted by Smith at 5/30/2007 8:44:22 PM
Hi Is there anyway to export a DataTable to Excel? Thanks ...more >>

openfiledialog
Posted by Bert at 5/30/2007 7:39:00 PM
Hi Does anyone have an idea of how to implement an openfiledialog for an asp.net webapplication? thanks B...more >>

~ refer to which directory
Posted by gouqizi.lvcha NO[at]SPAM gmail.com at 5/30/2007 6:00:12 PM
I see a src= ~/BLahBlah/foo.ascx. I wonder which directory ~ refers to? ...more >>

Session Timeout Problem
Posted by GaryDean at 5/30/2007 5:51:37 PM
The web.config in my asp.net application, running on Server2003, has this entry: <sessionState mode="InProc" timeout="40". In IIS the asp.net State Management timeout setting is 40 for my website. In IIS the virtual directory configuration setting is set to 40. The application still timesout ...more >>

Problem with DataBinder.Eval
Posted by atr2000 at 5/30/2007 5:24:27 PM
I am trying to bind data to my GridView from a field that has 2 of the same Field Names. However I keep getting an error when I try to get that data. I allowed the GridView to AutoGenerateColumns. The column name that I want to Bind manually returns with a header of Table1.FieldName. Howeve...more >>

*.aspx = 404
Posted by MattB at 5/30/2007 3:54:12 PM
We have our application installed at a client site on a Win2k3 box. IIS will serve *.html or *.txt, but when ever we try to get to any aspx files via IIS, we get a 404. We have deployed this app many times and it's always worked pretty well and I have never seen this scenario before. It's .N...more >>


DevelopmentNow Blog