try catch not working in c#. please help
this code is in VB and it works fine, when error occur, the user will be redirect to promptUser.aspx, but when i write this code in c#, the user will not redirected. please help, please see below c# code<%@ Page Language="VB" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server">Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)Dim x As Integer = 223Dim y As String = "sdsdsd" Tryx = x / y Catch...I cannot get my C#.NET Email Form to work on Godaddy hosting account. Please Help!!!!
I have created a contact us page and I am using .NET Mail classes to send the form via email. However I keep getting this error when I upload my info to the hosting server...
Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Oh and yes, it wont send any emails.
here is my code...
using System.Web.UI.Web...How do I get this to work? Please help!
I downloaded this customForm from http://www.metabuilders.com/Tools/CustomForm.aspx
I have to say that I do NOT use Visual Studio - I do not own it!Currently I use Visual Web Developer Express BetaMy language is VB.NET
After I extracted the zip I put the file CustomForm.cs into my bin directory and CustomForm.aspx into my application root directory.
But if I call CustomForm.aspx I keep getting an error:"Parser Error Message: File or assembly name MetaBuilders.WebControls.CustomForm, or one of its dependencies, was not found."
Please can anyone tell me how to "install" this CustomFor...Type.GetType does not work in VB.NET but works in C#. VB.NET gurus Please help
Friends, I am an experienced C# programmer who is working on a VB.NET project now. I am writing different methods covering the following functionalities 1) Take a datareader as input and return an arraylist of class object2) Take an xmlnode (received from a webservice) as input and return an arraylist of class object. The methods are generic methods which take datareader/xmlnode as first parameter and classname (string) as the second parameter. This way it will work trivially. The schema of class object matches with the input (datareader or xmlnode)In C# I used to do th...Please help me get this to work
I must be missing something, and I think it's something simple. I have an
installation of NSBS 6.5. One server, running CIFS. I have universal
password enabled on both the root container and the current container. I've
setup a share with appropriate file rights, but users still can't login to
the server using CIFS. So I tried to set simple passwords even though I
already enabled UP, iManager says I can't set the simples because UP is on.
So I guess that means UP should be working. Every TID I've found basically
says "make sure simple passwords are set"...HELP!!! Please... A newbie at work
I've been charged with putting together a functional web using information from a simple Access Database (4 tables)... I'm familiar with Access and FrontPage, but not ASP... How big of a can of worms have I gotten into?Thanks,
to paraphrase.... "Poop happens"
are you fimilar with any coding language, vb, c, java?
It is not very difficult to learn ASP .NET. You need to decide which language you want to use VB or C#. If you are new to programming go for VB .NET. It is very easy to learn. Also you need to decide whether you want to use Visual Studio or not...WebParts - Strange - I have drag and drop working in firefox and safari but can't get it to work in ie
I've run into an issue with webparts:
Using asp.net 3.5 on iis 6 with the AjaxControlToolkit-Framework3.5SP1, Browsing using ie8 in compatiblitiy mode on Windows 7 beta (but also tested in vista)
I have managed to get it so that drag and drop works in firefox and Safari, using Microsoft.Web.Preview.UI.Controls.WebParts
however when I view the page in ie the drag drop functionality is somewhat lost - I can still drag the items to another webpartzone, but once you mouse down to drag, the webpart does not follow the mouse - it stays put until you release over another zone...Please Help.. Can't get ASP.NET App to Work on Web Server, works on local system
I have an application I developled for a shopping cart function using Wrox ASP.NET book as a guide. I have everything working great on my local system using SQL 2005 Express. When I move the app to an IIS 6.0 Web Server with SQL 2005 Express installed I get the following error.
Line 103: Public Overridable Property Cart() As Wrox.Commerce.ShoppingCartLine 104: GetLine 105: Return CType(Me.GetPropertyValue("Cart"),Wrox.Commerce.ShoppingCart)Line 106: ...Having problems on set up, I keep getting this message. I tried many times. Please Help! :) Or can I get Thunderbird 1.5 back?
Summary: Having problems on set up, I keep getting this message. I tried many times. Please Help! :) Or can I get Thunderbird 1.5 back?
Error opening file for writing: \r\n\r\nmozMapi32.dll\r\n\r\nClick Retry
to try again, or\r\nCancel to stop the installation.
Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20070515 Firefox/22.214.171.124
...I'm getting the access denied error in an iframe and have read stuff and i still can't get it to work! PLEASE HELP ME
so i went and downloaded the new ajax toolkit 10920 from codeplex.
I was still getting the error so i found this
i've just read http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx
I went to edit common.js as instructed but it aslready has the lines added, and still causes this error.
I am trying to use the CollapsiblePanelExtender in an iframe where the parent is not the same domain as the child.
What else should i do?
Thanks lots in advance
&n...Help getting IIS to work, please
I installed IIS on server 2003. This server sits behind our firewall and will serve intranet only.I put a page called default.html in the inetpub/wwwroot folder. (Once I get this working I have a whole ASP.NET app to move to it.)when i browse to the servers address i get the page that says under construction, not my default.html page. When i browse to the ip/default.html i get a page that says Connection Interrupted.
any ideas what is happening?Thanks!
update: now i added another page called test.htm and I get an error that says you are not authorized to view this page
did ...Please help a newbie to get started
I'm sorry if I ask some stupid questions. I'm a complete newbie to SQL Server and DNN. When I tried to install a clean copy of DNN, I did following steps. Please tell me which step is wrong or I missed something. Thank you.
1. Create a new SQL Server registration named MYCOMPNAME.
2. Create a new database named DotNetNuke.
3. Create a new SQL account with userid MYNAME password MYPASS.
4. Assign user MYNAME to the DotNetNuke database and let MYNAME have all the rights possible.
5. Make sure that MYCOMPNAME server use Authentication: SQL Server and Windows.
6. UnzipDNN 2.0 b...Inline C# to VB conversion help please
Hi, Could some one help me translate this inline code used in a Gridview TemplateField in a C# application to VB.net?<%# GetUser((AuthorizationRule)Container.DataItem) %>I tried this but I get an error:<%#GetUser(DirectCast(Container.DataItem, AuthorizationRule))%>
Try using conversion tool available at:
What error do you get?---------------------------------------MCP - Web Based Client Development .NET 2.0
The error says: AuthorizationRule is a type and cannot be used as an expression. Any ideas?
T...Help me get my wireless adapter to work please?
I have an Acer Aspire 5000 with AMD Turion, 1.60gHZ and 896mb of ram. I
am using the Broadcom 802.11G Network adapter. This is my 2nd linux
distro. I got it to work on Ubuntu but I had to do a lot but I cant
remember the steps. I know it can work on suse, I just installed it
yesterday and it looks promising. Useless without internet though. Help
me get it to work. Im not a noob when it comes to computers but not that
expert at linux. I can use the terminal ok and I am familiar with a few
commands. Thanks in advance.