Click here to Skip to main content
15,907,233 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to assign table name dynamically to sqldatasource. Pin
eyeseetee3-Sep-08 23:46
eyeseetee3-Sep-08 23:46 
AnswerRe: How to assign table name dynamically to sqldatasource. Pin
Christian Flutcher4-Sep-08 0:05
Christian Flutcher4-Sep-08 0:05 
GeneralRe: How to assign table name dynamically to sqldatasource. Pin
Satish - Developer4-Sep-08 0:24
Satish - Developer4-Sep-08 0:24 
GeneralRe: How to assign table name dynamically to sqldatasource. Pin
Mogaambo4-Sep-08 0:55
Mogaambo4-Sep-08 0:55 
Questionsystem date time convertion Pin
monalucky3-Sep-08 23:18
monalucky3-Sep-08 23:18 
AnswerRe: system date time convertion Pin
sumit70343-Sep-08 23:47
sumit70343-Sep-08 23:47 
AnswerRe: system date time convertion Pin
eyeseetee3-Sep-08 23:48
eyeseetee3-Sep-08 23:48 
Questionwhile validating dropdownlist,on focus event will open dropdown list Pin
Learning IT3-Sep-08 23:08
Learning IT3-Sep-08 23:08 
i am using the following code to open dropdown list while validating,but the
problem is that i am increasing size of DDL so that it looks like it is opened but by doing so it disturbs the formatting of all those controls which are below to it,so can you plz give a good code or suggestion for opening dropdown list on button click while validating.




<br />
<script language="javascript" type="text/javascript"><br />
<br />
<br />
function ddl_focus()<br />
{<br />
    if(document.getElementById("<%=DropDownList1.ClientID %>").value=="0")<br />
        {<br />
      <br />
        document.getElementById("<%=DropDownList1.ClientID %>").focus();<br />
       open_ddl();<br />
        }<br />
     <br />
}<br />
<br />
function open_ddl()<br />
{<br />
document.getElementById("<%=DropDownList1.ClientID %>").size=10;<br />
}<br />
<br />
function close_ddl()<br />
{<br />
document.getElementById("<%=DropDownList1.ClientID %>").size=1;<br />
}<br />
 <br />
<br />
</script><br />
<br />



 <asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
    </asp:scriptmanager>
    <br />
    <table>
        <tr>
            <td style="width: 461px">

    </td>
            <td style="width: 239px">
            </td>
            <td style="width: 273px">
            </td>
        </tr>
        <tr>
            <td style="width: 461px">
                   
                <asp:dropdownlist id="DropDownList1" onmouseout="return close_ddl();" onmouseover="return open_ddl();" runat="server" width="125px" xmlns:asp="#unknown">
                    <asp:listitem value="0"><Select></asp:listitem>
                    <asp:listitem value="1">Agra</asp:listitem>
                    <asp:listitem value="2">delhi</asp:listitem>
                    <asp:listitem value="3">mumbai</asp:listitem>
                    <asp:listitem value="4">chennai</asp:listitem>
                </asp:dropdownlist>
                <asp:requiredfieldvalidator controltovalidate="DropDownList1" errormessage="RequiredFieldValidator" id="RequiredFieldValidator1" initialvalue="0" runat="server" setfocusonerror="True" xmlns:asp="#unknown">Plz select from ddl</asp:requiredfieldvalidator>
                <asp:updatepanel id="UpdatePanel1" runat="server" updatemode="Conditional" xmlns:asp="#unknown">
                    <contenttemplate>
 <asp:button id="Button1" onclick="Button1_Click" runat="server" text="Button" onclientclick="return ddl_focus();"></asp:button> 
</contenttemplate>
                </asp:updatepanel></td>
            <td style="width: 239px">
            </td>
            <td style="width: 273px">
            </td>
        </tr>
</table>

Wink | ;)

Maniiiiiiiiiiiiiii

QuestionObject reference not set to an instance of an object. Pin
CrazyCoder263-Sep-08 23:04
CrazyCoder263-Sep-08 23:04 
AnswerRe: Object reference not set to an instance of an object. Pin
Bardy853-Sep-08 23:09
Bardy853-Sep-08 23:09 
GeneralRe: Object reference not set to an instance of an object. Pin
CrazyCoder263-Sep-08 23:13
CrazyCoder263-Sep-08 23:13 
GeneralRe: Object reference not set to an instance of an object. Pin
Learning IT3-Sep-08 23:21
Learning IT3-Sep-08 23:21 
GeneralRe: Object reference not set to an instance of an object. Pin
Bardy853-Sep-08 23:35
Bardy853-Sep-08 23:35 
Questioncustom asp.net sql server shopping cart problem. Pin
VijayVishwakarma3-Sep-08 22:18
VijayVishwakarma3-Sep-08 22:18 
AnswerRe: custom asp.net sql server shopping cart problem. Pin
eyeseetee3-Sep-08 22:27
eyeseetee3-Sep-08 22:27 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
VijayVishwakarma3-Sep-08 22:31
VijayVishwakarma3-Sep-08 22:31 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
eyeseetee3-Sep-08 22:55
eyeseetee3-Sep-08 22:55 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
VijayVishwakarma3-Sep-08 23:29
VijayVishwakarma3-Sep-08 23:29 
AnswerRe: custom asp.net sql server shopping cart problem. Pin
Christian Flutcher3-Sep-08 22:40
Christian Flutcher3-Sep-08 22:40 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
VijayVishwakarma3-Sep-08 22:59
VijayVishwakarma3-Sep-08 22:59 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
eyeseetee3-Sep-08 23:38
eyeseetee3-Sep-08 23:38 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
VijayVishwakarma3-Sep-08 23:57
VijayVishwakarma3-Sep-08 23:57 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
eyeseetee4-Sep-08 0:17
eyeseetee4-Sep-08 0:17 
GeneralRe: custom asp.net sql server shopping cart problem. Pin
VijayVishwakarma4-Sep-08 0:31
VijayVishwakarma4-Sep-08 0:31 
QuestionSetting up an enviroment for sharpoint 2007 Pin
TheEagle3-Sep-08 21:36
TheEagle3-Sep-08 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.