|
I am looking for anyone familiar with using the tabs control from the MS AjaxControlToolkit. The question is simply, how do I load web pages into the tab panels? The only option I see is "ContentTemplate" for the TabPanel and it doesn't seem to allow for linking in outside material (unless it is a user control). The reason I need this ability is that I am creating panels that may use separte master pages to define their layouts. Outside of IFrames, is there another means of loading other pages into the pages?
Thanks,
Leo T. Smith
Program/Analyst Supervisor
|
|
|
|
|
I used repeater control I am getting a problem there for multiplication
<%# Eval("amount") %> <% * ebe %> is it right
i want to mutiply 12 * 13 like that i want in dynamically
Thanks in Advanced
|
|
|
|
|
You need to put it all in the one block, and cast the Eval so that they are both ints. Eval returns an object and the repeater calls ToString on it.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I use an uploade control in my webform but when I run this project I see this error( System.Web.HttpException: Control 'ctl00' of type 'FileUpload' must be placed inside a form tag with runat=server).what should I do?(I use asp.net whith c#)
|
|
|
|
|
Well, read the error message, I am just going to repeat it. If you feel you've done what it is telling you, post the code, so we can explain why you haven't.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hello,
I Got a problem while writing code clientside validation.
I have a textbox control in default.aspx.
i am writing validation(required field validation) in .Js(Seperate Javascript) file
I am writing like this
function validate()
{
var=document.getElementID("<%= textbox1.ClientID %>").value
if(var=="")
alert("");
}
here my problem is the above code is not calling textbox control in default.aspx.
please give solution...
Thanks
Pinna
|
|
|
|
|
You should get firefox and firebug. If you did, you would see that a seperate js file is never parsed, so your code is being written verbatim. One way around this is to do something like:
var=document.getElementID(textBoxClientId).value;
Then write a variable called that using the ClientID in the code behind of the page.
Also, NEVER use the result of getElementByID without first checking that it's not null.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi all,
I've just started playing with AJAX and am using the update panel to display images if a condition is met. The user can then click on the image and bring in a pop up window.
I have the code working outside a update panel but inside it doesn't seem to work?
Any ideas please.
Here's the code that should be called by the image command.
protected void imgOverview_Command(object sender, CommandEventArgs e)
{
Session.Remove("cdID");
Session.Add("cdID", e.CommandArgument.ToString());
ClientScript.RegisterClientScriptBlock(typeof(Page), "smallWindows", "<script>window.open('confirmCD.aspx', 'PopupPage', 'height=450,width=500,scrollbars=yes,resizable=yes');</script>");
}
Thanks
|
|
|
|
|
what is the updatemode of your updatepanel?
You should be able to find the ID of your image in the codebehind. If you would change the url of the ImageButton another image should be displayed.
|
|
|
|
|
I think I found the problem. I had triggers on my command buttons but not triggers on the image button so it wasn't posting back. once I put in postback triggers it worked
|
|
|
|
|
if i want to store two variables in a URL, do I simple put & after the first variable?
thanks
|
|
|
|
|
|
YES
Look in to the following URL
http://www.codeproject.com/script/Forums/View.aspx?fid=12076&select=2627491&fr=1
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Thanks guus got it sorted now
cheers
|
|
|
|
|
hi i want convert this code to javascript
dim x as integer =25
For i as integer = 0 To 10
If x And ((2 ^ i)) Then
.....
End If
Next
|
|
|
|
|
javascript is not strongly typed, so
var x = 25;
var i = 0;
for (i = 0 to 10)
if (x & (2^i)) // I THINK. && will just check if x is 'true' and 2^i is 'true', not a check for bitwise comparison
{
}
Except, are you wanting a bitwise AND ? Does And do that in VB ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
thank you
if (x & (2^i))
it's work
|
|
|
|
|
Great - I was guessing on the last bit
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hello,
i made and web application that i must use Ajax Accordion. The idea is accordion and his panes to be dynamically created. Actually the data (header and content)for accordion will come from text files. I developed the part that load data from text files but how to bind(?) this data to accordion? I look over and didn't find some solution that is work for me [Frown]
The problem for me actually is in creation in accordion and his panes.
Thanks!!!
King Regards!
countNazgul
|
|
|
|
|
I finally get it and it was so simple ... as usual
OK. I've got accordion control added in designer and two datatables with two columns (one for title and one for link). The idea is in accordion to have two panes (for each datatable) and in content to have "title" column whith link. So here is the code that work for me:
AccordionPane ap1 = new AccordionPane();
ap1.HeaderContainer.Controls.Add(new LiteralControl("UnRead Items"));
ap1.HeaderCssClass = "header1";
for (int a = 0; a < myDataTable.Rows.Count; a++)
{
ap1.ContentContainer.Controls.Add(new LiteralControl("<a href=" + myDataTable.Rows[a] [1].ToString() + ">" + myDataTable.Rows[a][0].ToString() + "</a>" + "<br>"));
ap1.ContentContainer.CssClass = "container";
acc1.Panes.Add(ap1);
}
AccordionPane ap2 = new AccordionPane();
ap2.HeaderContainer.Controls.Add(new LiteralControl("Archived Items"));
ap2.HeaderCssClass = "header1";
for (int z = 0; z < myDataTable1.Rows.Count; z++)
{
ap2.ContentContainer.Controls.Add(new LiteralControl("<a href=" + myDataTable1.Rows[z][1].ToString() + ">" + myDataTable1.Rows[z][0].ToString() + "</a>" + "<br>"));
ap2.ContentContainer.CssClass = "container";
acc1.Panes.Add(ap2);
}
</br></br>
So the result looks like this (depending on css):
http://img78.imageshack.us/img78/7405/caccordionfy6.jpg
Have a nice day!
King Regards!
countNazgul
|
|
|
|
|
how we can set and unset or destory sesstion?
|
|
|
|
|
Buy a book on ASP.NET and read it. This is such an entry level question that even tho I will answer it, it's clear you have a lot to learn.
Session["MyKey"] = "value"; // can be any type
string s = (string)Session["MyKey"];
Session["MyKey"] = null;
I would put the keys into a class, so that you're not always typing them, the compiler will not find typos in there. Also, I'd add methods to a base page class that safely check if a session object is null and return a bool if it is, just like the tryparse methods on classes like string.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
how about
Session.Abondon();
|
|
|
|
|
Well, I presume that clears it all, I was showing how to clear one value only.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi,
I have developed one user control,i have written most of the functionality on that control, just i have added that to the aspx page, in the ASCX, i have loaded dyamic controls like checkboxes, labels... based on the Checkbox selection, i want some DDL operations(Edit, Create Delete), on database in the button click. in the button click i want checkbox ID, to find which box is selected. i am not getting that ID. Please help me if any one knows.
Thanking you
|
|
|
|