.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

Picture failing to load on form

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :ASP.Net

 I have an .aspx page with a gridview and a details view for looking up products. It is working perfectly. When I select "Details" on the gridview the details view accurately populates.

I added an image named TagImageand need that image to display the correct one based upon the product changed when "Details" is hit. I'm using code behind and have checked my image directory string to make sure it is OK but the images do not display. Here is the vb.net code hehind I am using that successfully populates the details and was hoing it to display the picture:

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

        AccessDataSource2.SelectParameters("ProdID").DefaultValue = _
         TagImage.ImageUrl = "www.somewebsite.com/images/" + "ProdID" + ".jpg"     'e.g. image name = 1234.jpg and ProdID = 1234

    End Sub



p.s. I tried 

TagImage.ImageUrl =

View Complete Post

More Related Resource Links

Infopath cannot load this form. Either the signature is corrupted, or the certificatie used to sign



I have a whole bunch of forms contains errors like whenever you try to open it up.

Infopath cannot load this form.  Either the signature is corrupted, or the certificatie used to sign this form is expired or revoked.

The forms were orginally created with digital signature with it.  But we were in the middle of transition from one company to another company.  The digital signature was no longer valid.  Actually, the certificate should have been expired by now.  I removed all the signatures for all of the forms.  So they can continue using the forms to fill in the information.  The problem right now, is trying to open the old forms with digital signature on it.   Not only the company has changed.  We also moved sharepoint from the old server to the new server.

Any idea to resolve th

Workflow Service failing on high load

Hi, I am load testing my workflow service to ensure that it can sustain high loads for a high volume transaction application. I am using Visual Studio's Load Test to run on a simple unit test to call the workflow service. I have configured the bindings on my service as follows:  <bindings>      <netTcpBinding>        <binding portSharingEnabled="true" closeTimeout="00:10:00"                 openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"                 maxBufferPoolSize="20480000" maxBufferSize="20480000" maxConnections="10"                  maxReceivedMessageSize="20480000"  >                    <security mode="None" />        </binding>      </netTcpBinding>  &n

opening a web browser without opening form on windows form load event

Hello All, I have a main frame which has a display button. after clicking on display button I usually open a windows forms. Now I have a requirement to open a web page after clicking on display button. I should not show windows form to the user. for that I had written following code in the Form_int (override) event of windows form. System.Diagnostics.Process.Start(http://www.google.com); and I commented out ShowDisplay(); code.  Everything looks good till now and when I run the project and clicked on display button web browser has been opened, but if I click again another web browser is being opening. but I don't want another browser to be opened. can anybody please help me in that. Thanks in advance.

ASP.NET: How to Load image and save to database form clientside

Hello, can any one help? I am using HTTPHandlers for loading the image from the database I need to change the image and save it back to the database from the client side, that is I need to browse image at client side and save the image as bytes in to databases, how to do this? Regards, satish  

how to merge contents of a form library and picture library into a report (word or pdf) document

Hi all           I want to generate a report  containing data from a form library and pictures from a picture library. I am able to generate ms word report from data filled in form library using http://www.bizsupportonline.net/infopath2007/convert-infopath-form-into-word-2007-document-xslt-c-sharp.htm . . But now actually i need to merge images from a picture library into that word  document . thnxs 

WPF Designer failing to load in Windows 7 (x64)

I have a new, "Clean" install of Windows 7 x64 edition (hard drive re-format and all).  Installed VS 2008 + SP1 from teh MSDN DVD's.  I do have a couple of third party component sets installed.  I've searched for the errors I'm getting, and based on the common responses, I have :

1) Removed and re-installed Visual Studio.  THis changed the message, but still fails.  I did not note the first message, sorry.
2) Do not have silverlight installed (unless it comes automagically with Windows 7)
3) Have never installed any beta versions of SP1
4) Tried removing third party components.  No effect.

If I now create a brand new, empty WPF project, and try to open the designer on the main dialog, I receive the following exception :

Could not load file or assembly 'WindowsBase, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.Initialize(DefaultDomainProxy proxy)
   at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.Initialize(DefaultDomainProxy proxy)
   at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identity, Assemb

upload images to a picture library from infopath form



   I am having an infopath form, from where i need to upload images to picture library . 

Web form page load event


I have  Web page that uses LinkButton control inside Template Fields of Gridview.

I am trying to work on LinkButton Click event and trying to preserve the Value of LinkButton that user click, and based on that value, i want to refresh tha page data.

I used CommandName and CommandArgument property of Linkbutton, but i can use that property only in GridView_RowCommand method by checking e.CommandName expression. But the problem with that Gridview_RowCommand event fire after all other page_load activity. So the value never used in the page_load event to refresh the data in all other control.

I also tried to use OnClick Method, Session variable and Hidden variable. but when i run Response.Redirect method from Gridview_RowCommand, it clear all the Session and Hidden variable values. also tried (Response.Redirect(,false)) method but never got success.

Any suggestion will be appricated in advance.

how to load image from button1 to button8 in my form ?



i have 25 button's in my form button1..button2......button25

i need to load image only from button1 to button8 (in any loop)

how i can do it ?

thank's in advance

how can i load a window1.xaml form from click event fuction of a button

how can i load a window1.xaml form from click event fuction of a button

Why is this failing when i try to submit my form


I have 1 field that is setup for date, but when i try to submit my page i get an error. in my class i have my insert method setup as DateTime TempEndTime, (variable name)

My insert parameter is like so:

cmd.Parameters.Add("@TempEndTime", System.Data.SqlDbType.DateTime).Value = TempEndTime;

 And my code behind i have this:



This is the error detail.
 Input string was not in a correct format.

The TroubleShooting Tips window has a message, "When converting a string to DateTime, parse the string to take the date before putting  ....

edit form load slow



I have recently noticed that ,my list edit form page load time is more compare to old version .

I have a large list with 15,000 items and 43 fields. Out of 43 fields only 25 fields available for edit in edit form.

and 12 fields are lookup and I have field edit permissions(code art codeplex solution http://sppex.codeplex.com/) enabled for different users.

My new item form is loading very quickly but edit form taking more than a minute. I tried with helath reports and firebug and yslow tools.

I didn't success with any reason. I request you to send me why it is happening to the edit form page only and that too with IE 8

In mozilla it is loading in max 20 seconds. I tried all IE 8 testings but no success.

Let me know what can I do to improve page load time for my list edit form.

Please help it out.

I am reposting again in this forum from other sp2010 forum


Auto click Literal Control on Form Load


Hi Everyone,

          How can one Auto click a Literal Control button on Form Load???

SharePoint Form Authentication site showing Error for few actions in Picture library.


I have extended my web application (with zone Extranet) and enabled Form Authentication, Enabled Client Integration and SSL.

My problem is: In my picture Library 

     1. Actions - Download/Send to actions are not working, getting error message: "Picture Manager is unable to open   pictures over the internet that are not from a windows SharePoint Services picture Library. Please specify a valid picture library and try again".

    2. Actions - Open with Windows explorer getting the error message:"Documents in this folder are not available. The folder may have been moved or deleted, or network problems may be preventing a connection to the server".

   3. In the Explorer view i am getting : "Please wait while Explorer View is loaded. If Explorer View does not appear, your browser may not support it".

But when I open the same library and do the above actions in default zone (port 80), it is working perfectly.

I have SharePoint service pack 1 and infr

problem with Form in visual studio load with delay


my project have a base form

all form in project loading bad. mean tha control on it splash.

where is problem?

C# Is My World

How to load another application into another's form


Hey guys

I'm wondering if anyone knows how to load an application, say word, as a child form of my application

I know how to load forms into another but I would like to start an application from my app and have it loaded into that form.


A better description is how your able to have a guest OS load application but with just a form to contain them

how to load form with many controls Smooth on Winform ?

i have in my C# program form with DataGridView
when i pick row and press button, I present control panel with some textboxs
that fill from the DataGridView.
when the control panel is show - i see his build on the screen (And it's not pleasing to the eye).
how to show this control panel Instantly ?
thanks in advance 

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