|
Hi,
I have successfully to create popup window when smartnavigation= true. But
how to set the focus on the child window instead of parent one.
Please help if any body knows this problem....
Thanks
Regards
lak
|
|
|
|
|
How to save horizontal scroll bar position on page postback
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
its not working yaar
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
hi friends,
i am using 12-hour format time and
i have two textboxes such as start time and reach time...
i want to compare two textboxes time values being entered...
compare validator is not working since i am using 12-hour format..
can u suggest me the alternative...
regards
gayathri...
gayathri
|
|
|
|
|
|
thank you deepak..
but the above code is working to compare system time with a specific time..
my requirement is that i have to enter starttime and reachtime in textboxes and then compare accordigly...
if u have nay idea then please send me..
|
|
|
|
|
use Javascript to compare both textbox.
Devjit ..
|
|
|
|
|
can u please send me the javascript to be made use of...
|
|
|
|
|
You Can get the value using javascript like this
document.getElementById('textboxid').value;
and compare as u want.
Devjit ....
|
|
|
|
|
I have a small site where I want to allow people to upload a small XML file (via FileUpload control) and then "load" it into another page to edit and save back.
At the moment I am loading the file into an XmlDataDocument using FileUpload.PostedFile.InputStream and I am then storing this in the Session object as I don't want to save anything to the server if poss. e.g Session["myXml"]
This works perfectly locally and 90% of the time works on the server...but occasionally I get a null object error...despite having try/catch blocks around everything. Wierdly, if you F5 refresh the page, it usually loads after a refresh or two.
a) Is using the session object like this a "bad thing"?
b) Is there a better way?
c) Any idea how I trap the null object error as there is already a try/catch on the method that fails and around ALL the code in Page_Load().
Thanks for ANY help! It's doing my nut in!
|
|
|
|
|
What would be the xml file size (max)??
|
|
|
|
|
Are you angry with your webserver? Too big objects in Session degrade performance. You may need to review your design.
|
|
|
|
|
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.
|
|
|
|