|
Hi all,
I got this following error very rarely but occurring some how .. I don't know what exactly happening in my code.. Can anyone say why this error occurs and is this the documentation error in ASP.NET ?
Error I received is...
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.IndexOutOfRangeException: There is no row at position 0. at System.Data.DataRowCollection.get_Item(Int32 index) at CSIII.AddNote.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thanks in advance ,
Swapna.
swapna
|
|
|
|
|
swapna_samala wrote: is this the documentation error in ASP.NET
What is documentation error ?
swapna_samala wrote: System.IndexOutOfRangeException: There is no row at position 0. at System.Data.DataRowCollection.get_Item(Int32 index) at CSIII.AddNote.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at
The exception detail is clearly explained here. You are trying to access a row from a DataRowCollection which is empty.
|
|
|
|
|
U r trying to access an invalid index of Rows collection. U r accessing beyoynd the row limits . thim may cause indexoutofrangeexception
|
|
|
|
|
How to upload image on click on only imagebutton
how to open "open file dialoge box" without use of file upload control in asp.net
Best Regards,
Chetan Patel
|
|
|
|
|
You can't. That control is special, it's the only way to upload something, and it's restricted in terms of things you can do to interact with it. You can't put values into it, for example.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
I am facing some problem in passing tweo parameters using Eval in GridView.
I tried like this, but there is some javascript error-
<asp:hyperlink id="HyperLink2" runat="server" navigateurl="<%#" +="" eval(="ReportNumber" )="" %="">'
Text= <%# Bind("AcceptNumber") %> /asp:HyperLink>
function OpenDialog(rid,AcceptNumber) {
window.showModalDialog( "PopupAcceptfrm.htm?ReturnList?ReportNumber= "+ rid+ "&AcceptNumber="+ AcceptNumber+ " ',window, 'dialogWidth:800px;pxcenter:yes;help:no;resizable:no;status:no ")
}
when i click on hyperlink in GridView, it shows some havascript error.
this error says that the second parameter i passed , is not identified.
can anybody tell me how to pass two parameters in a javascript function using Eval.
Please help me.
|
|
|
|
|
And what is the URL pointing to ? I see only one parameter, but it's all messed up, did you get your formatting wrong ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
here i m trying to describe with more focus--
I am facing some problem in passing two parameters using Eval in GridView.
I tried like this, but there is some javascript error-
this hyperlink column is in Grigview. which is bind with SQL server Databse.
<asp:hyperlink id="HyperLink2" runat="server" navigateurl="">]]>'
Text= '<%# Bind("AcceptNumber") %>'>
//the javascript function--
function OpenDialog(rid,AcceptNumber) {
window.showModalDialog( "PopupAccept.aspx?ReturnList?ReportNumber= "+ rid+ "&AcceptNumber="+ AcceptNumber+ " ',window, 'dialogWidth:800px;pxcenter:yes;help:no;resizable:no;status:no ")
}
when i click on hyperlink in GridView, it shows some havascript error.
this error says that the second parameter i passed , is not identified.
can anybody tell me how to pass two parameters in a javascript function using Eval.
Please help me.
|
|
|
|
|
window.close() function closes the current web page , but it shows an alert message box befoe closing it.
can i close the window without the alert box?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
No, because the user is always given an option to not close the page.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have two web pages named abc.aspx and def.aspx
currently i am in the abc.aspx page , while working in this page , can i refresh the def.aspx page ?
both the page are currently opened.i mean one is a pop up window.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Yes, when you create a popup, you can get a reference to it in javascript, which you can use to refresh it, I believe. I don't really know how, off hand, but I do believe it can be done. Have you tried google.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
why u need wondow.close() function.
Best Regards,
Chetan Patel
|
|
|
|
|
U access the parent window using opener property.
for an example If a window creates a popup window then it will be the opener window for the popup.
So inside popup u can access the parent window as
winodw.opener
|
|
|
|
|
you can close the window without an alert.
just use this
<script language=javascript>
function closeornot(){
window.close(opener=0);return true;
}
</script>
put this where you want to call the function
onclick="return closeornot();"
this should work as expected.
Regards
modified on Thursday, February 28, 2008 10:53 PM
|
|
|
|
|
Q1. Tracking Session State ..i came to know that it is done in
three ways ..
1. via cookies
2. URL
3. client profiles.
I know first one what about 2 and 3 how to track the session state
Please tell me
thank u
Sindhu tiwari
* I need some technical description *
its me sid
|
|
|
|
|
Please dont ask again, people can still see your other thread, and are trying to help you there.
Realistically, if you're working on any ASP.NET code, you should probably stop, you should buy a book for beginners and work through it.
You're wrong, session state, cookies and storing values on the URL are three different things.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Exactly i have stopped working and started reading a book ASP.Net 2005 step by step
by George Shepherd...
So there it is written that session tracking is done in three ways as i mentioned earlier ..
...as i too got confused thats why i asked here
...
If i am not wrong its a new question so new thread.....
anywayz i will not repeat this again ...
Thank u
Sindhu Tiwari
its me sid
|
|
|
|
|
hello frnds,
i already store ™ sign in database, but when i used it, in XML file it will give me error...
is there any conversion of ™ done for using in XML file..
what should i do ???
thankx
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Try putting that in a CDATA section.
|
|
|
|
|
Hello All,
I want to change the background colour of button, when user hover the mouse on it. I didnt find any such event in ASP.Net or in Code behind.
I tested Java Script function as well, it recognize the onmouseover event and i am calling function there. But what would be the exact statement to change the colour.
Anyone having idea or something ready.
yours reply would be highly appreciated.
Thanks.
|
|
|
|
|
You can do this with CSS, that's probably best.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Use CSS instead of Javascript as CG said.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
onmouseover = "this.style.backgroundColor = 'red';"
remember to set it back to what it was else it will stay red
Regards
|
|
|
|
|
Hi Friends,
How are you,i have one doubt,i m having a three textboxes and one datagrid,columns descrp,shortdescrp and excgvalue,when i m entering a value some description in descrp column,INR in short descrp and 1.00 in excgvalue and again i m entering some descrp in description column,USD in shortdescrp column and 35.15 in excgvalue,the values will add in datagrid in my datagrid i want to edit only descrp and shortdescrp not excgvalue for the INR,the excgvalue should be constant and for other rows i can edit the full row,Kindly tell me how to do?
Thanks & Regards
Senthil Kumar
|
|
|
|