|
Hi Vasudevan Deepak Kumar,
Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring.
Thanks in Advance
|
|
|
|
|
If you are building a querystring from serverside, use Server.UrlEncode() .
You can encode the querystring from JavaScript, you ought to use escape function.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan Deepak Kumar,
I m passing querystring from javascript, as you told i have used escape(hid.value) but when i retreving the value at server side Request.QueryString["Path"].ToString() its not getting right path and also its getting half of the letter from filename.Please Help me Sorry for disturbing.
Thanks in Advance
|
|
|
|
|
Hai friends,
I hava a javascript function like this in aspx page's html side.
function calculate()
{
alert('welcome');
document.getElementById("<%=lbl_netamount.ClientID%>").innerText
= currency_show_conversion(document.getElementById("lbl_netamt").innerText,"INR","USD");
var amount= document.getElementById("<%=lbl_netamount.ClientID%>").innerText;
'<%=Session["Amount"]%>'=amount;
document.getElementById("lbl_netamount").value = '<%=Session["Amount"]%>';
}
I need to take the value from this scipt function into aspx.cs page.what I need to do for that?I write in Pageload event that
btn_checkout.Attributes.Add("OnClick", "javascript:calculate()");
But while clicking the button btn_checkout nothing is happend.What wrong with my code.Please give any solution.How can i take value from html side to aspx.cs page.and also check if any mistake in my script.....Please help.
Thanks
Bijesh
|
|
|
|
|
Use Hidden field and make it run at server access this hidden field by using its id and assign the value
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi,
Thanks for ur reply.
Please give some sample code .How assign to hidden field and take the values to aspx.cs part.
Thanks agaain,
Bijesh
|
|
|
|
|
Are U getting values into amount??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On load in .aspx
onload="setThankMessage();
in .aspx.cs page
function setThankMessage() {
document.getElementById('relationship').value = '<%=Session["hydPatientRelatnshipPR"]%>';
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~JJ
<div class="ForumSig">My Blogs...
<a href="http://programmingmaterials.blogspot.com" target="_blank">.Net Interview Questions</a><br>
<a href="http://nseonlinetrading.blogspot.com" target="_blank">All about my Online Trading</a></br></div>
|
|
|
|
|
hello,
I got the value,it is printing in form.but i need it in any label or text box controls.
Thanks
Bijesh
|
|
|
|
|
Hi
I am using the asp.net login control which has a password and username textbox in it.
I am now trying to use the TextBoxWatermark but I need to set the targetID as the password textbox in the login control and at the moment it is not finding the textbox.
Do I have to reference it in a dfferent way?
thanks
We are not a Code Charity
|
|
|
|
|
Hi .netman,
If I understand your question you need to find out the id of the password textbox......
That will bee Password
How to find out: Go in Design mode on the page where you have the login control. Use the arrow for the login and choose "Convert to template" Now you can place your curser on that field you want to see the Id on and then look in the Properties window.
Kind regards,
simsen
|
|
|
|
|
Thanks for the reply, I had to put the control into the login control for it to recognise the Username textbox
thanks!
We are not a Code Charity
|
|
|
|
|
Hi everyone,
I am developing a website using asp.net with c#, Ajax, mysql database.
I need the help in the following two topics.
(1) Tooltip
When I drag the mouse over the text, the tool tip should be displayed with some url links. If I click the url link in the tooltip, the particular website should be shown.
(2) Popup
When I drag the mouse over the text, the pop up window should be displayed with one text box. If I enter the text and click the 'save' button, the data should be saved into the database.
Please help me with some examples(Asp.net with c#, AJAX)
Thanks in Advance,
J. Mohan.
J. Mohan
|
|
|
|
|
I think this person has tried asking this question before!
http://forums.aspfree.com/net-development-11/tooltip-and-popup-in-asp-net-and-ajax-228544.html
http://dotnetslackers.com/community/forums/tooltip-and-popup-window-using-asp.net-and-ajax/p/1974/26948.aspx
We are not a Code Charity
|
|
|
|
|
Hi all,
I have a problem while developing a Menu for my website. My pages will be divided into 4 parts i.e. Header, Left Pane, Content Pane and Footer. According to my requirements the header menu items should be placed in Header Section and when I Click on an item, the left pane should be populated with Submenu Items. The header menu should be displayed in Tabbed format.
Please suggest a solution, how to achieve this.
Thanks in advance,
Sanmukh.
|
|
|
|
|
I am using ASP.NET 2.0 with C#.
In my application there is a DIV which style is OVERFLOW: auto.
A horizontal scrollbar appear but it alignment by default is left.
I want its default alignment to be right.
Can any one help in this regards.
Thanks
|
|
|
|
|
Could you post your html code ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
<div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;">
|
|
|
|
|
Sorry was busy in my work
try out this
<div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl">
Is that you want ? let me know
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks a lot.
i need this solution what u send.
but it change my dropdown alignment too.
how can i mentaion my dropdown alignment as it is in default and change only DIV direction.
Actully div containing one dropdown.
I am sending complete code
<div id="divCollegeNames" style="OVERFLOW: auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl">
<asp:DropDownList ID="lst" runat="server">
<asp:ListItem>St. Xavier's College, Ahmedabad</asp:ListItem>
<asp:ListItem>St. Joseph's College, Bangalore</asp:ListItem>
<asp:ListItem>St. Xavier's College, Mumbai</asp:ListItem>
<asp:ListItem>Sacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem>
<asp:ListItem>Research Foundation for Science, Technology and Natural Resource Policy,
Bangalore</asp:ListItem>
<asp:ListItem>Jawaharlal Nehru University (JNU), New Delhi</asp:ListItem>
<asp:ListItem>ISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem>
<asp:ListItem>Defence Electronics Research Laboratory, Hyderabad</asp:ListItem>
<asp:ListItem>All-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem>
<asp:ListItem>Indian Institue of Management, Ahmedabad</asp:ListItem>
</asp:DropDownList>
</div>
Thanks a lot.
|
|
|
|
|
I didn't understand what you are trying to do
Why are you using div tag and How your drop down list should display ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Actully my requirement is like that.
in my asp.net page there is a dropdown.which is filled at runtime.
we fix the size of dropdown.this is because space and layout requirement.
if dropdown value greter than it size define.it not shows complete value.
to fix it i need a horizontal scrollbar.
but dropdown not having it.
so that i am using div as container for dropdown which having scrollbar.
now the problem is if the scrollbar position is left dropdown doesnot show arrow sign.
to make arrow sign visiable i set scrollbar direction to right as u give the solution.but it change the direction of dropdown too.
this is the complete problem.
now can u suggest me,how i will solve the problem.
thanks & regards
|
|
|
|
|
Ok now i understood
<td><div id="divCollegeNames" style="OVERFLOW:auto;WIDTH: 304px;HEIGHT: 47px;direction:rtl" >
<span style="direction:ltr">
<asp:DropDownList ID="lst" runat="server" >
<asp:ListItem>St. Xavier's College, Ahmedabad</asp:ListItem>
<asp:ListItem>St. Joseph's College, Bangalore</asp:ListItem>
<asp:ListItem>St. Xavier's College, Mumbai</asp:ListItem>
<asp:ListItem>Sacred Heart College, Thevara, Ernakulam, Kerala</asp:ListItem>
<asp:ListItem>Research Foundation for Science, Technology and Natural Resource Policy,
Bangalore</asp:ListItem>
<asp:ListItem>Jawaharlal Nehru University (JNU), New Delhi</asp:ListItem>
<asp:ListItem>ISRO Telemetry Tracking Command Network (ISTRAC),Bangalore</asp:ListItem>
<asp:ListItem>Defence Electronics Research Laboratory, Hyderabad</asp:ListItem>
<asp:ListItem>All-India Institute of Medical Sciences (AIIMS), Delhi</asp:ListItem>
<asp:ListItem>Indian Institue of Management, Ahmedabad</asp:ListItem>
</asp:DropDownList>
</span>
</div>
Check this one i think this what you want to display
i don't know it is right way or not
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Thanks a lot.
I got exect solution.
what i need.
thanks & regards
Ajeet Mittal
ajeetmittal@gmail.com
|
|
|
|
|
Currently i m using sql server 2000. when i directly modify the values inside the database the following TRIGGER fires correctly. But when pass values from front end (ASP.NET with C#, .net 2005, 2.0 framework) "update tbl_ORA_TBOps set Percentage_Compliant=((@comp/@tot_ex)*100) where AutoID=@id" this alone not working.. what problem.....? plz..
CREATE TRIGGER [calc] ON dbo.tbl_ORA_TBOps
AFTER INSERT, UPDATE
AS
begin
update tbl_ORA_TBOps set Total=(Compliant+Non_Compliant+InProgress+InputNotReceived+NA)
update tbl_ORA_TBOps set Total_Excl_NA=Total-NA
end
begin
declare @tot numeric
declare @na numeric
declare @tot_ex numeric
declare @comp numeric
declare @id numeric
select @tot=(Select total from inserted)
select @na=(Select NA from inserted)
select @tot_ex=(Select Total_Excl_NA from inserted)
select @comp=(Select Compliant from inserted)
select @id=(Select AutoID from inserted)
if (@tot=@na)
begin
update tbl_ORA_TBOps set Percentage_Compliant=100 where AutoID=@id
end
else
if (@tot_ex=0)
begin
update tbl_ORA_TBOps set Percentage_Compliant=0 where AutoID=@id
end
else
begin
update tbl_ORA_TBOps set Percentage_Compliant=((@comp/@tot_ex)*100) where AutoID=@id
end
end
in the above trigger, i m getting incorrect Percentage_Compliant value. how to solve this (i m very beginner to TRIGGERS). is the IF...ELSE loop correct? HELP ME! - KARAN
|
|
|
|
|
Hi
I have a CSS file that has some styles defined in it. now i need to use same in webusercontrol how can i? i tried to use tag also but it is not available there as there is no tag.
|
|
|
|