|
It's simpe to return an array from a js function, just use the return keyword!
Unfortunately, it's impossible to directly set session using client scripting - you'd have to implement some custom code to do so
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi folks
This is my first ever question on this site! Hope I get an answer.
Visual Studio 2005. ASP.Net web application (VB).
I have 2 Web User controls on a page. The top control has an AjaxCalendarExtender on it. When the page is displayed (run-time) and I click on the image to display the calendar, only part of the calendar is displayed. The bottom half is hidden / cut off by the web user control underneath it. i.e. the calendar doesn’t overlap the bottom control.
I also have a drop down on the top control, and this overlaps the bottom control no problem.
I have no Divs or Spans in either of my web user controls' HTML.
Any ideas? Obviously I could make the top control larger so it fits, but that leaves an unacceptably ugly gap between the 2 controls.
Any thoughts appreciated…
Jools
ANSWER: -
.ajax__calendar_container { z-index : 1000 ; }
-- modified at 9:07 Monday 12th March, 2007
|
|
|
|
|
You could try giving your calendar div/calendar control a larger z-index in the sytles.
The drop down list overlaps because it doesn't use z-index in it's display...
|
|
|
|
|
That's done the trick. I added this to the control & it seems to have worked.
.ajax__calendar_container { z-index : 1000 ; }
Thank you..
Jools
|
|
|
|
|
Some code would help, and what browser this problem appears in. I've have had this same problem with IE and it came down to an animation extender with an OpacityAction. This was setting a filter: CSS property, check you don't have that in the parent elements style anywhere. Could also be caused by the overflow property, or with position:absolute or fixed. Where the elements appear in the markup and their z-index properties can also have an effect on how they are painted in the browser.
Theres been a myriad of bugs found in the Calendar extender, most of them still not 100% fixed. Try the latest control toolkit version and see if that helps.
|
|
|
|
|
USING SESSION STATEMENT,CAN YOU HELP ME WITH THE CODE TO DISPLY THE NAME OF THE PERSON LOG ON TO THE SYSTEM,BE DISPLYED IN THE DROPDOWNLIST,AND GIVE THE ANOTHE USER AN OPTION TO CHOOSE THEIR NAME IF NOT LOG-IN TO THE SYSTEM.
THANK YOU IN ADVANCE
Oga M
|
|
|
|
|
Hello,
We have created activex for reading emails from MS outlook and send as function output to aspx web base application. Its working fine for most of the users but for few users we are getting problem.
Issue is as below mentioned
We are reading from email id. For few users its coming right e.g. xyz@yourdomain.com but for few users its putting some long path /O=xyz corporation/ou=conway/cn=RECIPIENTS/CN=NENZMI
Can anyone know what is the wrong and how we can rectify.
Thanks & Regards,
Kumar
|
|
|
|
|
hi all
i m working into GridView and DetailView. In my GridView there r two Command Button at [0]index is Delete and [1]index is Edit. whn i click the Edit Button thn My DetailView Move on to Update mode and detail view controls are fill by the GridView Data. after tht i press the Enter key in my text box the Delete button Message pop up which is "Are u sure to delete this record?" i m using the objectdatasourc to bind the both of gridview and detailview.
so i want to prevent abut to show this Message popup in UpdateMode. The message Box is generted thru following code at gridview_rowCreated
ImageButton btn = e.Row.Cells[0].Controls[0] as ImageButton;
btn.OnClientClick = "if (confirm('Are you sure to delete this Package?') == false) return false;";
im using Asp.Net2005 with C#.
so any one can give some help and idea abut this scnerio.
thnx in advance
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Write code in rowcommand Event of gridview and give condition
if(e.commandname=="Delete")
{
ImageButton btn = e.Row.Cells[0].Controls[0] as ImageButton;
btn.removed = "if (confirm('Are you sure to delete this Package?') == false) return false;";
}
in html page set commandname property
<asp:Button ID="BtnRemove" runat="server" CommandArgument='<%# Eval("ID") %>' CommandName="Delete" CssClass="textfield" Width="76" Height="21" text="remove"/>
GOD HELP THOSE WHO HELP THEMSELF
-- modified at 7:45 Monday 12th March, 2007
|
|
|
|
|
If I understand well, your delete button is getting the focus automatically after clicking the edit button. So when you press enter its onclick function is get fired. You can do two things:
1. disable the delete button in updat mode.
2. catch the key press event (document.onkeypress), check the event.keyCode (13 is for enter key), set the flag (if(event.keyCode == 13) {enterPressed=true}else{enterPressed=false}), now in onclick of delete button check if enterpressed then return false, otherwise show the confirm message.
-----
|
|
|
|
|
I have a registration form i fill the details and then i save it.Then i am transfered to the new page where it says registered succesfully.But when i click the back button i get the registration form with all the information in the respective textboxes. I want that all the information should reset when i go back.
Mohinder Singh
|
|
|
|
|
vengaqua wrote: But when i click the back button i get the registration form with all the information in the respective textboxes. I want that all the information should reset when i go back.
One option is block the back button using javascript. Next is set browsers cachebality none.
|
|
|
|
|
hi
hope this will help u
use following code on ur page load event
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
There are various ways that you can try and stop this behaviour but bottom line is you can't 100% gaurantee control over the client, its just not possible (and bad practice anyway - breaking back button behaviour can confuse users). Whatever problem this is causing you I suggest you find another way round it on the server.
|
|
|
|
|
clear all the textboxes after saving the records and then redirect user to another page.
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Hello EveryOne,
i am unable to pass querystring with url.
Actually i have taken an hyperlink in datalist and on the click event of dat hyperlink i want to send an id along with url i am using this :
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id=" + '<%#DataBinder.Eval(Container.DataItem,"Id")%>'></asp:HyperLink>
but i am getting errors like server tag not formed well
Help needed
rahul saini
|
|
|
|
|
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id= <%#DataBinder.Eval(Container.DataItem,"Id")%>"></asp:HyperLink>
Try this
Cheers
Navaneeth!!
www.w3hearts.com
-- modified at 6:28 Monday 12th March, 2007
|
|
|
|
|
Hi,
I their is nothing in your rply pls rply me again.
Thanks
Rahul
rahul saini
|
|
|
|
|
|
Hi,
No its not working still getting error "The server tag is not well formed "
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id= <%#DataBinder.Eval(Container.DataItem,"Id")%>"></asp:HyperLink>
Regards
Rahul
rahul saini
|
|
|
|
|
Try this one..
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>" />
Koushik
|
|
|
|
|
Hi Pavan,
Sry it also not working still getting the same error.
Regards
Rahul
rahul saini
|
|
|
|
|
'abc.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>'
you must use within single quotation mark
|
|
|
|
|
Try using <a href rather than going for hyperlink button ?
Cheers
Navaneeth!!
www.w3hearts.com
|
|
|
|
|
Hi Navaneeth,
Its working with href.
Thanks
But i have use only button
and have found the sollution by using this
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl='<%#"abs.aspx?id=" + DataBinder.Eval(Container.DataItem,"Id")%>'/>
thanks for your help
Regards
Rahul
rahul saini
|
|
|
|