|
but if it wroks form code-behind, y don't it work from aspx ?
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
can anybody help me.
Whenever i clicked on dropdownlist ,the popup should display 10 items of dropdownlist while rest of 42 items could be viewed by scrolling it.
thanks in advance
|
|
|
|
|
I don't believe the drop down list supports this, you can create this UI with a floating DIV tho.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello EveryOne!!
Can anybody knows how to lock or disable or
anything that will not allow user to navigate next or previous month of current months in <asp:calender > control
Thanks in advance
Dattatraya.
|
|
|
|
|
<asp:calendar id="Calendar1" runat="server" shownextprevmonth="False" xmlns:asp="#unknown">
Raju.M
|
|
|
|
|
|
i have designed crystal report with text orientation property to vertical now when i display it in my webpage using VS 2008 it combine all the text and show it horizontally does any one have idea how to resolve this issue
umerumerumer
|
|
|
|
|
Hi Guys,
I have the following block of html in a Content Page:
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_105');"></div>
<div id="carousel_105" onload="alert('carousel_105');">
<%#HtmlThumbsBlock1%></div>
<div class="arrowRight" onclick="next('carousel_105');"></div>
</div>
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_106');"></div>
<div id="carousel_106" onload="loadCarousel('carousel_106');">
<%#HtmlThumbsBlock2%></div>
<div class="arrowRight" onclick="next('carousel_106');"></div>
</div>
<div class="imageBoxOutside">
<div class="arrowLeft" onclick="prev('carousel_107');"></div>
<div id="carousel_107" onload="loadCarousel('carousel_107');">
<%#HtmlThumbsBlock3%></div>
<div class="arrowRight" onclick="next('carousel_107');"></div>
</div>
However, the onload method never gets called. The method is declared in the header of the same content page, NOT the master, and i can invoke it using onclick without any problems. The ThumbsBlock variables are the HTML for the internals of the carousel and work correctly onclick.
What's the deal? And how do i resolve it?
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
You can use tag just after the closing of the tag.
<div class="ForumSig">The miracle is this--the more we share, the more we have.</div>
|
|
|
|
|
Ok,
That appears to work and i can roll with it for now, but it's a horrible solution. Why isn't the onload function firing? Is there any alternative to this?
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: Why isn't the onload function firing?
Look at my post below.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
Take a look at the W3 docs here:
Supported by the following HTML tags: <body>, <frame>, <frameset>, <iframe>, <img>, <link>, <script>
Perhaps place the loading functions into one function that gets called when the page loads.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
hi friends..
i want to add a flash file or animated image to a web applcation..
how to add that..
i dont know ho to add a flash file..
its urgent..
thanx
gopal
|
|
|
|
|
use this...
<object style="width: 247px; height: 118px">
<param name="movie" value="1.swf" />
<embed height="400" src="1.swf" width="550" />
The miracle is this--the more we share, the more we have.
|
|
|
|
|
I have an asp page posting session variables to my ASP_NET page
the _NET page recalls the variables and is meant to server transfer
the string to another page. When I substitute Response_redirect , the code behaves
wonderfully . I think my variables are still Integers not strings ??
<%@ Page language="VB" debug="true"%>
<script runat=server >
Sub Page_Load(sender as Object, e as System.EventArgs )
Dim i as Integer
for i =0 to Request.Form.Count -1
Session(Request.Form.GetKey(i))=Request.Form(i).ToString()
Next
dim pId
pId = Session("prodId")
pId = ("?search=" + pId)
Server.Transfer(Session("DestPage") & pId.ToString() ,true)
End Sub
</script>
HttpException (0x80004005): Error executing child request for description.asp.]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1828
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm
Many Thanks, Bev
|
|
|
|
|
Hi,
I have a combobox cmb and a xml file like
<?xml version="1.0" encoding="utf-8" ?>
<NAME>
<NAME POINTS="1.5" value="a" />
<NAME POINTS="1.0" value="b" />
<NAME POINTS="1.0" value="c" />
<NAME POINTS="1.0" value="d" />
<NAME POINTS="0.5" value="e" />
<NAME POINTS="0.5" value="f" />
<NAME POINTS="0.5" value="g" />
<NAME POINTS="0" value="h" />
</NAME>
in the body onload ,a function is there abc()
in the time of page loading i want to fill the combo with a,b,c....to h and they have the curresponding numeric values as mentioned in the xml
And if we write document.form1.cmb.value ,it will dispaly the numerical value,instead of that i want to get the text value only to a string.
Thanks in advance!!!!
|
|
|
|
|
rakeshs312 wrote: in the time of page loading i want to fill the combo with a,b,c....to h and they have the curresponding numeric values as mentioned in the xml
Can`t you use XmldataSource that comes inbuilt in VS 2005. All you need is to give the path of you xml file and bind this datasource to your dropdownlist.
rakeshs312 wrote: And if we write document.form1.cmb.value ,it will dispaly the numerical value,instead of that i want to get the text value only to a string.
val=document.getElementById("My_DDl").selectedIndex;
var selectedText=document.getElementById("My_DDl").options[val].text;
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hai,
thanks for the reply, i am getting the text value with your Suggestion.
but i have to code in javascript to populate the combobox.
|
|
|
|
|
rakeshs312 wrote: but i have to code in javascript to populate the combobox.
So there are two ways... either you hard code your values in the dropdownlist or use
AJAX to read the xml file and then fill the data fetched in you dropdown.
this[^] might help you.
When you fail to plan, you are planning to fail.
|
|
|
|
|
hi people
I've created this session in global.asax part of my project in this way:
Session["news_id"]= null;
I've used a datalist to load some news titles from database and when you click on that title (Which is a link button) there opens a popup window and reads the desired news.
It the click event of mentioned link button I've told that:
Session["news_id"]= (int)(dataList1.DataKeys[dataList1.SelectedIndex]);
(I guess that the snippet above is problmatic)
Then in the form_load of that popup page after creating the sqlconnection stuff i've made the below commandtext:
"select text from news where id='"+Session["news_id"]+"'";
in which text is a field that news is stored and news is the name of my table.
What I get as an error is that sometimes on the click event of my link button says : Object not set to its refrence or something and sometimes it says that index was out of range!
Plase help me with you solutions.
Thanks alot
Proper Prepration Prevents Poor Performance! h
|
|
|
|
|
You are right, i also think the problem with
Session["news_id"]= (int)(dataList1.DataKeys[dataList1.SelectedIndex]);
First, dataList1.SelectedIndex is start with 0 and i think news_id is start with 1 (Its my guess).
This index of control never be similar with your id. you can use response.write to check this problem...
You can also use the similar type of things....
<asp:datalist id="DataList1" runat="server" backcolor="White" bordercolor="#E7E7FF" xmlns:asp="#unknown">
BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyField="id" DataMember="DefaultView"
DataSourceID="SqlDataSource1" GridLines="Horizontal" UseAccessibleHeader="True"
Width="100px">
<itemtemplate>
]]>
]]>
<asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="<%$ ConnectionStrings:ConnectionString %>" xmlns:asp="#unknown">
SelectCommand="SELECT [id], [title], [name] FROM [table]">
Here you pass news id as query string.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
As a matter of fact the result of return is always -1 ! I don't know why.
by the way Do you think I can try the title instead of id?
I mean I use the string of title to pass to session and ...
by the way, since I am kind of new in asp.net please inlight me with the ways you've provided. I have no idea what I should do with them
thanks
Proper Prepration Prevents Poor Performance! h
|
|
|
|
|
You can pass anything instead of id which is unique (because every link open a unique page.). you can use javascript window.open() function also to open in pop up.
In pop up page you receive the id/title value and based on that value you can show the content in the pop up.
The miracle is this--the more we share, the more we have.
|
|
|
|
|
I have a textbox for entering password. After finish entering,If i press the "Enter" button the login validation will be triggered? How is it possible?
|
|
|
|
|
you may use a JS function which will be triggered on key press. When handling the OnKeyPress event, you need to check if the pressed key is Enter , if yes, you need to call btnLogin.Click(); (btnLoginId is passed as a function parameter)
onkeypress="return Login(event, 'btnLogin')"
function Login(e, btnLoginId)
{
var evt = e ? e : window.event;
var btnLogin = document.getElementById(btnLoginId);
if (btnLogin)
{
if (evt.keyCode == 13){
btnLogin.click();
return false;
}
}
}
Calin
|
|
|
|