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 2005 > threads for thursday may 12

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

Sending Email
Posted by Daniel Groh at 5/12/2005 10:17:36 PM
Hi, How do I send email with properties stored in my web.config ? Does someone has any example ? How should the web.config be ? Wich statements ? I don't find any examble in Internet, can someone please help me ? Thanks in Advance ...more >>


Credit card validation
Posted by Sandy at 5/12/2005 9:50:05 PM
I need a credit card validator. Is there reliable code already written that anyone knows of? I have come across a few things; i.e. the Luhn-10 algorithm, but don't know if that still applies or is obsolete and additionally, how would I incorporate it into a vb.Net app? Does anyone have he...more >>

Inherit a aspx?
Posted by ad at 5/12/2005 8:46:54 PM
We can inherit a class. But if the class is the code behind, when we inherit it , can we inherit it's aspx ahead together ? ...more >>

Can we inherit a class and it's aspx ahead
Posted by ad at 5/12/2005 8:17:22 PM
We can inherited a class. but when a class has a .aspx ahead, can we inherit the class and it's .aspx together? ...more >>

session and frames
Posted by Alexander Widera at 5/12/2005 7:32:38 PM
Hi, if i have a page with a normal frameset .... has every frame then the same session? if i create in Frame1 a session-var and i want to use this in Frame2 ... is this possible? Or are there any difficulties? Thanks alex ...more >>

Need help with a form
Posted by Joe at 5/12/2005 6:16:04 PM
Hi, I have a form and when user submits the form I would like start downloading the file as if user clicked on a hyperlink and also refresh the form. Four things I am trying to accomplish when a user submits the by clicking on the Submit button. (1) Process the form by inserting the entere...more >>

Sending Mail
Posted by Joe via DotNetMonster.com at 5/12/2005 5:35:28 PM
Hi, I'm trying out a test mail script but it doesn't seem to work. The error I get is that mail is not declared on the mail.To line. Also, do I need to specify the SMTP Server? I have it commented out: <%@ Page Language="VB" %> <%@ Import Namespace="System.Web.Mail" %> <script runat="s...more >>

Master Pages
Posted by MadCat at 5/12/2005 5:26:01 PM
I am trying to use Nested Master Pages, I have a some Methods like GetVal() in the root master page and a method GetSubVal() in sub Master Page. I try to implement the SubMaster in a content Page, i am not able to see the Methods GetSubVal() and GetVal(). Any help....more >>



Carrying data for a Datagrid from page to page
Posted by tshad at 5/12/2005 4:42:21 PM
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go to the database to get the next page. Is there a way to use the dataset to allow us to read back...more >>

Repeater, conditional logic
Posted by Rasika WIJAYARATNE at 5/12/2005 4:42:15 PM
Hi I have bound data to a Repeater control. How can I do something like this (below is the desired logic only, it doesn't actually work): <ItemTemplate> <%if (Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsShowImage"))) {%> <img src="image.jpg" /> <%}%> <ItemTemplate> ...more >>

parameters
Posted by Qwert at 5/12/2005 4:20:25 PM
Hello, now I am trying to pass a string as a parameter to a control: <% Dim strString = "Hello" %> Text: <input type="TEXT" name="T2" value="<%=strString%>" size="60" > Here the output is: "Hello", but when I try it with a control that runs on the server it doesn't work (runat=server): ...more >>

Prevent menu or hyperlink clicks during postback
Posted by Mark Lauser at 5/12/2005 4:06:00 PM
I have an ASP.NET (Framework v1.1) page that takes 10-20 seconds to load. There are hyperlinks, drop-down menus, and buttons. When the user performs an action, we want to prevent them from clicking on anything until the postback is complete. Is there a way to diasble to whole page during ...more >>

page cannot be displayed
Posted by RalphB at 5/12/2005 4:05:47 PM
When I try to run an ASP.NET application with an error, I don't get the error message displayed on the current page. Instead I get the standard "The page cannot be displayed...HTTP 500 - Internal server error". I've tried running the same app on other machines and it responds with the proper...more >>

Default Unit for Font Size
Posted by JohnSmith90 at 5/12/2005 3:50:26 PM
Wheh I make the following statement, what is the unit for the font size. <td colspan='1' bgcolor='#F4F4F4'><font face='Verdana' size='1'><b>TestData</b></font></td> Thank you very much for your reply. Smith ...more >>

resizing window without Javascript?
Posted by Eych at 5/12/2005 2:51:39 PM
is it possible to resize the browser window at run-time without javascript? thanks... ...more >>

Visual Studio .NET has detected Web server is not running ASP.NET 1.1
Posted by Rob R. Ainscough at 5/12/2005 2:25:09 PM
I've tried to resolve this problem using the following method: http://support.microsoft.com/default.aspx?scid=kb;en-us;555132 Also tried this: http://support.microsoft.com/default.aspx?scid=kb;en-us;886389 None of these have solved my problem? Background on this issue -- I work at hom...more >>

POST AND REDIRECT IN C#
Posted by ranjinisrao NO[at]SPAM gmail.com at 5/12/2005 2:01:02 PM
Hi I am not sure if this is the correct group post this message. I need to pass account details, and also amount on my page to a third party site. The third party site doesn't do any price checks. I don't want to use hidden parameters to post to the site, Is it possible to post to the third p...more >>

Object reference not set to an instance of an object.
Posted by Fetty at 5/12/2005 1:44:59 PM
Dim sTextBoxName As String = e.Item.Cells(0).FindControl("tbtempDateF").ClientID() ******Error Here CType(e.Item.FindControl("lnkCalendarF"), HyperLink).NavigateUrl = "javascript:calendar_window=window.open('calendar.aspx?formname=Form1." & sTextBoxName & "','Pick_A_Date','width=154,height=2...more >>

State of Dynamically Created controls on PostBack?
Posted by Amelyan at 5/12/2005 1:42:11 PM
How can I get state of dynamically created controls (RadioButton, CheckBox, TextBox.Text) on post back when I click submit button? The only way I know is by traversing Response.Form enumberator; Response.Form.GetEnumerator(), etc. while, identifying specific controls by programmatically as...more >>

developing ASP.NET/Webservices without local IIS
Posted by cyberstrike at 5/12/2005 1:12:03 PM
Hi guys, my company was wondering if it's possible to develop ASP.NET/Webservices easily using a IIS installed on a server instead of installing IIS locally on the development boxes. Can you develop for ASP.NET/Webservices without IIS installed on your local box without having to resort to m...more >>

Displaying the all the name-value pairs of the session object?
Posted by Diffident at 5/12/2005 1:00:04 PM
Hello All, I want to display all the name-value pairs of the session object....how can I print them out? i.e., suppose once a user logs in I set a session variable login time Session["logintime"] = "2pm" and Session["logouttime"]="10pm". So how can I print these variables i.e., logintime an...more >>

Use aspx.vb Code to Javascript Code
Posted by laxmilal Menaria via DotNetMonster.com at 5/12/2005 12:48:39 PM
Hello Every one, Can anybody please tell me how can I use values coming in my somepage.aspx.vb into somepage.aspx's Java Script's Code? What I need is that I am doing some page progress calculations in my webform's .vb code but i have to display those values on the .aspx of that same p...more >>

Working with EventViewer
Posted by Paperback Writer at 5/12/2005 12:47:09 PM
Hi, I have problems of security when i try to generate an event viewer, how do i solve this problem ? Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your ...more >>

File transfer useing <a in VB
Posted by DrWho at 5/12/2005 12:46:04 PM
I have a need to allow a user to transfer or download a file from an ASPX screen. I know that it is an easy function HTML using <a code. My ASPX is written in VB. Thanks -- DrWho...more >>

multiply(10*12*14)
Posted by vips at 5/12/2005 12:14:19 PM
I have a string str="10*12*14" now I want the total of this value i.e. 10 multiply 12 multiply 14 how do i get it ? is there any function in vb.net to do that ?? if i put it as query to database I get the result, but I want to do it in the code. vips ...more >>

winform control hosted in IE, FileIO security exception. Please he
Posted by Moe at 5/12/2005 12:14:09 PM
I have a winForm control that contains an openFileDialog. I am using this control in a webForm by enbedding it using an <object> tag. I need to access some information about the file on the client. I strongly named my control assembly . I created a machine level permission set, and assigned Fil...more >>

'Access is denied' to third-party dll
Posted by Bill Borg at 5/12/2005 11:36:17 AM
Hello all, I am trying to use Alvaro Mendez' remote scripting. I thought all I needed was to include the dll in \bin, but when I run I get a configuration error: access is denied to ams.web.remotescripting (the name of the dll). I haven't done much with outside dll's--is there anything spec...more >>

How to clear or reset controls on page
Posted by Chris at 5/12/2005 11:20:01 AM
Hi, I have a page with quite a few textboxes and dropdownlist controls. How can I clear the textboxes and reset the dropdownlist after the data is sent to the database? Do I have to perform textbox1.text = "" textbox2.text = "" ..... for each items? Is there a page.reset? Thanks...more >>

How to convert the String to Datetime
Posted by Kylin at 5/12/2005 11:05:46 AM
eg : 19820507 1982-12-12 -- FireCrow Studio Kylin Garden EMail:gaotianpu@gmail.com ICQ:156134382 ...more >>

Downloading/opening file in client application window
Posted by Rob Nicholson at 5/12/2005 11:05:24 AM
The following code added to Page_Load works a treat: Response.ContentType = "application/zip" Response.AppendHeader("Content-Disposition", "attachment; filename=DesktopChange.pdf") Response.WriteFile("C:\Inetpub\wwwroot\Download\DesktopChange.pdf") Response.Flush() But *only* if the docume...more >>

Dynamic VB Code Behind
Posted by pbb at 5/12/2005 11:04:02 AM
Is it possible to retrieve VB code stored in SQL Server as text and execute it in code behind in an ASP.Net app? I guess what I'm looking for is an object that would have an Execute method that could be called and pass in text for the VB code to be executed....more >>

Sending Email using System.Web.Mail namespace
Posted by Ray5531 at 5/12/2005 10:38:46 AM
I'm trying to attach a file into an email message and send through System.Web.Mail,but apparently I have to write the attachment in the File system first and then attach it.I'd like to use the stream in memory insetad.Because I'm getting the file from a webservice and I'd like to send it rig...more >>

Dynamically created controls not accessible on postback
Posted by Tim Greenwood at 5/12/2005 10:32:39 AM
I am using the calendar control provided for ASP.NET. I am adding a checkbox during the DayRender event as follows: private void calMonth_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e) { System.Web.UI.WebControls.CheckBox cb = new System.Web.UI.WebControls.C...more >>

ViewState question
Posted by DougS at 5/12/2005 9:50:07 AM
I have two panels to which I'm dynamically adding user controls (that contain text boxes). I want to hide panel one as the user is editing data in panel two. And vice versa. I'm loading the controls in each panel on PageLoad If NOT me.ispostback Then LoadPanel1() LoadPanel2() En...more >>

rollover buttons
Posted by dave at 5/12/2005 9:48:24 AM
Hi I'm newbie to asp.net though I have good classic asp experience. Can any one suggest whats the best asp.net way to create rollover = button.. I checked below link http://www.realworldasp.net/article.asp?article=3D146 but when page first time loads, it takes bit more time to see roll over = ...more >>

System.Threading.Timer and Dotnet 2.0
Posted by Stig Hausberg at 5/12/2005 9:40:40 AM
Hi folks! I'm currently working in a prototype project as we are moving into dotnet and I've have stumbled upon an issue someone hopefully can help me with. The system we are building needs to run a specific part of code at a set of intervals, lets say once an hour. As the system will be ins...more >>

Watcher component
Posted by Ray5531 at 5/12/2005 9:37:35 AM
Hi All, We have a web application written by C#,recently I have asked to create a page or a component or whatever it is which watches a shared folder on the network and when somebody drops a file there it automatically gets the file and dose some processing on it(processing is actually done...more >>

Open New Browser Window
Posted by UofM Programmer at 5/12/2005 9:32:02 AM
I have tried almost every suggestion in these posts and my asp/vb .net application still cannot launch a new browser window. Using task manager, the best I can see is the start of a iexplore process but again, no new window is poping up. It has got to be something simple, right?!!? Any ti...more >>

Highlighting the cell data in a datagrid....
Posted by JohnSmith90 at 5/12/2005 9:26:50 AM
I want to highlight the entire cell data for all rows of a particular column in a data grid. I do not want to fill the back ground color of the cell. How to do that in a data grid? <span style='background-color: #FFFF04'>highlighted Text</span> I am using .Net Frame work 1.1 and IE5.+...more >>

out of memory
Posted by Tina at 5/12/2005 9:20:00 AM
My asp.net app that ran fine on my dev boxes is having problems at my web hoster who is running IIS 6. I'm getting Out of Memory exceptoions. When my web hoster bounces my app, the problem goes away for a couple of days. Sounds like I have a Memory Leak, but my application is managed and gar...more >>

A url for learning the difference between ASP 1.1 and ASP 2.0
Posted by mchung_pc NO[at]SPAM hotmail.com at 5/12/2005 9:13:37 AM
Hi, Where is a good URL for learning the difference between ASP 1.1 and ASP 2.0? many thanks ...more >>

EventLog does not write
Posted by Paperback Writer at 5/12/2005 9:09:31 AM
Hi, I'm trying to write a eventlog in my Application_Error but does not work I tryed by using SmtpMail and worked fine, but the EventLog not! =[ The code: Exception ex = Server.GetLastError().GetBaseException(); string msgErro = ex.Message; msgErro += "\n" + ex.StackTrace; // Create the...more >>

dragging images
Posted by Chris Stewart at 5/12/2005 9:00:05 AM
In ASP.NET, what technology would I use to drag images around the screen? Once the dragging is over, I'd need to fire an event in my codebehind using the x/y of the new placement of the image....more >>

Deploying Web Application
Posted by Egghead at 5/12/2005 8:52:41 AM
Hi all, Is there a way to deploy a web application to a live server without using the windows installer (not following the "Walkthrough: Deploying a Web Solution" in the VS.net's help). The application contains C# classes, asp.net pages, and some third party's dll. Just that we are not that c...more >>

Strange StringBuilder behaviour when composing Email
Posted by ramata at 5/12/2005 8:40:12 AM
Hi I am using StringBuilder to compose an email. The body of email consists of a table for which data has to be taken fron SQL Server. I use append method to add text to the StringBuilder variable. When I am finished I call ToString function to get the string. The problem is that many tim...more >>

session empty
Posted by Alexander Widera at 5/12/2005 8:38:14 AM
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i visit again .... null ... again .... it works ..... again ... it works ... again ..... null.......more >>

Progress Bar help
Posted by Tim::.. at 5/12/2005 8:36:09 AM
Can someone please, please tell me how I get a progress bar to work with a binary file upload! I have the following code that uploads files into an SQL Database using a Stored Procedure but I want to add a progress bar so users can see how long the file takes to upload! This would varey ...more >>

XEON session timeout
Posted by Dan Pavel at 5/12/2005 8:34:07 AM
Hi, I am using 3 machines for my web application and 2 of them are XEON platforms. After I login to my aplication, it seems that on the XEONs the session is timeout faster than the other machine. It is possible that the XEON platform to be blamed for this ? Thank you, Dan *** Sent via De...more >>

in page_load detect what button was clicked
Posted by thomasamillergoogle NO[at]SPAM yahoo.com at 5/12/2005 8:12:08 AM
I am trying to detect what asp.net button was clicked duing the page_load event. I have two asp.net buttons on my page. What is the easiest way to detect this? ...more >>

[assembly:TagPrefix("", "")] Problems
Posted by Seraph at 5/12/2005 7:42:21 AM
I've never posted here before, but I have lurked for quite some time, and have been frustrated to my whits end on what to do about this. Since there is limited support in previous posts (and many of them being outdated by years at a time) I've decided to post my findings so that hopefully someon...more >>

Is there any way to have a dropdown list with non-unique values?
Posted by johngilmer NO[at]SPAM yahoo.com at 5/12/2005 6:58:18 AM
I have a dropdown list where the text that the user sees is unique, but the values behind the options in the list are not unique. So the text/value pairs in the list might be: a - 1 b - 2 c - 2 When I select the third option ("c") and postback, the server thinks that the user ...more >>

SqlCommandBuilder
Posted by Jim Reynolds at 5/12/2005 5:54:02 AM
Hi, I am using a SqlCommandBuilder to update a Db table via an updated DataSet and SqlAdapter and it doesn't seem to be generating the activity commands from the Select command. Here is a snippet. sda = new SqlDataAdapter(); sda.SelectCommand = new SqlCommand(sql,dbcon); SqlCommandBuilder ...more >>

Images not getting rendered when using httphandler
Posted by Hitesh at 5/12/2005 2:12:02 AM
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are displayed. Can anybody know this issue and help me to resolve this. In past i received the respons...more >>

Unable to start debugging on the web server
Posted by zhingkitzu at 5/12/2005 1:30:01 AM
Hi All, I need help. I am getting an error message saying "Unable to start debugging on the Web Server. Access is denied" when I ran my ASP .NET program. I already added my user account in a Debugger Users group, also my account has a sufficient access priviledge to the web folder og my ASP...more >>

Web Messages
Posted by jack-b NO[at]SPAM humlog.com at 5/12/2005 1:22:24 AM
Hi, I was wondering what are best practices when it comes to displaying messages in a web project? I currently have a resource class where I keep all messsages (welcome, error, etc messages) Cheers, Jack ...more >>

location path in Web.config
Posted by Patrick Olurotimi Ige at 5/12/2005 12:09:07 AM
Using this location path below it relates only to the ADMINSITE folder/Directory only. Which allows only Admin Groups to the "AdminSite" directory. But if i try using ADMIN\AdminSite in the local path below it seems not to work Where ADMINSITE folder is under ADMIN Does <location path=...more >>

Image Slicing Problem in VS.NET
Posted by Microsoft at 5/12/2005 12:08:32 AM
I used photoshop to slice up some images. PS, creates the tables and differant images. You are supposed to simple upload the photos and copy and past the table codes taht was generated from the HTML PS creates. When I launche the created html file everything looks good, but when I put the ta...more >>


DevelopmentNow Blog