Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:878370
More Search Options
RSS Available
Matching Posts
Object reference not set to an instance of an object, Again!
Hi - I am really not sure why this error message would happen. my code is very simple as follows: Protected Sub GridView1_Select(ByVal sender As Object, ByVal e As System.EventArgs) Dim a As String a = DirectCast(GridView1.SelectedRow.Cells(4).Text, String) TextBox1.Text = a End Sub I have AutoEventWireup set to "true" as well as EnableEventValidation ="false". I cannot figure out what is causing this error. Stack trace as follows: [NullReferenceException: Object reference not
Posted to
Data Presentation Controls
(Forum)
by
JCS8
on 8/11/2009
Crystal reports
hi, does anyone konw whether cyrstal reports integrates with Visual Web Developer? I can only find information on Visual Studio. thanks, JCS88
Posted to
Crystal Reports
(Forum)
by
JCS8
on 7/28/2009
Re: Object reference not set to an instance of an object
here is the error message: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. I added some logic to test whether there are values - still does not work, I will now add a test for the data table which is objDT. Source Error: Line 44: Dim blnMatch As Boolean
Posted to
Web Forms
(Forum)
by
JCS8
on 7/16/2009
Re: Object reference not set to an instance of an object
It appears that the culprit was the autoeventwireup was set to false, but it needs to be set to true. Could it have been any easier Ok, I am over it now. Thanks for the help all!
Posted to
Web Forms
(Forum)
by
JCS8
on 7/16/2009
Object reference not set to an instance of an object
Hope someone can help on this error message above. I search the net to see if this was out there - surprise it was in many forms, but did not solve my issue. My code is as follows: Public Sub AddToCart(ByVal s As Object, ByVal e As EventArgs) objDT = Session("Cart") Dim Product = ddlProducts.SelectedItem.Text Dim blnMatch As Boolean = False For Each Me.objDR In objDT.Rows If objDR("Product") = Product Then objDR("Quantity") += txtQuantity.Text blnMatch = True Exit For
Posted to
Web Forms
(Forum)
by
JCS8
on 7/15/2009
Re: How to email contents of a Gridview
I have a similar question, though I would like to use Mailto: to allow the user to change or add text to the message. I have found code that launches Mailto: the code is as follows: Public Function OpenEmail(ByVal EmailAddress As String, _ Optional ByVal Subject As String = "", _ Optional ByVal Body As Object = "") _ As Boolean Dim bAns As Boolean = True Dim sParams As String sParams = EmailAddress If LCase(Strings.Left(sParams, 7)) <> "mailto:" Then _ sParams
Posted to
Web Forms
(Forum)
by
JCS8
on 7/8/2009
Display a shopping carts contents in a mailto: message
I am in the process of trying to use Mailto: to allow the user to change or add text to the message. I have found code that launches Mailto: the code is as follows: Public Function OpenEmail(ByVal EmailAddress As String, _ Optional ByVal Subject As String = "", _ Optional ByVal Body As Object = "") _ As Boolean Dim bAns As Boolean = True Dim sParams As String sParams = EmailAddress If LCase(Strings.Left(sParams, 7)) <> "mailto:" Then _ sParams = "mailto:"
Posted to
Web Forms
(Forum)
by
JCS8
on 7/8/2009
Re: Display a shopping carts contents in a mailto: message
thanks for the help. I actually do want to have the email launched on the client with what they selected in the cart. At the moment we do not want to have online processing only an email that is sent to us with the items that the customer is interested in. However, I do want them to be able to edit the message, should they wish. It also makes them more comfortable if the email client is the one they are used to. I hope this explains what I am looking to do. thanks, John
Posted to
Web Forms
(Forum)
by
JCS8
on 7/8/2009
Re: Display a shopping carts contents in a mailto: message
I am able to accomplish this with the original code, what the real problem is getting the grid values into the body of the email so the customer does not have to copy and paste. Thanks,
Posted to
Web Forms
(Forum)
by
JCS8
on 7/8/2009
Re: Display a shopping carts contents in a mailto: message
Understand! I can get both version of the javascript to work, however I still cannot get the data rows from the grid that I mentioned above into the body of the message. Thanks for your help.
Posted to
Web Forms
(Forum)
by
JCS8
on 7/8/2009
Page 1 of 2 (14 items) 1
2
Next >
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online