|
SayamiSuchi wrote: it doesn't give the output.
What does that mean? Did you debug it? What did you see/get? Give us your error message so we can understand it better.
|
|
|
|
|
yes i did debug.
it said
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at categories.Default_View.filetesting() in C:\Documents and Settings\smanandhar\My Documents\Visual Studio 2008\Projects\categories\Default_View.ascx.cs:line 1209
suchita
modified on Thursday, July 22, 2010 10:29 AM
|
|
|
|
|
I have one asp.net page (Page1) with llots of controls.
After submitting this page, I have another page (Page2) on which there is one link which redirects me again to the same page from which I came from but with prefilled values. On the original page (Page1), there is one link "Clear Fields". Onclick of this link I want to clear all the controls.
document.forms[0].reset() --- Not working in this case.
Before submitting the form, if I fill up the values and click on "Clear Fields" link, I am able to reset all the controls but once I submit the form and came back to the same page, the above javascript code is not working.
Can anyone help me!!
|
|
|
|
|
Well, you would need to set all the control values to their default values. Look Here[^]
|
|
|
|
|
First of all it seems an extremely poor design to one a page that simply redirects back to the page you came from, and is most likely causing you more difficulties. Using viewstate, or some other form of persistence, the controls can retain there values between postbacks. You should also be using a cross-browser JavaScript library such as JQuery.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Here is my problem...
On first page, i have some fields for user input. Based on user input on first page, will display the results on second page.
On second page, i have modify button, which takes me to first page. So clicking on reset button on first page doesn't clear off all the fields if i coming from second page.
Before submitting the first page, the values are resetting.
|
|
|
|
|
This functionality can, and should, be accomplished on the same page. Enabling or disabling the controls to put them in edit mode or non-edit mode is the typical implementation and what would be expected by users.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi Guys ,
In my ASP.net application i am using an crystal report viewer by which i will show the Crystal Report in the page.
with the help of the report document i will do the data base log on via
dsn name, database name, user name and all..
here my DSN is not valid,
even though the reportdocument.setdatabaseLogon() is doing fine with out any error, but at the last it is showing me the login page.
i want to check and if the DSN is invalid i need to show and exception,
we can check the DSN from registry but in my requirement that wont solve my problem.
Any suggestions.?
|
|
|
|
|
Attempt to connect to the database using ADO.NET before allowing the page to load, ie
System.Data.OleDb conncetion = new System.Data.OleDb(connectionString);
connection.Open();
|
|
|
|
|
How could I connect to ms-sqlserver by using ASP Language?
|
|
|
|
|
First of all, this is a very fundamental question. If you don't know this, you are not ready for programming.
To start, read some books/articles on the internet. Then try out a few samples. Better, try developing a simple application.
Issues will keep coming. Learn this[^]!
..Go Green..
|
|
|
|
|
|
|
DECLARE @spot SMALLINT
DECLARE @str VARCHAR(8000)
DECLARE @strQuery nVARCHAR(1000)
DECLARE @sql VARCHAR(8000)
DECLARE @cslist VARCHAR(8000)
declare @Count int
set @Count=0
set @cslist='CallLog1230,CallLog2230'
MainLoop:
WHILE @cslist <> ''
BEGIN
SET @spot = CHARINDEX(',', @cslist)
print @spot
IF @spot>0
BEGIN
SET @str = CAST(LEFT(@cslist, @spot-1) AS varchar)
SET @cslist = RIGHT(@cslist, LEN(@cslist)-@spot)
print @cslist
goto InComing
goto OutGoing
END
ELSE
BEGIN
SET @str = CAST(@cslist AS varchar)
SET @cslist = ''
print @str
if(@Count=0)
Begin
set @Count=1
goto InComing
goto OutGoing
End
Else
goto EndLoop
END
End
InComing:
Begin
print 'IN'
print @str
End
OutGoing:
Begin
print 'OUT'
print @str
goto MainLoop
End
EndLoop:
return
I am not return from the While loop Please help me to find where i am wrong
|
|
|
|
|
Remove "goto MainLoop" from bottom of "OutGoing:"
Hardik Panchal
|
|
|
|
|
In my asp .net web application project,I used two ajax calendar extenders for fromdate and todate and two text boxes to display the date.I have four radiobuttons.Before,After,between,equals.I have to disable the calendar extendar in page load and when the between radio button is checked,then only that two date calendarextendar will have to be enabled.
please help me to write java script to disable calendar extender
Thank you
|
|
|
|
|
|
Add following code onclick handler of your radio button
document.getElementById("<% =formDate.ClientID %>").disabled = true;
|
|
|
|
|
Hi
My modalpopup panel displays behind the background class of the modal extender(and it is also not positioning to center).
And Backgound also not covering entire screen.
Z-index is setting properly. Works in FF.
Any suggestions would really appreciate.
|
|
|
|
|
same problem here.
it works fine in chrome also
but IE is not displaying properly
|
|
|
|
|
hi all,
can anyone tell me how to integrate stock market chart in asp.net application,how can i get api for that??
thanx in advance.........
|
|
|
|
|
Find your answer here[^].
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
in that one article is deleted ....can u give me information abt api...
i want to display india,UK,USA country's stock information..
|
|
|
|
|
Hi Experts,
I am trying to display webcam video/Preview Image in Web browser. But I am not successes I tried following Methods.
1. Search webcam component
2. Used API calls and some related DLL file also.
Thanks in Advance.
|
|
|
|
|