|
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
|
|
|
|
|
dwadasi wrote: i have loaded dyamic controls like checkboxes,
The problem may be because of that.
dwadasi wrote: based on the Checkbox selection, i want some DDL operations
Why cant you write a property for that?
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
|
|
|
|
|
Hi,
I do not have my website URL in my wwwroot folder, but some where on my C drive. How do I get the root path of where my website resides?
Thanks
Brendan
|
|
|
|
|
|
.NET Enthusiast wrote: How do I get the root path of where my website resides?
Server.MapPath("/") gives the root path for that server.
|
|
|
|
|
.NET Enthusiast wrote: How do I get the root path of where my website resides?
Server.MapPath("~")
gives you the root folder of your application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
how to work with .net and Flex.
I am very new for flex so please give me some Help for starting Flex and .net communication Steps.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: I am very new for flex so please give me some Help for starting Flex and .net communication Steps.
Here is one article to upload multiple file using flex and .net.
Visit Click Here
Regard
kHan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Thanks For reply
I am talking about this flex just i want to use my .net dll in flex.
Link:-
http://www.themidnightcoders.com/weborb/dotnet/[^]
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
how to select a range of text of a text box , i have the start and end point. but i want that as seleced ?
please help !!!
element.selectionStart = start; element.selectionEnd = end;
now i want to selct that area.
cheers,
Abhijit
|
|
|
|