i have a gridview that contains a template field in my page. in this template field there is a combobox and a label. i want to change the text of the label when the combo box is changed, so when i'm trying to access this label in the selectedindexchange event it doesn't show the label name. dose any one can help me with this.
Hey guys, am using a file uploader for a user to select a file,
But only the files in my working directory are allowed. If I
select a file outside my working directory i get an error saying:
the path of the file could not be found...I would to choose a file
from different directories
Does any know what i can do on this one?
Hey thanks guys for ya reps, well i wish i would xplain this better,
Here is a piece of code:
below 'files' is the name of my file uploader
HttpPostedFile myFile = files.PostedFile;// Get a reference to PostedFile object
string strFilename = Path.GetFileName(myFile.FileName);//path of a file
if (strFilename != "")//check if a user has selected a file
string lines = File.ReadAllLines(strFilename);//will read all lines from a file
//here a runtime error fires saying the file path was not found
Reason: As anyone one else knows, when you choose browse on a file uploader, you can only select a file if it is present in the dialog box that opens.
So if I select a file in my working directory, it works ok but if i select a file 'Outside' my working directory then I receive the error above(file not found).
E.g my working directory is: C:\MyProject\SMS Send\contacts.txt this works
and if I choose: C:\Documents and Settings\Morgan\Desktop\testing.txt this will give a FileNotFound exception,
and when i look at this exception it is pointing to:C:\MyProject\SMS Send\testing.txt which is my working directory. I don't quiet understand why it is searching for the file from my working directory..
Actually I got this requirement to implement in a project few days before.You are 100%
correct. Thankyou for your suggession .I will again search in
google and any doubts if I got then you are the best person to clarify it.
I am having the path now as
http://localhost/Products/notebooks-laptops/222 =>category and its id
but I want
but the search condition in application is through intCategoryId(222) so will require it.
2) In the above web.config code the second rewrite is for details of that product which is clicked.
my url is
But its goes in both page products and productdetails page and finally in products and application get hanged.Is there is any mistake in rewriter code i.e rule in config file
PLease help me me for both the Probelm.Any help is appreciated
I have a very urgent requirement where i have a pdf file containg all the information in table format.
i have to trasfer it to database .HOw can i do it.
Is it possible to get the data in xlsheet so that i can transfer the data from xl sheet to database