|
Is your session timing out and losing your object?
|
|
|
|
|
I don't think it's timing out. Set timeout to 60 anyway, just in case.
XML is 3-4kb only...tiny I think - hence wanting to pass it in Session object.
I wondered if it was the redirect kicking in BEFORE the file has been loaded?
How could I test for this, since it's not null?
<br />
try<br />
{<br />
if (FileUpload1.HasFile)<br />
{<br />
myXml = new XmlDataDocument();<br />
myXml.Load(FileUpload1.PostedFile.InputStream);<br />
myXml.FilePath = FileUpload1.FileName;<br />
Session.Add("myXml", myXml);<br />
Response.Redirect(calcPage);<br />
}<br />
else<br />
{<br />
Response.Write("You must select a File first");<br />
}<br />
}<br />
catch (Exception ex)<br />
{<br />
Response.Write(ex.Message);<br />
}<br />
|
|
|
|
|
Hi all
I have an asp.net application where upon clicking a button all the text boxes and combo box border should be removed so i wrote like this for text boxes it worked fine
TxtFname.BorderColor = Color.Transparent
TxtFname.BorderStyle = BorderStyle.None
TxtFname.ReadOnly = True
But how to do it for dropdown list. Pl help
Prakash Mishra(Banglore,India)
|
|
|
|
|
|
hi Venkatesh
I am not very fa miler with CSS and i need the deliver this proj soon. If u can help pl. or tell me any article. i searched many articles but none helped my problem.
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
.YourClassName
{
BORDER-RIGHT: #1c5180 1px solid;
BORDER-TOP: #1c5180 1px solid;
FONT-SIZE: 8pt;
BORDER-LEFT: #1c5180 1px solid;
COLOR: #656565;
BORDER-BOTTOM: #1c5180 1px solid;
BACKGROUND-REPEAT: repeat;
FONT-FAMILY: Verdana;
BACKGROUND-COLOR: white;
TEXT-DECORATION: none
}
|
|
|
|
|
Removing the border of a select element is only possible in some browsers. Internet Explorer does not support it, Firefox and Netscape does.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
how to show a pop up message if any control is not selected when a submit button is clicked
suparichit
|
|
|
|
|
Use Javascript alert('your message goes here'); for that purpose.
Apurva Kaushal
|
|
|
|
|
Use Javascript
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
If you are using ValidationSummary then there is a MessageBox option too.
|
|
|
|
|
how to set scroll bar at the div bottom
plz help
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
Use Javascript to set the Scrollbar at the div bottom.
var objDiv = document.getElementById("divExample");
objDiv.scrollTop = objDiv.scrollHeight;
And don't mark it as Urgent. I hope you know the Rules of Posting the Questions Here.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
i have done this. but is working for few mint after that when page up lode or refresh then its go to up(because i am using ajax timer)
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I don't think you have precise control over horizontal or vertical scrollbar right?
|
|
|
|
|
You can use CSS if your div is a fixed size and set the overflow:auto style.
|
|
|
|
|
by using 'Microsoft.Office.Interop.Excel.dll' can we set print settings of an excel file?
if possible tell me what and all we can do by using 'Microsoft.Office.Interop.Excel.dll'.
Pradeep Reddy
|
|
|
|
|
|
i have a rate button in my application.when ever it is selected for the firsttime it should work.when it is clicked for second time it should not work...
can u give me the idea how to do this
-- modified at 2:35 Tuesday 10th July, 2007
suparichit
|
|
|
|
|
Its very simple. First of all allow the user to register to rate it. and store the rating in the Database and again if he/she is rating just sent a pop-up that "You have rated already".
And please make sure that before posting the questions read the guidlines and post the question.
And be careful in mentioning the Subject.
Hereafterwards don't put the subject as "help me Plz" be specific to the question and make it a ssubject.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
ok,i will rename the subject.thanx 4 quick response.
i allowed the user to rate.and i made the rate button invisible after giving rate.but when ever that page loaded again it is allowinf the user to rate it.
suparichit
|
|
|
|
|
Allow the User to rate only once. Once if the user voted and get the data and store it in the DB and once again if the user tries to vote pls send the message that "you have rated it before."
Hope you got it.
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Hi
I am using Visual Studio 2005 and ASP.Net to develop a Web application. I created a web usercontrol that contains a Repeater. I bind the repeater to a DataTable that is loaded from a database. Each row in the repeater has a CheckBox. Is it possible disable certain of the checkboxes/rows depending on some criteria?
For example the repeater will show all students that have classes for that day. That means a student may appear in more than one row in the repeater, but he can only physically attend one class at a time. Therefore I would like to disable the other rows or checkboxes for that student so that the teacher cannot check more than one checkbox by accident.
Can this be done and how would I go about it?
Thanks.
Kobus
|
|
|
|
|
having text box and button in a master page.....
issue is
in child page.... when i clik on the (master) button iam not able to retain the value of (master) text box...
plz help me out
|
|
|
|