|
Ahhh, so you finally decided to share with everyone what you were talking about! Just saying "response file" could mean anything. It would have been better to put the links you posted into your first post so everyone could know which incarnation of "response file" you were talking about.
|
|
|
|
|
I am designing web application in which i want to find Control's ID and TEXT from .ASPX file and I am also using master page.
Is there any method exist to find ID and TEXT in Code Behind? Please suggest me any solution.
|
|
|
|
|
if you want control of master page then use
Page.Master.FindControl("ctrlID")
else
Page.FindControl("ctrlID")
Cheers!!
Brij
|
|
|
|
|
Thanks For Your Reply,
I want to find Control ID and TEXT from .ASPX page and i dont know the Control ID
|
|
|
|
|
id you donno the controll IDs then I think you can get all the controls that atre available on the page the check it one by one by foreach loop by it you will get IDs and value
Cheers!!
Brij
|
|
|
|
|
thankx Brij
|
|
|
|
|
This is not ASP.Net forum, try to post your question there
Regards,
Lev
|
|
|
|
|
Don't cross post.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
What might be the causes of Access Violation exception while calling a method of a c++ dll from C#.
|
|
|
|
|
Why don't you provide some more details
Regards,
Lev
modified on Friday, December 12, 2008 1:31 AM
|
|
|
|
|
Hi,
I need to upload file in a folder at FTP server,i have already posted this but i need a coding guide not a software for this.
The code i used is,
txtfilurl.Text = FileUpload1.PostedFile.FileName;
FileInfo filename = new FileInfo(txtfilurl.Text);
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(txtaddr.Text + "/" + filename.Name);
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(txtuser.Text, txtpass.Text);
request.KeepAlive = false;
request.UseBinary = true;
Stream ftpstream = request.GetRequestStream();//--->This line shows the error
FileStream file = File.OpenRead(txtfilurl.Text);
int len = 1024;
byte[] buff = new byte[len];
int bytesread = 0;
do
{
bytesread = file.Read(buff, 0, len);
ftpstream.Write(buff, 0, bytesread);
}
while (bytesread != 0);
file.Close();
ftpstream.Close();
Error msg is:Web exception
The remote server returned an error: (550) File unavailable (e.g., file not found, no access).
|
|
|
|
|
Judging by the error, you gave an invalid path to the file on the FTP server. It's impossible to tell just by looking at the code.
|
|
|
|
|
Hi,
Thanx for replying,i am sure that i have given the right path i have checked many times.
Is there is any other way to do the upload.
|
|
|
|
|
In that case, I'd use something like EtheReal to watch the TCP traffic coming out of your machine and see what the FtpWebRequest is actually sending to the FTP server.
|
|
|
|
|
1)A program returns a long string like the strings below, delimited by pipe character, where errorcode, error details, and long reason are stored. Write c# code to get the long code out of the response received.
0|R002|this is not a valid transaction.
1|R003|the card has expired.
2|R004|card code is invalid.
2)
a. table tblcode has codes like the following
CUPA0001
CNOI0001
CUPA0002
CNOI0003
CDEL0001
b. objective is to get the next code given the three digits unique code.e.g. Given DEL, NOI, UPA the next code is CDEL0002, CNOI0004, and CUPA0003
write a function in sql server to achieve this .the function will get input parameter as, city code in 3 characters e.g. DEL,NOI,UPA and should return the next code as per logic above
|
|
|
|
|
never use the word "Plz solve the prob its very urgent"
this may be urgent for u ..
but be cool to be silent so tht let others read and answer u
Good day
TJS
|
|
|
|
|
ok
thanks for giving me the suggestion
|
|
|
|
|
u r welome
i had a similar experience so i adviced u??
and many have fire me for posting questions in the manner u have just done
take it easy man
|
|
|
|
|
If you want to get the string
"this is not a valid transaction." from the response,you can use this:
str.Substring(str.LastIndexOf("|")+1,str.Length-(str.LastIndexOf("|")+1))
where str="0|R002|this is not a valid transaction."
regards,
SRK
|
|
|
|
|
How about you have a crack at your own homework, and if you have a specific question about some of your code then im sure someone will help.
|
|
|
|
|
Hmmm Homework,
atleast start trying yourself
we can help you in some particular thing you are not able to do
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
if (T1.Text = "admin" && T2.Text = "admin")
{
Console.WriteLine("Login success");
}
wasts wrong in this code..
am getting error
self confidence+hard work=SUCCESS
|
|
|
|
|
use
if (T1.Text == "admin" && T2.Text == "admin")
Cheers!!
Brij
|
|
|
|
|
This is the most frequent programming error of all times: You used the assignment operator (= ) instead of the comparison operator (== ) in your if statement.
Use if (T1.Text == "admin" && T2.Text == "admin") instead, and everything is fine...
Regards
Thomas
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
Thanks Briji and thomas,
self confidence+hard work=SUCCESS
|
|
|
|