|
Yeah (RegisterStartupScript), that didn't appear to work. I put it in the Page_Load method in the codebehind for the master page. The code is at home, and I'm at work, so I can't copy/paste it right now to show you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm an idiot. I think I may have found the problem.
It seems the code depends on the name of the content DIV, and I renamed that DIV in the .Net version.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I was going to say, something else must have been changed. The validation ( not very helpfully ) will complain about all sorts of markup that is valid on the client, but is not part of ASP.NET. Add an 'onblur' to a control, and you'll see this in action.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Well, I decided to go a different way (eliminating the javascript part). I have it displaying correctly in FireFox and Opera, but IE6 is being... ummmm.... problematic. I posted a question in the Web Development forum (since it has now become a CSS question).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
At one point my page works, then when I run it again it does not and says Server Error. I am a newbaby in asp.net
|
|
|
|
|
You may have code that is stuck in an infinite loop. Use the debugger to step through your code.
I didn't get any requirements for the signature
|
|
|
|
|
How to make a linkbutton inside the update panel control behaved ad normel asp.net server control
postback
I need to download a file when clicking on this button
Regards
Radhakrishnan G.
|
|
|
|
|
I have a folder with files residing on the server not in the virtual directory. I have the TreeView Node pointing to one of these files. (C:\....\XXX.pdf) But when I click the link the pdf does not open. It is suppose to open in an IFRAME on the same window. Any Ideas?
|
|
|
|
|
<br />
Response.ContentType = "Application/pdf";<br />
Response.BinaryWrite( System.IO.File.ReadAllBytes("YourFileLoc"));<br />
Response.End();<br />
I didn't get any requirements for the signature
|
|
|
|
|
Thanks!
But I had a question currently I am setting the TreeNode as follows:
subNode1.NavigateUrl = "javascript:ChangeIFrameLocation(" + LINKTOFILE + ")"
I am trying to open this file using javascript in and IFRAME on the same page.
Response won't work in Javascript
|
|
|
|
|
Create one page that renders the files. Pass the file name in querystring. Put that page in your frame. Update your treeview.
I didn't get any requirements for the signature
|
|
|
|
|
How can I force a postback and call a codebehind function from javascript?
I want to do something like this:
aspx-file
<script type="text/javascript">
function OnRowSelecting(sender, args)
{
ServerFunc();
}
</script>
Codebehind c# file
private void ServerFunc()
{
}
_____________________________
...and justice for all
|
|
|
|
|
How I usually do this which may not be the best method. Drag a button on your form. Double Click it to get your server side code method. In the pageload hide the button from the user by adding the following:
<br />
this.Button1.Style.Add("display", "none");<br />
Put your code server side in the button click's event. Then Add the following javascript to your page.
<br />
function CallServerMethod() {<br />
var Button1 = document.getElementById("<%=Button1.ClientID %>");<br />
Button1.click();<br />
}<br />
Now you can use the javascript "CallServerMethod()"
I didn't get any requirements for the signature
|
|
|
|
|
I dunno why someone gave this less than 5, it's the only real way to do it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thanks for the support.
I didn't get any requirements for the signature
|
|
|
|
|
You got my vote
It works perfect for me.
About AJAX I luckily easily find a solution using our telerik-framework to avoid the whole page to refresh.
_____________________________
...and justice for all
|
|
|
|
|
|
document.forms[0].submit() isn't this a simplier way ?
|
|
|
|
|
Not if he wants to call a specific event, no.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
You realise that there's no way to do this without making an AJAX call ( which requires it's own set of work ) or refreshing the entire page ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
How can I bind Grid view in codes to a dataset
|
|
|
|
|
onyang2 wrote: How can I bind Grid view in codes to a dataset
GridView1.DataSource= _objDataSet;
GridView1.DataBind();
|
|
|
|
|
I tried this code but everything is silent After placing my grid on design.
//ods is my dataset
GridView1.DataSource = ods
GridView1.DataBind();
|
|
|
|
|
onyang2 wrote: I tried this code but everything is silent After placing my grid on design.
Hmm..What did you expect is there any thing music will playing around?
Ohh.. I was joking, What happened after that? Is there any data on your data set? Try to use break point and Debug you code. Check the Dataset has any data or not?
|
|
|
|
|
Like this[^]
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|