.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Issue with MSCaptcha - image is not displayed occasionally.

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
Hello! I am using MONDOR's MSCaptcha control in my ASP.NET 3.5 application, and everything seemed to work fine both locally and remotely, till I started receiving complains from rare users. I am using is for my web site registration, and as I see many people are able to register, I assume that the problem is rare. However, I've heard two complaints from two different users that Capthca image is not displayed at all. They did not add any special blocks to browsers, and both tried several browsers and it did not work in all of them. Is there a known issue like this? Did anybody see such a problem?   here is my code for referrence: web.config: <httpHandlers> < add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/><httpHandlers>   On the page   <%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>    The control itself:   <cc1:captchacontrol id="ccJoin" runat="server" captchabackgroundnoise="Low" captchaheight="60" captchalength="6" captchalinenoise="None" captchamaxtimeout="240" captchamintimeout="6"  captchawidth="200" />       Thanks!

View Complete Post

More Related Resource Links

Announcements with Image in Body, displayed via CQWP


I feel like I've set this up to be as difficult as possible for my non-programmer users ;) There's GOT to be a better way. Any guidance much appreciated.

I have an Announcements-type list on a NEWS subsite, with fields for Title, Body, and Summary (body with image plus first few sentences of Body). I have a separate Picture Library to store the images they'll use in the Body and Summary.

The Title and Summary are displayed on the Site Collection HOME using a CQWP.

My instructions for users are as follows

1. place image in http://site/subsite/imagelibrary/Forms/AllItems.aspx
2. right click on image and select Copy
3. go to http://site/subsite/announcementspage.aspx
4. Click New > New Item.
5. In "Body", click CTRL+V.
6. Add Title, Body, and Summary text.
7. In HTML, add align="left" insite <img> tag.

Adding to http://site/subsite/announcementspage.aspx automatically gets picked up by the CQWP on the home page.

Like I said, it's pretty ugly, esp considering that my users don't know HTML. Recommendations warmly appreciated.

Issue with using the BackgroundWorker - frozen screen and wait cursor not displayed


I have 2 issues which are probably related:

1. My wait cursor does not display
2. My screen is frozen so I cannot click the "Cancel" button to stop the BackgroundWorker thread.

Here is what my code looks like, (I followed the example given at http://msdn.microsoft.com/en-us/library/cc221403(VS.95).aspx )

Class Home

   Dim bkwk As New BackgroundWorker


Public Sub New()

   bkwk.WorkerSupportsCancellation = True

   AddHandler bkwk.DoWork, AddressOf bw_DoWork
   AddHandler bkwk.RunWorkerCompleted, AddressOf bw_RunWorkerCompleted

End Sub

Private Sub btnPreview_Click(ByVal sender As Object, ByVal e As  System.Windows.RoutedEventArgs) Handles btnPreview.Click
      If Not bkwk.IsBusy = True Then
                Cursor = Cursors.Wait
                txtStatus.Text = "Busy ..."
      End If

Bulk editing issue - list cannot be displayed in Datasheet view



On a sharepoint page i click on 'Actions' tab then select 'Edit in Datasheet'  and i see the following error message


"The list cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Windows SharePoint Services is not installed, your browser does not support ActiveX controls, or support for ActiveX controls is disabled. "


I am using XP professional, IE 6.02 to access the sharepoint site.


I was hoping that the hot fix KB938888 would fix that issue, but it did not. bulk editing is a nice feature that i would like to use but i have never been able to. The link to export data to Excel works fine.


if anyone has suggestions, thanks in advance


Specificing where the UpdateProgress image is displayed.



I am displaying a few images in a formview. I want the UpdateProgress image to be displayed in the Image1 rather than below the FormView1, when the next photo is loading.

Below is the code for this page:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="photo_view2.aspx.vb" Inherits="Default2" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="Heading" Runat="Server">
<asp:Content ID="Content3" ContentPlaceHolderID="mainBody" Runat="Server">
    &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fpaConnectionString %>"
        SelectCommand="SELECT [photo_id], [photo_title], [photo_file_name] FROM [fpa_photo] WHERE ([photo_album_id_FK] = @photo_album_id_FK)">

Read Image from excel file Issue


Hello every one.I'm trying to read images from an excel file using OleDbDataReader. My excel file has 6 columns of data, the first 5 are all text but the last is image. While I'm reading the record, It's doing fine on the first 5 columns but return me with a "blank" for the sixth column.

Here is my demonistration code:

  protected void btnImportExcelFile_Click(object sender, EventArgs e)

      string strConn;
      strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" +
      "Data Source=C:\\exceltest.xls;" +
      "Extended Properties=Excel 8.0;";
      OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM Sheet1$]", strConn);

      DataSet myDataSet = new DataSet();
      myCommand.Fill(myDataSet, "Sheet1");
      DataGrid1.DataSource = myDataSet.Tables["Sheet1"].DefaultView;


<asp:Button ID="btnImportExcel

Myprofile image is not displayed in sharepoint application 2007



  I have uploaded my picture in myprofile site. I am not able to see my picture anywhere in the application aganist my name. (Groups, List, Discussion Forum) except in myprofile. The default image is being shown everywhere. I want this to replicate on other users also. Please help me how to proceed on this.Thanks for your time.



Built-in Functions - Text and Image Functions in SQL Server

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

Future versions of SQL Server will not support TEXT, NTEXT and IMAGE data types. Columns with TEXT / NTEXT data type do not support commonly used string functions such as LEN, LEFT, RIGHT, etc. Furthermore, due to the large size of TEXT data you''re likely to see performance issues if you store such data in the database. However, at times you can''t help but use the TEXT / NTEXT / IMAGE data types (for example when supporting 3rd party databases when you cannot change the schema) - this is when text and image functions come in handy.

Program for Format Conversion of An Image

.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.

Configuring Profile Image Export in SharePoint 2010

It's no secret that I am thrilled with the new social features of SharePoint 2010. I am most excited about the new Profile Picture handling. I strongly believe that the more we can show the faces of our colleagues to one another the more connected we will feel. Clearly Microsoft feels that way as witnessed by the many features that make use of the Profile Image like the Activity Feed and Colleagues list

Built-in Functions - Text and Image Functions

Text and image functions operate on TEXT, NTEXT and IMAGE data types. These data types are deprecated with SQL Server 2005 and should be replaced by VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX) when possible. Alternatively you can also consider storing large string values using XML data type. Text and image functions are nondeterministic.

ASP.Net Upload Image to MS Access Database

As you learnt from the previous articles to upload image to the SQL Database in ASP.Net 2.0 and stream that image into the memory to retrieve it from the database and display it on the web page. In this article you will learn how to upload images to the MS Access database in ASP.Net 2.0

First of all create an Access Database and place it in the App_Data folder of ASP.Net web site project. Then create a table "tblImg" with the following fields:

Get pixel format, raw format, property id list and property items image in VB.net - C#.net.

n this simple article you will learn that how we can get pixel format, raw format, property id list and property items image in VB and C#.net.

Get Pixel Format:

Image consists of pixels to get the format of the pixel we have a property named pixel format. This property returns an enumeration of pixel format. This enumeration tells the pixel format.

To demonstrate make a window application. Drag one button and a picture box on form.

Now write the following code on Button click event:

IsapiModule Error 500 Issue


I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:


CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"


MVC2 issue - Stuck. Trying to create a cms with nested partials


I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.

slideshow image gallary using jQuery



i need a gallary like following link.


actually,i bound multiple image in a gridview using handler(.ashx).

for example,in one dep_id(1),there are 6 image and i need to slideing one by one.

could some one help me,how i can do like this?

i think is it easy in jquery.

please someone help me.

Thanking you.

datalist image slide show problem


hi friends

i am binding  images dynamically(back end)for a datalist .iam applying a slideshow for it .I am getting a problem to apply slideshow for dyanmically binded images.If the define in a div statically it working perfectly

for example pls go through my code below:

<script type="text/javascript">
$(document).ready(function() {
        fx: 'scrollLeft' // choose your transition type, ex: fade, scrollUp, shuffle, etc...

<div class="slideshow">
        <img src="images/30_dummy.jpg" width="200" height="200" />
        <img src="images/aquarius.gif" width="200" height="200" />
        <img src="images/star.gif" width="200" height="200" />
        <img src="images/the-proud-indian-flag-1.jpg" width="200" height="200" />

I above code works perfectly and the slide show e

xpath issue


Hi i am using xpath to loop through each node,

the xml is below i can get the value of "link" but i cant get the thumbnail value, have you got any ideas how i can do this, my code is below.



     <link>test 1</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />



     <link>test 2</link>
     <media:thumbnail url="http://test.com/image.jpg" height="75" width="75" />


public void FindLinks(XPathNavigator p_xPathNav, DataTable dt)
            //run the XPath query
            XPathNodeIterator xPathIt = p_xPathNav.Select("//item");

            //use the

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend