|
On the definition, it doesn't say anything. But on other parts of MSDN and the ASP.NET forums, it says to use "javascript:void(0);" inside the NavigateURL, so I took the presumption that I could call JavaScript functions this way.
If this is the wrong way, could you please tell me what is the correct method for calling JavaScript functions from clicking a TreeNode, please?
[EDIT]
I have also found this:
http://www.codeproject.com/KB/XML/sqlxmltreeview.aspx
Which makes use of JavaScript in the NavigateURL, so it would appear it's the commonly used method, how-ever I cannot determine why mine will not work. I'll need to get myself a JavaScript debugger if nobody is sure.
[EDIT]
I got a JavaScript debugger, and found the problem lied within my JS function, I had a small typo in there, which crashed the entire function. After fixing the typo, the method works perfectly.
|
|
|
|
|
hi
I recieved this error in different situation in different pages :
Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machinekey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
I think there is a difference between machine.config and my web.config but i dont konw what.
|
|
|
|
|
Hi finally, i shown chart in my form using report viewer,
but now i have to say the size of the line..,
(I.e)in that column chart the ratio showing biz size,
have to align my own style in that
how to do
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
Inserting year in aspcalender so that we can change the year corresponding years date will display on calender
|
|
|
|
|
|
If we put a dropdown list for diaplaying the year.If we select an year how the aspcalender date will change according to the year specified.
|
|
|
|
|
hi
i am dynamically binding textbox into a asp table ,after entering some values onclicking save button on postback table dissappears...so i couldnt access the values inside the textboxes..
plz help
|
|
|
|
|
Try with Ajax !!!
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Where are you binding the textbox ?
you need to persist the values added/or bind the textbox in Initialize event. Also check the ViewState attribute of Page directive in the aspx page make true and try one more time
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Any controls that you add dynamically, you have to recreate every time the page reloads.
The state of the controls is stored in ViewState, but not the controls themselves. If you just recreate the controls, they will pick up the state from ViewState themselves.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi,
You can use Request.Form collection to get the values of textboxes parameter. For that you need to know their client ID.
I think, this will useful.
Regards,
Amar
|
|
|
|
|
Hello Friends,
Can anybody help me about Microsites.I've to create microsites dynamically as done in this url
http://www.magicbricks.com/property/faces/jsp/indexc.jsp[^]
and now please click on the banner(s) being displayed here like Luxury Villas of Nancy. Can i create the microsites dynamically.
|
|
|
|
|
Now when I run my asp.net web application using the default web server (http://localhost: <portnumber>), the application runs successfully and I can access my sql server 2000 database. I granted permissions to ASPNET user and it works fine.
But when I created a virtual directory on my iis for this application, an error occurs when I try to access my database he says login fails for "NADA\ASPNET".
I don't know why, in the properties of the directory I checked "enable anonymous access"
I granted permissions to ASPNET user in the sql server but I still can't access it through this virtual directory...but when I access it with the default web server through the IDE, I can access it just fine.
What's wrong exactly?? I can't seem to find any reasonable explanation.
I'm really worried about deployment..because this application will be deployed on the iis of the server and there must be a virtual directory that has correct permissions..so what am I gonna do then!!
|
|
|
|
|
Hi
I have a variable in javascript and in the aspx file i have written the code like this
objhidquestions.value= objSelectedQuestion ;
var abc='<%=Utility.TripleDesEncrypt("' + objhidquestions.value + '")%>'
var url= "../popUp/ViewQuestion.aspx?id=" + abc ;
when i get the value of the query string of objhidquestions.value is not there instead in get the name of the object as "objhidquestions.value"
Please
Regards
|
|
|
|
|
Well, of course. I recommend buying a book on ASP.NET, you plainly are very confused about how it works. Javascript runs on the browser, it is not C#, and does not run on the server. You've put + objhidquestions.value + in quotes, and therefore you will get these values verbatim. In fact, you are asking C# to evaluate the result of something that javascript has not yet been asked to create. The only way you could do this, if the value of objSelectedQuestion changes, is with AJAX.
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 freinds
i have problem can i use datareader with store procedure.
it's urgent, i don't know much about how access data from store procedure through codding in vb.net.plz it's very very urgent.
|
|
|
|
|
Janvi wrote: it's urgent
Janvi wrote: it's very very urgent.
If it's so urgent, why didn't you google for some of the many source examples on the web, or post some source code, so we have some chance of seeing where your error is ?
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 )
|
|
|
|
|
Janvi wrote: i have problem can i use datareader with store procedure.
Yes, of course you can.
Have you tried it? There is not much point in trying to help you with a problem that you haven't run into yet...
Janvi wrote: t's very very urgent
That doesn't count for much in a public forum. If it really was that urgent, you would pay for professional help instead of trying to get it for free here.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
hi Janvi,
You can use DataReader with Stored Procedure easily in following way.
SqlDataReader reader = SqlCommand_Object.ExecuteReader();
If you wanna full article to learn new ways to use all functionality, just visit the following link.
http://www.akadia.com/services/dotnet_data_reader.html
Hope this will help you.
Thanks & Regards
dilipv
|
|
|
|
|
This is my code:
What mistake i have made? Why the event is not firing ?
protected void GridView1_OnSelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("Selection");
}
Inline Code:
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" allowpaging="True" pagesize="5" showheader="False" onselectedindexchanged="GridView1_OnSelectedIndexChanged">
<columns>
<asp:templatefield>
<itemtemplate>
]]>' width="40" height="50" src='<% #DataBinder.Eval(Container.DataItem,"ImagePath")%>' id="img" runat="server" />
<asp:image id="Image1" imageurl="">]]>' runat="server" />
<columns> <asp:templatefield>
<itemtemplate>
<asp:linkbutton text="">]]>' runat="server" ID="BookTitle">
<asp:label runat="server" text="Author" forecolor="ButtonShadow" id="AuthorLbl" font-size="Small"> | <asp:linkbutton runat="server" id="AuthorLBtn" font-size="small" text="">]]>' > |
VanithaVasu
|
|
|
|
|
i have my forms and usernames in the database , which tells , which form pertains to which user.
Now my question is , still there is any need to utilize the autorization tag in the web.config file ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Do you want to authorize certain users to view certain pages, or do you want to handle it by having your database authorization fail on pages that a user is not allowed to see ( and any non data driven pages will just always work ) ?
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 want to handle it by my database .Still i need the authorization concepts in the web.config file ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Hi refer this site:
http://www.codeproject.com/KB/webforms/ReportViewer.aspx[^]
And did my reportviewer,
but in that its showing error in sqlhelper place,
But i used same code how they said in that site,
whats the probs?,
Thanks & Regards,
Mageshh,
please don't forget to vote on the post
|
|
|
|
|
If you have a question about an article, ask the article author. That's why there's a forum under teh article.
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 )
|
|
|
|