The problem is when a user control is rendered images are relative to the page it is hosted in. So with your scenario since the first webform is in the root I am assuming that is where the Image folder is as well, and that is why the admin page cant find it because I am betting there is no Image folder where it is. What I would recommend is move that background style setter in the user control into a css file and link the image relative to that. css files are handled differently and an image linked in it is relative to it not that page that is linking the css file.
Try creating the checkbox in the onload routine instead and see if it works that way (give the table or container the checkbox exists in an ID so you can add the checkbox with code behind instead). You are on the right track, absolutely. I think its the weird behaviour that is hanging you.
Which thing is not working properly?
Tell whether the onmouseover event is not working.
Or The onmouseover is working but the id in the hidden field is empty. if so, then you can get the value of the hidden field in ItemDataBound event only.
I don't see any meaningful code here. What is the exact error, and what line throws it ?
What are the methods you're calling ?
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
I have some client side vbscript and I need to pass it some data from the server side code behind file. On the server side it is a text session variable. How do I pass that value to the client side vbscript?
I have a web Application that is compiling well with no Errors, i have Compiled each separately and worked well excluding the setup Project. i have to be honest, i once use the clean before i rebuilded the Solution and i came across this challenge. here is the Error on VS2005
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
please please please help!
i'm writing a asp.net app that imports data from an excel spreadsheet into a sql database, i slect a excel file and iterate through each row extracting the data, it works fine from my code and on the server but when i try doing the import from any other machine i get the following error:
System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC
my code is as follows
if (filMyFile.PostedFile != null)
// Get a reference to PostedFile object
HttpPostedFile myFile = filMyFile.PostedFile;
// Get size of uploaded fileint nFileLen = myFile.ContentLength;
// make sure the size of the file is > 0if (nFileLen > 0)
// Allocate a buffer for reading of the file
byte myData = new byte[nFileLen];
string strff = Path.GetFileName(myFile.FileName);
//WriteToFile((Server.MapPath(strff)), ref myData);// initialize the Excel Application class
ApplicationClass app = new ApplicationClass();
Workbook workBook = app.Workbooks.Open(strff,
// get the active worksheet using sheet name or active sheet
Worksheet workSheet = (Worksheet)workBook.ActiveSheet;
int index = 0;
// This row,column index should be changed as per your need.// i.e. which cell in the excel you are interesting to read.object rowIndex = 2;
object colIndex1 = 1;
object colIndex2 = 2;
object colIndex3 = 3;
object colIndex4 = 4;
object colIndex5 = 5;
object colIndex6 = 6;
object colIndex7 = 7;
object colIndex8 = 8;
object colIndex9 = 9;
while (((Range)workSheet.Cells[rowIndex, colIndex1]).Value2.ToString()!= string.Empty)
string OrderNumber = ((Range)workSheet.Cells[rowIndex, colIndex1]).Value2.ToString();
string FullName = ((Range)workSheet.Cells[rowIndex, colIndex2]).Value2.ToString();
string arrayFullName = FullName.Split(' ');
string FirstName = arrayFullName.ToString();
string Surname = arrayFullName.ToString();
string CustomerID = ((Range)workSheet.Cells[rowIndex, colIndex3]).Value2.ToString();
string VoucherNumber = ((Range)workSheet.Cells[rowIndex, colIndex4]).Value2.ToString();
string Address = ((Range)workSheet.Cells[rowIndex, colIndex5]).Value2.ToString();
string CustomerCellNumber = ((Range)workSheet.Cells[rowIndex, colIndex6]).Value2.ToString();
string CustomerTellNumber = ((Range)workSheet.Cells[rowIndex, colIndex7]).Value2.ToString();
string ConsignmentNumber = ((Range)workSheet.Cells[rowIndex, colIndex8]).Value2.ToString();
string HardwareDesc = ((Range)workSheet.Cells[rowIndex, colIndex9]).Value2.ToString();
Could you explain what you mean by this, I'm taking it as it works fine through debugging against your local environment and against a server environment whilst running a browser on that server, but not when browsing from another computer against the server?
1. Create directory “C:\Windows\SysWOW64\config\systemprofile\Desktop ” (for 64 bit Windows) or “C:\Windows\System32\config\systemprofile\Desktop ” (for 32 bit Windows)
2. Set Full control permissions for directory Desktop (for example in Win7 & IIS 7 & DefaultAppPool set permissions for user
آنقدر در زندگی شکست خورده ام تا عاقبت راه شکست دادن زندگی را فراگرفتم
Last Visit: 31-Dec-99 19:00 Last Update: 1-Dec-23 20:38