Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
L

learningman

@learningman
About
Posts
37
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • looking for a good asp.net 3.5 SQL 2008 host the last was sucked
    L learningman

    I try to usem6.net and before i could even begin it was a nasty experience the service sucked and that is the mild version now am having a time getting my short amount of money back save yourself dont ever evan think about using them

    ASP.NET csharp asp-net database announcement

  • visual web developer 2008
    L learningman

    the copy website does not work what can be done????

    ASP.NET question

  • can somebody please tell me why this will not work?
    L learningman

    i have 2 banner ads only the 1st one comes up!

    ASP.NET

  • can somebody please tell me why this will not work?
    L learningman

    Here is the simple code <%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <br /> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick"> </asp:Timer> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="Timer1" /> </Triggers> <ContentTemplate>  <asp:Image ID="BannerImage" runat="server" ImageUrl="~/Banners/Banner_1.gif" /> </ContentTemplate> </asp:UpdatePanel> </form> </body> </html> Here is the code behind Partial Class _Default Inherits System.Web.UI.Page Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Dim n As Integer = New Random().Next(1, 2) BannerImage.ImageUrl() = "banners/Banner_" + n.ToString + ".gif" End Sub End Class Its line for line code microsoft ajax video # 24 theirs works mine doent:(

    ASP.NET

  • whats do i need to do and how do i do it??
    L learningman

    my gridview has image and when i try to edit and click update i get this Server Error in '/WebSite2' Application. -------------------------------------------------------------------------------- Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query. 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.Data.SqlClient.SqlException: Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SqlException (0x80131904): Implicit conversion from data type nvarchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +177 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +68 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2305 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +147 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1021 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +314 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +413 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +115 System.Web.UI.WebControls.SqlDataSourceView.ExecuteDbCommand(DbCommand command, DataSourceOperation operation) +392 System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +643 System.Web.UI.DataSourceView.Update(IDictionary keys, ID

    ASP.NET question database design sysadmin data-structures

  • picture will not show
    L learningman

    I built a small learning site with a dal,a bll, a stored procedure, a database ,a detailsview,and a gridview. I want to be able to insert itemname,description,datelised,emailaddress,phonenumber,category,and a picture. everything does what it is supposed to do except....the picture wont show in the gridview all i get is a box with a red x I think i need some item inserted codebehind on the page that has the gridview (the detailsview is on a different page) I have looked everywhere for a good example scott mitchells data access seemed good but i cant get the image to show no matter what.....:)

    ASP.NET database tutorial learning

  • Can anyone?
    L learningman

    All I am trying to do is get the picture from the database to appear in the gridview I built a dal and a bll and stored procedure to insert ,delete ,select,and update. All works i can insert and it will show in the database and show in the gridview everything except the picture or image. all that shows is a box with a red x where the picture should be

    ASP.NET csharp visual-studio asp-net dotnet graphics

  • Can anyone?
    L learningman

    I get this error Server Error in '/WebSite16' Application. -------------------------------------------------------------------------------- Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30288: Local variable 'Classifieds' is already declared in the current block. Source Error: Line 8: Dim classifiedsAPI As New Classifieds() Line 9: Dim classifieds As Classifieds = classifiedsAPI.Classifieds(pictureID) Line 10: Dim Classifieds As DataSet1.ClassifiedsRow = classifieds(0) Line 11: Line 12: ' For new categories, images are JPGs... Source File: C:\Documents and Settings\Paul Quinn\My Documents\Visual Studio 2005\WebSites\WebSite16\Classifieds.aspx.vb Line: 10 Show Detailed Compiler Output: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Code.kgxnjivk.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web_dfz-mkmz.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website16\680a5c72\fb0e2cd0\App_Web__twpv53o.dll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.S

    ASP.NET csharp visual-studio asp-net dotnet graphics

  • Need Help
    L learningman

    I have a classifieds data table and a dal and a bll all writtin in vb and I have a detailsview that inserts into the database and then show the data with a gridview.everything works ok except.. the image will not show in the grid can anyone give me an example .. when my gridview shows the data the image shows a box with a red x in it here is some of the code i have the insert classifieds bll <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, True)> _ Public Sub InsertClassifieds(ByVal category As String, ByVal itemName As String, ByVal description As String, ByVal Price As Integer, ByVal EmailAddress As String, ByVal PhoneNumber As String, ByVal dateListed As Date, ByVal MIMEType As String, ByVal imageData() As Byte) Adapter.InsertClassifieds(category, itemName, description, Price, EmailAddress, PhoneNumber, dateListed, MIMEType, imageData) End Sub the classifieds vb Imports System.IO Partial Class Classifieds Inherits System.Web.UI.Page Protected Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) 'If Cancel button is clicked, send user to Default Response.Redirect("~/Classifieds.aspx") End Sub Protected Sub UploadPictureUI_ItemInserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertEventArgs) Handles UploadPictureUI.ItemInserting 'Reference the FileUpload control Dim UploadClassifieds As FileUpload = CType(UploadPictureUI.FindControl("UploadClassifieds"), FileUpload) 'Make sure a file has been successfully uploaded If UploadClassifieds.PostedFile Is Nothing OrElse String.IsNullOrEmpty(UploadClassifieds.PostedFile.FileName) OrElse UploadClassifieds.PostedFile.InputStream Is Nothing Then e.Cancel = True Exit Sub End If 'Make sure we are dealing with a JPG or GIF file Dim extension As String = Path.GetExtension(UploadClassifieds.PostedFile.FileName).ToLower() Dim MIMEType As String = Nothing Select Case extension Case ".gif" MIMEType = "image/gif" Case ".jpg", ".jpeg", ".jpe" MIMEType = "image/jpeg" Case ".png" MIMEType = "image/png" Case Else 'Invalid file type uploaded e.Cancel = True Exit Sub End Select 'Specify the values for the MIMEType and Ima

    ASP.NET css database design help tutorial

  • Can anyone ?
    L learningman

    w. steels soup to nuts series tried to build online auction but he never finished the add auction page i tried to add a detailsview to insert i set the mode to insert and tried to write this code Imports Microsoft.VisualBasic Imports System.Security.Permissions <ComponentModel.DataObject(True)> _ Public Class Auctions Public Shared Sub InsertAuctions(ByVal auction As Auction) End Sub Public Function GetAuctions() As Data.DataTable Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter() Return AuctionsTable.GetAuctions() End Function Public Function GetAuction(ByVal AuctionID As Integer) As Data.DataTable Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter() Return AuctionsTable.GetAuctionByID(AuctionID) End Function Public Function SearchAuctions(ByVal SearchString As String) As Data.DataTable Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter() Try Return AuctionsTable.SearchAuctions("%" + SearchString + "%") Catch Return New Auction("No Matching Records!") End Try End Function Public Function GetAuctionsByDate(ByVal StartDate As DateTime, ByVal EndDate As DateTime) As Data.DataTable 'If My.User.IsInRole("Admin") Then If StartDate < EndDate Then Dim AuctionsTable As New AuctionSiteTableAdapters.AuctionsTableAdapter() Dim dt As Data.DataTable dt = AuctionsTable.GetAuctionsByDate(StartDate, EndDate) If dt.Rows.Count Then Return dt Else Return New Auction("No Matching Records!") End If Else Return New Auction("Dates must be in order!") End If 'Else 'Return New Auction("User Must Be Logged In!") 'End If End Function End Class Public Class Auction Inherits Data.DataTable Sub New() Dim AuctionDataTable As New AuctionSite.AuctionsDataTable For Each col As System.Data.DataColumn In AuctionDataTable.Columns Me.Columns.Add(New System.Data.DataColumn(col.ColumnName)) Next End Sub Sub New(ByVal ErrorString As String) Me.New() Me.Rows.Add.Item(3) = ErrorString End Sub End Class But when i debug i get this! Server Error in '/Auction3' Applicat

    ASP.NET sysadmin security debugging help question

  • my detailsview dissappears
    L learningman

    i have a page i call admin that has a detailsview on it i have a page i call hiking with a gridview on it i can insert edit and delete ok but if i delete all the records with the detailsview the control dissappears what can i do to stop this?

    ASP.NET question

  • Need Help
    L learningman

    admin page has a detailsview hikingpage has a gridview problem is when i enter the second image instead of a new row the image replace's the first image and the rest of the row appears farther down the gridview here is the codebihind that i used Imports System.Data Partial Class Admin Inherits System.Web.UI.Page Protected Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) Handles DetailsView1.ItemInserted 'If the record was successfully inserted,save the picture If e.AffectedRows > 0 Then Dim results As DataView = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), DataView) Dim PictureIDJustAdded As Integer = CType(results(0)(0), Integer) 'Reference the FileUpload control Dim imageUpload As FileUpload = CType(DetailsView1.FindControl("imageUpload"), FileUpload) If imageUpload.HasFile Then Dim basedirectory As String = Server.MapPath("~/UploadedImages/") imageUpload.SaveAs(basedirectory & PictureIDJustAdded & ".jpg") End If End If End Sub End Class this is the codebehind on the admin page can anyone help me out here

    ASP.NET help design sysadmin json

  • Need Help
    L learningman

    can you show me an example??

    ASP.NET help

  • Need Help
    L learningman

    yes that's what I'm after

    ASP.NET help

  • Need Help
    L learningman

    To [ ] St. [ ] Zip [ ] City [ ] I can get one textbox to work but not several or even 2

    ASP.NET help

  • learning how to send an email on a asp.net 2.0 page
    L learningman

    How do I find my servername and port number on my own computer? I want to do this on my local before i use a hosting.

    ASP.NET question csharp asp-net hosting tutorial

  • how would???
    L learningman

    Im my online photo album i have three tables categories, pictures, and comments only logged in people can post or edit or leave comments. I also have a chat room that only logged on users can chat on. When you sign up for an account you add name ..password,ect,ect, and an Email address. Now here is my question, I want to have a link or button click that would say leave message..to the person that posted the pic. What table would the Email go in the pictures or the comments,or would I need a fourth table? Any help on this would be greatly appreciated. I seen a working example of this at Plenty of fish .com you click on a pic after you create an account and you will see the send message button. But you never see the persons email. I would like this but am sure i am not smart enough yet on this matter Sincerly Paul quinn

    ASP.NET question com help tutorial lounge

  • Got a hosting co Negox.com but......
    L learningman

    How do I disable the custom error???

    ASP.NET com hosting help question

  • Got a hosting co Negox.com but......
    L learningman

    When I type in my site all I see is my custom error page Where do I start? What do I do?

    ASP.NET com hosting help question

  • how do I?
    L learningman

    I have built a online photo album that will feature pics of great looking american women with a chat box that talks with everyone. What I want to build is a message box that you hit a send button and send a message to the corresponding pic. Any suggestions or where to look?

    ASP.NET question lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups