|
|
aamirzada wrote: I did not find any tutorial that have discus these httpwebrequest and webresponse classes.
Did you try this[^]?
|
|
|
|
|
when i run the application from my local machine am getting some unwanted characters along with the page link in the browser. shown in Bold below.
http://localhost/(S(bgy3ki2mheunfu45eptcu3nv))/contactus.aspx
why it is coming like this. should i do any setting or anyother changes?. will it come while uploading this website. this characters are showing in all the pages.
|
|
|
|
|
It is due to the Cookies You Enable Cookies..!
Check web.config file SesstionState mode..!
|
|
|
|
|
|
Any Time ..!
|
|
|
|
|
Respected,
Thanks For My Previous Problem solving .Now I have Code For
FileUpload Control with Progressbar in Asp.net.......
Thanks And Regards
Lalit
|
|
|
|
|
|
Respected,
My problem is when my Uploaded file size bigger then show Progress bar on FileUpload Control,
while completing the uploding After That It Invisible the ProgressBar
Thanks..
|
|
|
|
|
lrsalunkhe wrote: After That It Invisible the ProgressBar
Can You be More Clear..!
Check the file size before uploading and restrict...!
|
|
|
|
|
Respected ,
No. Not Be Check ! Unlimited Size File Will Uploade....
Thanks..
|
|
|
|
|
You Cant Upload Unlimited size..!
|
|
|
|
|
Respected,
Ok. So Give me Restricted File Uploading Code For FileUpload with ProgressBar..
Thanks.
|
|
|
|
|
Sorry You Misunderstand me ..!There is Maximum file Upload size .Tht what I am Saying .You can Upload any file.
|
|
|
|
|
Respected,
Ok. Sorry for Misunderstanding. So Only .pdf File should be Uploaded.
Thanks.
|
|
|
|
|
lrsalunkhe wrote: So Only .pdf File should be Uploaded.
thts very simple my Friend..!
Keep A RegularExpressionValidator
set the property for validator
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.pdf)$
|
|
|
|
|
|
HI,
I am having a string which is in xml format. i want to populate a dataset using the string. I used the following code . But it doesnt convert.Please help me.
stream = new StringReader(XMLdoc.ToString());
Text = new XmlTextReader(stream);
dsXml.ReadXml(Text);
|
|
|
|
|
|
anu_anu wrote: stream = new StringReader(XMLdoc.ToString());
where is the xml doc present..!
try this..!
ds.ReadXml ("YourFilePath in Server.mapath.xml);
|
|
|
|
|
Hi,
I just have the XML code in XMLdoc as string format.I dont have any xml file.
StreamReader reader = new StreamReader(response.GetResponseStream());
string str = reader.ReadLine();
while (str != null)
{
XMLdoc = XMLdoc + str;
Console.WriteLine(str);
str = reader.ReadLine();
}
|
|
|
|
|
anu_anu wrote: StreamReader reader = new StreamReader(response.GetResponseStream());
string str = reader.ReadLine();
Check The above str reading any document in the form of xml by keeping a break point may tht the reason..!
|
|
|
|
|
|
Check the response stream, and keep a break point on the bolded text ,extract the string str, .and check the string format.Is it coming in the form of XML.
if it is comming..!
use ReadtoEnd metod
HttpWebResponse objResponse = (HttpWebResponse)objRequest.GetResponse();
using (StreamReader sr =
new StreamReader(objResponse.GetResponseStream()))
{
result = sr.ReadToEnd();
sr.Close();
}
|
|
|
|
|
Ya.. It is in the xml format.Is it possible to assign the xml string into a new xml file.
|
|
|
|