|
dont return false? and if you are still doing your alert you need to give the script block an id.. you may also want to make the tags valid, by adding the language and type attributes to them, since they'll be tossed into the page at the end(or begining depending on how you register) they should be valid to prevent any problems.
<div class="ForumSig">Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.</div>
|
|
|
|
|
Hi All,
I am having problems with the above error everytime i try and execute a visual studio's project.
I tried to change the WebDev*.exe file from a working PC but no luck.
Can any one please advice?
Thank you
|
|
|
|
|
i have a aspx page and i am at the bottom of the page there i show some div i want that the page is not to move to the top and again i am not scroll to bottom
please
send the answer on
sharma_diw@yahoo.com
|
|
|
|
|
|
i have a aspx page and i am at the bottom of the page there i show some div i want that the page is not to move to the top and again i am not scroll to bottom
|
|
|
|
|
So you want the link to drop straight to the bottom of the page yeah?
anchor links
|
|
|
|
|
can you please be more specific, i am little confuse
what you actualy want ? do want scroll postion to be fixed ??
let me know ??
cheers,
Abhijit
|
|
|
|
|
hi
i want to say that i have a long page at the bottom there is one link button and on clicking the link button i want to open the div there as i do this the div is open but the page is scrolling to top i want that when i open the div the page is not moved(scroll).
Because to see the div i scroll the page
if it is possible please send on my another mail id sharma_diw@yahoo.com
thanks
diwakar sharma
|
|
|
|
|
im creating radioButtonList Dynamically & set Autobostback = true
then i put a radiobuttonlist i created in every Cell in asp Calendar ..
when i choose any item in the radiobuttonlist .. no post back happen
any solution ??
|
|
|
|
|
hmm I wonder if the calendar needs to postback too?
Or make sure when the radiolist is created it is created after the calendar
|
|
|
|
|
did you used Ajax in the page
cheers,
Abhijit
|
|
|
|
|
yes i used ajax but not with the calendar and not with the radiolist
|
|
|
|
|
Just try with this, I think you did not add event handler while creating RadionButtonList Dynamically. You need to deleget the event to fire .
Let me know when done.
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
RadioButtonList dbl = new RadioButtonList();<br />
dbl.ID = "asdfdf";<br />
dbl.Text = "test";<br />
dbl.SelectedIndexChanged += new EventHandler(dbl_SelectedIndexChanged);<br />
}<br />
<br />
void dbl_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
throw new Exception("The method or operation is not implemented.");<br />
}
cheers,
Abhijit
|
|
|
|
|
i did what u told me .. but still no postback ..
...
i need a solution plz
|
|
|
|
|
ok, now i have got the point .
set AutopostBack=true ; with that code, which i had mistake and add your control in a Panel which is set to be run at server. this will work
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
<br />
<br />
RadioButtonList dbl = new RadioButtonList();<br />
dbl.ID = "MyID";<br />
dbl.Items.Add("abhijit");<br />
dbl.Items.Add("Jana");<br />
dbl.SelectedIndexChanged += new EventHandler(dbl_SelectedIndexChanged);<br />
dbl.AutoPostBack = true;<br />
Panel1.Controls.Add(dbl);<br />
<br />
<br />
}<br />
<br />
void dbl_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
throw new Exception("The method or operation is not implemented.");<br />
}
dont forget to vote if its helps you
cheers,
Abhijit
|
|
|
|
|
still no post back ..
i don't know why ?????????????
any controls added to the calendar cell doesn't postback ..
outside the calendar it posts back normally ..
but inside it noooooooooo ..
|
|
|
|
|
just post your code over here. i need to check it now !!!
cheers,
Abhijit
|
|
|
|
|
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
RadioButtonList RBL_Absence = new RadioButtonList();
RBL_Absence.SelectedIndexChanged += new EventHandler(RBL_Absence_SelectedIndexChanged);
RBL_Absence.EnableViewState = true;
RBL_Absence.AutoPostBack = true;
RBL_Absence.ID = "RBL_Absence" + e.Day.Date;
RBL_Absence.RepeatDirection = RepeatDirection.Vertical;
RBL_Absence.Font.Size = FontUnit.Point(8);
DataSet DS_AbsenceType = _Attend.Get_All_AbsenceType();
RBL_Absence.DataSource = DS_AbsenceType;
RBL_Absence.DataTextField = "AbsenceType";
RBL_Absence.DataValueField = "AbsenceType_ID";
RBL_Absence.DataBind();
//***********************************************************
e.Cell.Controls.Add(RBL_Absence);
e.Cell.HorizontalAlign = HorizontalAlign.Center;
}
|
|
|
|
|
i am realy sorry that i am not able to find the problem, i have tried but no result.
i can give you one idea, that if you have no problem you can use Array of Radio button with same Group name ..
cheers,
Abhijit
|
|
|
|
|
thx alot for your effort .. i really appreciate that ..
another question plz :
how can i loop into calendar to find The control in every cell ?
|
|
|
|
|
legend_of_zanado wrote: thx alot for your effort .. i really appreciate that ..
Thanks for that. then you have to rate my post
legend_of_zanado wrote: how can i loop into calendar to find The control in every cell ?
i am trying , let you kwno when done.
cheers,
Abhijit
|
|
|
|
|
Hi guys I have 2 div tags...,
Left side div tag ID is LeftDiv
And right one is RightDiv...,
Between the two div i want one image..,
When ever i will click that the leftdive have to visible/Hide...,
How to do that...,
Plz guys give me some urls or sites like that
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Its very simple. just run one javascript on that image's onCLick event. That javascript will find that DIV by writting getElementById and set it dislay = none;
see like this.
<div id="leftdiv" /><image onclick="javascript:visdiv()" /><div id="rightdiv" /><br />
<br />
<script language="Javascript"><br />
function visdiv()<br />
{<br />
var mydiv = document.getElementById("leftdiv");<br />
if(mydiv.style.display == "")<br />
mydiv.style.display = none;<br />
else<br />
mydiv.style.display = "";<br />
}<br />
</script>
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
Hi ananddesai,
Thanks for ur reply,
See this is the code
Its not working,
<table style="width:100%;height:100%">
<tr><td style="width:19%;height:100%">
<div id="leftdiv"><asp:Label ID="Label1" runat="server" Text="Left Side"></asp:Label>
<br /><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></div></td>
<td style="width:1%"><img src="Images/LeftHide.jpg" onclick="javascript:visdiv()" /></td>
<td style="width:80%;height:100%"><div id="rightdiv">
<iframe name="IFrame1" src="index.aspx" frameBorder="No" scrolling="yes"
style="width: 100%" id="I1">
</iframe></div></td></tr>
</table>
And ur script:
<script language="Javascript">
function visdiv()
{
var mydiv = document.getElementById("leftdiv");
if(mydiv.style.display == "")
mydiv.style.display = none;
else
mydiv.style.display = "";
}
</script>
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
What's the proble? its not showing image?? or image is shown but click is not working???
explain ur exact problem
Anand Desai
Developer
Atharva Infotech
|
|
|
|