|
How can we return a url from one form to another form?
|
|
|
|
|
Can you please elaborate a little?
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... "
|
|
|
|
|
Instead of using response.redirect we can use return url method....but i dint know abt return url....so i cant give enough info abt it...
|
|
|
|
|
Kasi Viswanathan wrote: How can we return a url from one form to another form?
Passing values from one form to another ? Use Querystring
|
|
|
|
|
Can u send me one example for tat.... if possible?
|
|
|
|
|
What difference between and ?
and
What difference between 'paddin' and margin?
|
|
|
|
|
Its better to check yourself i think by creating a new web applciation
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... "
|
|
|
|
|
padding is on the inside whereas margin is on the outside of a box:
padding: distance between content and border of container.
margin: distance of an object to its neighbours.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
HI,
I have been facing the problem since some days.....
When i am Binding a gridView to a List<myclass> the column orders in the gridView comes in Alphabetical order... But I want the column orders as I have Added to the List<myclass>.....
How can I do this......
Any idea....
heartly welcomed
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
Hi,
Is there any free msi file creator utility for asp.net web applications available, could you provide information on such tools?
I tried using VS.NET deployment project, but its confusing when adding dlls. Our application fetches dlls from a directory, which is placed with the aspx files. While adding these to the deployment project, it gives lots of dependency errors and most of the dlls are duplicated, while building. And it takes around 30 minutes for the build to finish.
Regards,
Blumen
|
|
|
|
|
Hi All,
Can any one tell me what is the problem here? I am using ASP.NET 2005 and on menu click event I need to open page which is nothing but a div tab and it contains few combo and a textbox with ok and cancel button.
Everything works fine but I need a proper GUI as it contains Country, Select Sector, select sub industry and select company this should all come in proper way as show below:
Country combo
Select Sector combo
Select Sub Industry combo
Select Company combo
textbox
But it shows something like this:
Country combo
Select
Sector combo
Select Sub
Industry combo
Select
Company combo
textbox
I want left column in one line is Select Sector should in one line.
Please help me...
Following is the code:
<div id="p1" style="display: none; background-color:#FBFBFB ;border:1px solid Blue">
<table width="40%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" width="250px">
Country</td>
<td>
</td>
<td align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddlcountry"
Category="Country" PromptText="Select a Country" ServicePath="AutoComplete.asmx"
ServiceMethod="GetCountry" />
<asp:DropDownList ID="ddlcountry" CssClass="text" runat="server" Width="250px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="left" class="text">
Sector</td>
<td>
</td>
<td >
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddlSector"
ParentControlID="ddlcountry" Category="Sector" PromptText="Select a Sector" ServicePath="AutoComplete.asmx"
ServiceMethod="GetSector" />
<asp:DropDownList ID="ddlSector" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left" class="text">
Sub Industry
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="ddlSubIndustry"
ParentControlID="ddlSector" Category="Sector" PromptText="Select a SubIndustry"
ServicePath="AutoComplete.asmx" ServiceMethod="GetSubIndustry" />
<asp:DropDownList ID="ddlSubIndustry" runat="server" CssClass="text" Width="250px"> </asp:DropDownList></td>
</tr>
<tr>
<td align="left" class="text">
Company Name
</td>
<td>
</td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="ddlCompany"
ParentControlID="ddlSubIndustry" Category="Company" PromptText="Select Company"
ServicePath="AutoComplete.asmx" ServiceMethod="GetTicker" />
<asp:DropDownList ID="ddlCompany" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left"> </td>
<td>
</td>
<td>
<asp:TextBox ID="myTextBox" runat="server" autocomplete="off"
CssClass="text" Height="14px" Width="249px">
</asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox"
ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList2" MinimumPrefixLength="0"
CompletionInterval="1000" CompletionSetCount="12" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td align="left">
</td>
<td></td>
<td align="right">
<input type="button" class="button" id="btnOk" onclick="myfunct1();" value="OK" />
<input type="button" id="btnCancel" class="button" value="Cancel" runat="server" onclick="myfunct();" />
</td>
</tr>
<tr>
<td align="left">
</td>
<td>
</td>
<td align="left">
</td>
</tr>
</table>
</div>
|
|
|
|
|
For the left column (first one) give the width in percentage not in pixals and try to give in every row first column then check i think thats the problem
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 for the reply sandeep, but I have tried that also. Actually I am using it as a PopupControlExtender of Ajax..
|
|
|
|
|
Are you writing any javscript to hide and show that div tag
the div tag's style should be like this
(when you are showing)
style="Display:'';visibility:visible;"
(when you are hiding)
style="Display:none;visibility:hidden;"
try this
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... "
|
|
|
|
|
Since its a PopupControlExtender I just need to pass the id of div tag and it works fine. I am just writing javascript on cancel button and the code is below:
function myfunct()
{
document.getElementById('p1').style.display='none';
return false;
}
What might be the problem I dont know???
|
|
|
|
|
Problem is div tag is not properly formated
try this one because i had same faced issue in past
your div tag style should look like this
visibility:hidden;display:none (hidden)
visibility:visible;display:''(Show)
javscript to hide
var divTag=document.getElementById(divId);
divTag.style.display="none";
divTag.style.visibility="hidden";
javascript to show
var divTag=document.getElementById(divId);
divTag.style.display="";
divTag.style.visibility="visible";
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... "
|
|
|
|
|
|
Sorry but can you explain one more time What are you trying to so .......
If i m not wrong you have a div tag that contains one table and this div tag you have to make hide and show .. but you are facing some alignment issues ok ..
can you post your whole aspx page ?
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... "
|
|
|
|
|
Can you post your funct1() javascript method ?
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... "
|
|
|
|
|
I am putting this all javascript function in .js file and adding that in source file.
Here is it:
function myfunct1()
{
if (document.getElementById("ctl00_ddlCompany").selectedIndex != 0)
{
var CompanyTicker = document.getElementById("ctl00_ddlCompany")[document.getElementById("ctl00_ddlCompany").selectedIndex].value;
alert(CompanyTicker);
var str=document.getElementById("ctl00_ddlCompany")[document.getElementById("ctl00_ddlCompany").selectedIndex].innerText;
window.open("Tabs.aspx?fromMaster=true&title=" + str +"&CompanyTicker=" +CompanyTicker ,'_self' );
}
if (document.getElementById("ctl00_myTextBox").value != "")
{
var strTextBoxValue = document.getElementById("ctl00_myTextBox").value;
var intCompanyTicker = strTextBoxValue.split("-");
var CompanyTicker = intCompanyTicker[0];
var str = intCompanyTicker[1];
window.open("Tabs.aspx?fromMaster=true&title=" + str +"&CompanyTicker=" +CompanyTicker ,'_self' );
}
}
|
|
|
|
|
Thats fine this function is not related with that issue
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... "
|
|
|
|
|
Then what is the problem why I am not able to see it properly...
|
|
|
|
|
Can you post your whole aspx page i will try in my machine
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... "
|
|
|
|
|
This is aspx page:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<link href="css/IndigoStyle.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/MasterPageScript.js"></script>
</head>
<body onunload="return window_onunload();">
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<div id="p1" style="display: none; background-color:#FBFBFB ;border:1px solid Blue">
<table width="40%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="text" width="250px">
Country
</td>
<td> </td>
<td align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="ddlcountry"
Category="Country" PromptText="Select a Country" ServicePath="AutoComplete.asmx"
ServiceMethod="GetCountry" />
<asp:DropDownList ID="ddlcountry" CssClass="text" runat="server" Width="250px">
</asp:DropDownList>
</td>
</tr>
<tr>
<td align="left" class="text">
Sector
</td>
<td> </td>
<td >
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="ddlSector"
ParentControlID="ddlcountry" Category="Sector" PromptText="Select a Sector" ServicePath="AutoComplete.asmx"
ServiceMethod="GetSector" />
<asp:DropDownList ID="ddlSector" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left" class="text">
Sub Industry
</td>
<td> </td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="ddlSubIndustry"
ParentControlID="ddlSector" Category="Sector" PromptText="Select a SubIndustry"
ServicePath="AutoComplete.asmx" ServiceMethod="GetSubIndustry" />
<asp:DropDownList ID="ddlSubIndustry" runat="server" CssClass="text" Width="250px"> </asp:DropDownList></td>
</tr>
<tr>
<td align="left" class="text">
Company Name
</td>
<td> </td>
<td>
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="ddlCompany"
ParentControlID="ddlSubIndustry" Category="Company" PromptText="Select Company"
ServicePath="AutoComplete.asmx" ServiceMethod="GetTicker" />
<asp:DropDownList ID="ddlCompany" runat="server" CssClass="text" Width="250px"> </asp:DropDownList> </td>
</tr>
<tr>
<td align="left"> </td>
<td> </td>
<td>
<asp:TextBox ID="myTextBox" runat="server" autocomplete="off"
CssClass="text" Height="14px" Width="249px">
</asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox"
ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList2" MinimumPrefixLength="0"
CompletionInterval="1000" CompletionSetCount="12" />
</td>
</tr>
<tr>
<td align="left"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="left"> </td>
<td></td>
<td align="right">
<input type="button" class="button" id="btnOk" onclick="myfunct1();" value="OK" />
<input type="button" id="btnCancel" class="button" value="Cancel" runat="server" onclick="myfunct();" />
</td>
</tr>
<tr>
<td align="left"> </td>
<td> </td>
<td align="left"> </td>
</tr>
</table>
</div>
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender2" runat="server" TargetControlID="SelectCompany1"
PopupControlID="p1" Position="Bottom" />
</td>
</tr>
<tr>
<td>
<div id="SelectUnit" style="display: none; background-color: #ffffff; background-image: url(background2.jpg);">
<table width="37%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" class="text">
Scenario</td>
<td width="75%" align="left">
<ajaxToolkit:CascadingDropDown ID="CascadingDropDown5" runat="server" TargetControlID="ddlScenario"
Category="Scenario" PromptText="Select a Scenario" ServicePath="AutoComplete.asmx"
ServiceMethod="GetScenario" />
<asp:DropDownList ID="ddlScenario" CssClass="text" runat="server" Width="250"></asp:DropDownList>
</td>
</tr>
<tr>
<td class="text" width="25%">
</td>
<td align="left" width="75%">
</td>
</tr>
<tr>
<td >
</td>
<td align="Right">
<input type="button" id="btnSOK" class="button" onclick="myScenario()" value="OK" />
<input type="button" class="button" id="btnSCancel" value="Cancel" runat="server" onclick="myfunct()" />
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
</td>
</tr>
</table>
</div>
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="SelectScenario"
PopupControlID="SelectUnit" Position="Bottom" />
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img alt="" src="Images/virtua-research-logo.jpg" width="259" height="70" />
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" style="background-image: url(images/menu_bar.png);height:22px">
<tr>
<td width="1%">
</td>
<td align="center" width="8%">
<asp:Menu ID="Menu3" runat="server">
<Items>
<asp:MenuItem Text=" Home" Value="Home" NavigateUrl="~/Home.aspx" ToolTip="Home"></asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
<td align="center" width="8%">
<asp:Menu ID="mnFinancial" runat="server" OnMenuItemClick="mnFinancial_MenuItemClick">
<Items>
<asp:MenuItem Text="Financials" Value="Financials" ToolTip="Financials"></asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
<td align="center" width="8%">
<asp:Menu ID="Menu5" runat="server">
<Items>
<asp:MenuItem Text=" Analysis" Value=" Analysis" NavigateUrl="~/Home.aspx" ToolTip=" Analysis">
</asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
<td align="center" width="8%">
<asp:Menu ID="Menu6" runat="server">
<Items>
<asp:MenuItem Text="WatchList" Value="WatchList" NavigateUrl="~/WatchlistTab.aspx"
ToolTip="WatchList"></asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
<td align="center" width="8%">
<asp:Menu ID="SelectCompany1" runat="server" Orientation="Horizontal">
<Items>
<asp:MenuItem Text="Select Company" Value="Select Company" Selectable="False" ToolTip="Select Company">
</asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
<DynamicHoverStyle />
<LevelSubMenuStyles>
<asp:SubMenuStyle Font-Underline="False" />
<asp:SubMenuStyle BackColor="DarkSlateGray" BorderColor="White" Font-Underline="False"
/>
</LevelSubMenuStyles>
<DynamicMenuItemStyle />
</asp:Menu>
</td>
<td align="center" width="8%">
<asp:Menu ID="SelectScenario" Visible="false" runat="server">
<Items>
<asp:MenuItem Text="Select Scenario" Value="Select Scenario" Selectable="False" ToolTip="Select Scenario/Unit/Currency">
</asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
<td align="center">
</td>
<td align="center" width="8%">
<asp:Menu ID="Menu7" runat="server" Orientation="Horizontal"
StaticEnableDefaultPopOutImage="False" Visible="False">
<Items>
<asp:MenuItem Text="Preferences" Value="Preferences" NavigateUrl="~/Home.aspx" ToolTip="Preferences"
Selectable="False">
<asp:MenuItem Text="&nbsp;&nbsp;&nbsp; Watchlist" ToolTip="Watchlist"
Value="Watchlist" Target="Watchlist"></asp:MenuItem>
<asp:MenuItem Text="Alert" ToolTip="Alert" Value="Alert" Target="Alert"></asp:MenuItem>
<asp:MenuItem Text="Alert1" Value="Alert1" Target="Alert1" ToolTip="Alert1"></asp:MenuItem>
<asp:MenuItem Text="Alert2" Value="Alert2" Target="Alert2" ToolTip="Alert2"></asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
<DynamicHoverStyle BackColor="WhiteSmoke" BorderColor="DarkSlateGray" ForeColor="Black" />
</asp:Menu>
</td>
<td align="center" width="19%">
<asp:Menu ID="Menu8" runat="server">
<Items>
<asp:MenuItem Text="Logout" Value="Logout" NavigateUrl="~/logout.aspx" ToolTip="Logout">
</asp:MenuItem>
</Items>
<StaticHoverStyle CssClass="MenuOnMouseOver" />
<StaticMenuItemStyle CssClass="MenuText"/>
</asp:Menu>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" style="background-image: url(images/new top image.jpg);height:50px;width:100%">
<tr>
<td></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="10px" align="right" valign="bottom" class="botline">© 2007 Virtua Research Corp. All Rights Reserved.
</td>
<td> </td>
<td align="left" valign="bottom" class="botline">
An affiliate of <a href="http://vandham.com/home.html" target="_blank"> Vandham Securities Corp </a><br />
<a href="http://vandham.com/home.html" target="_blank">Legal Disclaimers and Disclosures Site Credit</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
|
|
|
|
|
ASP.NET 2.0 wrote:
Means this tableI with 3 columns will take 40 percent of parent tag i.e div
ASP.NET 2.0 wrote:
Means it will take 250 px width with left alignment
try to give more width here
ASP.NET 2.0 wrote:
reduce the width of dropdown just try
Even not work then give the table width 100% then slowly slowly reduce all width only for testing perpose
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... "
Country | <ajaxtoolkit:cascadingdropdown id="CascadingDropDown1" runat="server" targetcontrolid="ddlcountry" category="Country" prompttext="Select a Country" servicepath="AutoComplete.asmx" servicemethod="GetCountry"><asp:dropdownlist id="ddlcountry" cssclass="text" runat="server" width="250px">
|
|
|
|
|