your problem could be on the AdminAddComment.aspx page.
ssaran 0 Newbie Poster
For this kind of application WEBDAV protocol is usually used.
WEBDAV is very secure and programmers are using it to access all folders in the existing mail system.(GAL,Contacts etc.)
Once you get information you can easily bind them to the custom designed pages.
Good luck
Salih Saran
ssaran 0 Newbie Poster
<asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
<asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
<asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton>
Where are starting tags for the last ending tags of the "</asp:HyperLink>" and "</asp:ImageButton>" ?? (lines 5,12 and 13 in your code)
ssaran 0 Newbie Poster
Check syntax of the following lines:(ImageUrl="...."... ???
<asp:HyperLink id="HyperLink3" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink">file:///C:\Inetpub\wwwroot\ebook\Pic\editprofile1.gif">HyperLink</asp:HyperLink>
<asp:ImageButton id="ImageButton2" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\authoring.gif"></asp:ImageButton>
<asp:ImageButton id="ImageButton3" runat="server" ImageUrl="<A href="<A href="file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton></FONT></P">file:///C:\Inetpub\wwwroot\ebook\Pic\publishbook1.gif"></asp:ImageButton>
ssaran 0 Newbie Poster
All controls on the form should be accessed from the delegate.
Code i send to jou works perfect on my machine.
Error you are receiving inicates that variable 'responseList' is Controll which is not case in my code , it is simly ArreyList instance declared as private memeber.
Here is my Form1.Designer.cs file
namespace ThreadingTestCS
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.nonThreadedButton = new System.Windows.Forms.Button();
this.multiThreadedButton = new System.Windows.Forms.Button();
this.responseCountLabel = new System.Windows.Forms.Label();
this.loadingPB = new System.Windows.Forms.ProgressBar();
this.loadingTimer = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// nonThreadedButton
//
this.nonThreadedButton.Location = new System.Drawing.Point(12, 201);
this.nonThreadedButton.Name = "nonThreadedButton";
this.nonThreadedButton.Size = new System.Drawing.Size(136, 23);
this.nonThreadedButton.TabIndex = 0;
this.nonThreadedButton.Text = "non Threaded Button";
this.nonThreadedButton.UseVisualStyleBackColor = true;
this.nonThreadedButton.Click += new System.EventHandler(this.nonThreadedButton_Click);
//
// multiThreadedButton
//
this.multiThreadedButton.Location = new System.Drawing.Point(154, 201);
this.multiThreadedButton.Name = "multiThreadedButton";
this.multiThreadedButton.Size = new System.Drawing.Size(126, 23);
this.multiThreadedButton.TabIndex = 1;
this.multiThreadedButton.Text = "multi Threaded Button";
this.multiThreadedButton.UseVisualStyleBackColor = true;
this.multiThreadedButton.Click += new System.EventHandler(this.multiThreadedButton_Click);
//
// responseCountLabel
//
this.responseCountLabel.AutoSize = true;
this.responseCountLabel.Location = new System.Drawing.Point(52, 53); …
ssaran 0 Newbie Poster
Thanks for your suggetion :)
But again an error is coming (at the point u mentioned ) :sad:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Collections; namespace thrds { public partial class Multithreaded : Form { public Multithreaded() { InitializeComponent(); } private ArrayList responseList1 = new ArrayList(); private bool m_Toggle; private delegate void ThreadAccessControls(); private void AccessControls() { if (m_Toggle) { responseCountLabel.Text = "List contains " + responseList1.Count.ToString() + " elements"; nonThreadedButton.Enabled = m_Toggle; multiThreadedButton.Enabled = m_Toggle; } else { responseCountLabel.Text = "0"; nonThreadedButton.Enabled = m_Toggle; multiThreadedButton.Enabled = m_Toggle; } } private void Multithreaded_Load(object sender, EventArgs e) { } /* * Deplay processing for the specificed number of milliseconds */ private void Delay(int v_MilliSeconds) { long startTime = Environment.TickCount; while ((Environment.TickCount - startTime < v_MilliSeconds)) { } } /* * Fill the listbox with hello world buttons. Pause for a period * of time between each message. */ private void FillList() { responseList.Clear(); m_Toggle = false; ThreadAccessControls access = new ThreadAccessControls(new EventHandler(AccessControls)); Invoke(access, null); for (int i = 0; i <= 10; i++) { responseList1.Add("Thread #" + i.ToString()); Delay(1000); } m_Toggle = true; Invoke(access, null); } /* * Toggle the form buttons on or off accordingly. */ private void ToggleButtons(bool v_Toggle) { this.nonThreadedButton.Enabled = v_Toggle; this.multiThreadedButton.Enabled = v_Toggle; } private void testResponseButton_Click(object sender, EventArgs e) { this.responseCountLabel.Text = Convert.ToString(Convert.ToInt32(this.responseCountLabel.Text) + 1); } private void multiThreadedButton_Click(object sender, EventArgs e) { System.Threading.Thread sampleThread = new System.Threading.Thread(new System.Threading.ThreadStart(new EventHandler(FillList))); sampleThread.Start(); } private void nonThreadedButton_Click(object sender, …
ssaran 0 Newbie Poster
This code will work(Sorry it is in Vb):
Public Class Form1
Private responseList As New ArrayList()
Private m_Toggle As Boolean
Private Delegate Sub ThreadAccessControls()
Private Sub AccessControls()
If m_Toggle Then
responseCountLabel.Text = "List contains " + responseList.Count.ToString + " elements"
nonThreadedButton.Enabled = m_Toggle
multiThreadedButton.Enabled = m_Toggle
Else
responseCountLabel.Text = "0"
nonThreadedButton.Enabled = m_Toggle
multiThreadedButton.Enabled = m_Toggle
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nonThreadedButton.Click
End Sub
Private Sub multiThreadedButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles multiThreadedButton.Click
' Launch a thread to do the update
Dim sampleThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf FillList))
sampleThread.Start()
End Sub
Private Sub Delay(ByVal v_MilliSeconds As Integer)
Dim startTime As Long = Environment.TickCount
While (Environment.TickCount - startTime < v_MilliSeconds)
End While
End Sub
Private Sub FillList()
responseList.Clear()
m_Toggle = False
Dim access As New ThreadAccessControls(AddressOf AccessControls)
Invoke(access, Nothing)
'responseCountLabel.Text = "0"
'ToggleButtons(False)
For i As Integer = 0 To 10
responseList.Add("Thread #" + i.ToString)
Delay(1000)
Next
m_Toggle = True
Invoke(access, Nothing)
'ToggleButtons(True)
End Sub
'Private Sub ToggleButtons(ByVal v_Toggle As Boolean)
' nonThreadedButton.Enabled = v_Toggle
' multiThreadedButton.Enabled = v_Toggle
'End Sub
End Class
ssaran 0 Newbie Poster
:eek: Hi all
Scenario:
I am creating dynamic PDF reports using XML and FONET. Reports include graph images which are also created on fly. Each time when report is requested graphs are created and saved on the server’s file system to be used by PDF. To save space on the HD I am using same files per user session.
Reports are also rendered as HTML using XSLT. HTML does not use graphs from the files, images are directly rendered to the response stream.
Problem:
Combination IIS - DOTNET framework 1.x works fine in both cases (PDF and HTML rendering)
Combination IIS - DOTNET framework 2.0 works fine for the HTML rendering.
In case of the PDF rendering as soon as images are referenced by PDF workers process locks the files and it becomes impossible to write to the files.
Does anyone know what’s happening here?