|
i have a menu but my sub menus are so much i wanna split my sub menu strip
to show it like windows start up menu when our program is too much all programs sub menu show in 2 or 3 pages beside each other
how can i do my menu as start menu windows on my web application(c#)
Redgards
|
|
|
|
|
when redirecting one one page to other page and back again iam getting unknown error popup and the exception catched is 'Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack'
plz help me regarding the error
regards
chaitu
|
|
|
|
|
i guess u posted the same question yestreday too!!
Gautham
|
|
|
|
|
Are you doing any evaluation in the popup form?
Can you paste the actual code where the error occurs?
|
|
|
|
|
I've finished the form design only til now...started the backend part just now in oracle...yet to do the coding part...can u suggest some ideas as to how to write the coding???? got to finish my project by feb 15th
|
|
|
|
|
i understand the concept wat u've explained but how to write the code 4 it?? can u explain wats the logic behind it??
|
|
|
|
|
No one can tell you whole business logic .......
first think what you want then start ti implement it if any problem arrives post query
|
|
|
|
|
Let me know once your are done with your databse design. What does your UI comprise of? Then lets see what we can do!!!
Gautham
|
|
|
|
|
hi
my UI consists of the following webforms :
home
packages
profile
terms & conditions
contact us
bookings
in bookings webform only i've created the login form where user 'll enter his details..i'm expected to show the ticket availability also wen the user requests for it thats wat i dono how to do...
|
|
|
|
|
hi
i've designed the form for my project...and created the bookings,different packages & transaction tables in oracle...only coding part to be done..
|
|
|
|
|
1)To start with open a connection(oracle)
2)Create a command object.
3)Since you are a learner give direct query as command text
4)the query shoule have what you want to obtain according to the clients' selection
5)you can use datareader or dataadapter as well.
6)if using datareader give commandname.executereader()
Gautham
|
|
|
|
|
then i've included the reset button along with the ok button in my form....to reset pls check if my code is right
textbox1.text = ""
bec by giving this the text is not getting cleared
|
|
|
|
|
Hi,
I have a Datagrid in which iam displaying EmployeeName and sum other details.
The employeeName In the Datagrid is a Hyperlink Column fromwhich i open another Employee Form in edit mode.I want to disable the hyperlink for normal users.
I have tried disabling the link using : e.Item.Cells(1).Enabled = False
But it is still clickable. I dont want it to be clickable. How to go about in doing this?
following is the aspx code:
<asp:HyperLinkColumn DataNavigateUrlField="EmpId" DataNavigateUrlFormatString="FrmEditEmp.aspx?EmpID={0}" DataTextField="EmpName" HeaderText="EmpName">
<ItemStyle Width="20%"></ItemStyle>
</asp:HyperLinkColumn>
Plz help me out ...
Thanks,
Riz
|
|
|
|
|
there are many ways, but if i do this then i will suerly hide it...
e.Item.Cells(1).Controls[0].visible=false;
u can also try
e.Item.Cells(1).Controls[0].Enabled = False; this is in c#
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
|
|
|
|
|
hi,
when you give simply cells[..] it considers to be as normal text, in your case there is a control in the cell i.e. a link in your cell, so try e.item.cells[1].controls[0].enabled=false;
hope this works!!!
Gautham
|
|
|
|
|
Hi All,
I get number of records when I fire a query in DataTable.There are 3 Columns namely columndatatype,columnname and displaycolumnname.Now I want the displaycolumnname to be display in listbox and combo and other 2 with displaycolumnname in Gridview where other 2 sould be visible false.
Please tell me how do I go about this.I need help in code.
Thanks in advance.
|
|
|
|
|
|
I have 2 tables first has ID,TableName,ViewName and other has ID,FirstID,ColumnName,DisplayColumnName,ColumnDataType.
What I want is to fill listbox and combo with DisplayColumnName and in GridView I want DisplayColumnName as Visible True and ColumnName and ColumnDataType as Visible False.
But I am using Viewstate datatable to bind GridView runtime.So I need to use Arraylist index so that I can use that index to bind the visible false columns with the respective DisplayColumnName.
Now I want a single Arraylist which will have ColumnName,ColumnDataType and ColumnDisplayName and when I put ColumnDisplayName in GridView I want ColumnName and ColumnDataType at the same index as of ColumnDisplayName.
Hope u understood what I want to do??
Please help me for the same.
|
|
|
|
|
pls help me in writing asp.net code for 'ticket avaliability' module of travel & tourism project.I've just started learning .net so kindly help me out.
|
|
|
|
|
It solely depends upon your reqirement. Lets say you have availabilty for specific source-destination for all dates. so whenevr a user selects his/her source, destination, date of travel, no. of tickets decresae the avaialbilty in the databse according to the no. of tickets.
Basic idea! what have you done so far??
Gautham
|
|
|
|
|
Hi
I am working on asp.net 2003 , i am suffering dubugging from last one week
please any one idea about this plz reply me
It show dialog box when i go for debug.
actually i have loaded dot net 2003 and 2005 in single operating system but dotn't say remove dot net 2005.
---------------------------------------------------------------------------------------------------------------------------------------------
Error while tring run project : Unable to start debugging on the web server
Click Help for more information
OK HELP
------------------------------------------------------------------------------------------------------------------------------------------
thx in advance
|
|
|
|
|
Within the IIS management tool, select your virtual dir.
Right-click and select Properties
In the Properties dialog box, click on the Create button.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Go to your web.config file. follow the instructions.
<Configaration>
<system.web>
<compilation defaultlanguage="vb" <b>debug="true"> </b>
Now run your application(Press F5).
Hope it is helpfull.
Liyakhat AliKhan
Software Developer
Photon Info tech, Chennai.
|
|
|
|
|
Hello Everyone,
I have made a webform in asp.net 2005 with a calendar control, please see below for code. I have another webpage with hyperlink to popupcalendar page. The problem is the second page has a masterpage and when i click the hyperlink the popupcalendar is displayed but the date selected is not being transferred to the text box in the second page, It works fine if i remove the master page link from the second page, any ideas guys whats happening here.
HTML CODE - Popup Calendar:
<%@ Page Language="vb" AutoEventWireup="false" Inherits="KMAttendance.PopUp" CodeFile="PopUp.aspx.vb" %>
<title>PopUp
<asp:calendar id="calDate" onselectionchanged="Change_Date" runat="server" borderwidth="1px" backcolor="White"
="" width="220px" daynameformat="FirstLetter" forecolor="#003399" height="200px" font-size="8pt" font-names="Verdana" bordercolor="#3366CC" cellpadding="1">
<todaydaystyle forecolor="White" backcolor="#99CCCC">
<selectorstyle forecolor="#336666" backcolor="#99CCCC">
<nextprevstyle font-size="8pt" forecolor="#CCCCFF">
<dayheaderstyle height="1px" forecolor="#336666" backcolor="#99CCCC">
<selecteddaystyle font-bold="True" forecolor="#CCFF99" backcolor="#009999">
<titlestyle font-size="10pt" font-bold="True" height="25px" borderwidth="1px" forecolor="#CCCCFF"
="" borderstyle="Solid" bordercolor="#3366CC" backcolor="#003399">
<weekenddaystyle backcolor="#CCCCFF">
<othermonthdaystyle forecolor="#999999">
VB CODE-popup calendar:
Imports System.Web.UI.HtmlControls.HtmlGenericControl
Namespace KMAttendance
Partial Class PopUp
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'control.Value = Request("textbox")
control.Value = Request.QueryString("textbox")
End Sub
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim strScript As String = "window.opener.document.forms(0)." + Request.QueryString("textbox").ToString() + ".value = '"
'strScript += calDate.SelectedDate.ToString("dd/MM/yyyy")
strScript += calDate.SelectedDate.ToLongDateString
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("Calendar_ChangeDate", strScript)
'Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "anything", strScript, True)
End Sub
Private Sub InitializeComponent()
End Sub
End Class
End Namespace
HTML Code-Second Webpage
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="NoUpdate.aspx.vb" Inherits="KMAttendance.NoUpdate" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" align="Left" cellpadding="0" cellspacing="4" bordercolordark="silver" style="width: 456px; height: 16px">
<tr> <td align="center" style="height: 19px; width: 61px;"> </td> <td align="Left" style="height: 19px; width: 103px;"> <table style="width: 286px; height: 57px">
<tr> <td style="width: 25px; height: 21px;"> <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/error.png" Width="20px" Height="19px" /></td> <td style="height: 21px"> <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Access Denied" Width="167px"></asp:Label></td> <td style="height: 21px"> </td> </tr> <tr> <td style="width: 25px; height: 21px"> <A onclick="window.open('popup.aspx?textbox=txtStartDate','cal','width=250,height=225,left=270,top=180')" href="javascript:;"><IMG src="Images/calendar.png" border="0"></A>
</td> <td style="height: 21px"> <asp:textbox id="txtStartDate" runat="server" width="106px" Height="12px"></asp:textbox></td> <td style="height: 21px"> </td> </tr> <tr> <td style="width: 25px"> </td> <td> </td> <td> </td> </tr> </table>
</td> </tr> </table>
</asp:Content>
<div class="ForumSig">Thanks in Advance for your help. Best Regards</div>
|
|
|
|
|
Hi,
I believe Master Page is not a problem.
SharonRao wrote: "window.opener.document.forms(0)." </blockquote>
Here forms(0) may not represent your Master Page.
Soln:
Try Use, document.getElementById('') and Pass the ClientId of your server control (TextBox) to the Popup Calendar. Hopefully it works fine.
<div class="ForumSig">Regards,
<b>Jay</b> </div>
|
|
|
|