|
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>
|
|
|
|
|
Hello,
Thanks for the reply. I have changed the code in popupcalendar.aspx.vb,but it still is not working, any ideas where i have gone wrong.
Protected Sub Change_Date(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim strScript As String = "document.getElementByID('txtstartdate')." + control.Value + ".value = '"
strScript += calDate.SelectedDate.ToLongDateString
strScript += "';self.close()"
strScript += "</" + "script>"
RegisterClientScriptBlock("Calendar_ChangeDate", strScript)
End Sub
<div class="ForumSig">Thanks in Advance for your help. Best Regards</div>
|
|
|
|
|
Hi all,
I have had what appears to be a very simple request from one of my clients - but am not sure how (or if) this can be done. Basically, they need to be able to let about 6-10 people access and edit an Excel 2003 spreadsheet from anywhere (ie: they could be inside or outside the corporate intranet) and my idea was to allow them to do it through an ASP.Net 2 web page. This means the s/sheet would always reside on the server but could only be edited by one person at a time (which is what the client wants - if it's open for edit all other users will be told the s/sheet is not available - or perhaps they can just view it but not save it.)
So how do I go about this using VS2005 and ASP.Net 2? Is it just a matter of having an <embed /> tag in the HTML or is there a better, easier or more advance way to do it? I've googled quite a bit for this and found lots of pages about importing or exporting Excel data but I want to edit & save the s/sheet in place and I can't find anything about that.
TIA for suggestions or feedback.
Mike
|
|
|
|
|
IMHO, you might want to check out a couple of things:
+ Use Webdav to manage/edit the files.
+ Show the file contents at the client side in the Excel-like display, here you can might want to look for some custom grid controls supporting Excel-like style, then the client can edit in the web page and finally submit the changes to the server.
+ You can allow the user to open the Excel file on their box with the Excel application, then you can use an Excel add-in to capture the Save action to send the edited file to the server.
|
|
|
|
|
Is there any form generator or template to create search forms? I just want to display data from my sql server 2005 tables using drop down menu or search field. I'll greatly appreciate any help.
|
|
|
|
|
Hi Guys/Gals,
I have a template field called "Details"(A button field) for each row in the Gridview control.
How do i know at which row/index the "Details" button is clicked? Because I cannot use SelectedIndex/ SelectedRow when "Details" button is directly clicked?
I would really appreciate it if anyone could help me in this matter?
Thanks,
Murthy here
|
|
|
|
|
Try to find e.row.rowindex on row editing if u want to edit that row.
|
|
|
|
|
Actually what it does is it redirects the page to the details of the particular row. so they are not actually editing that row. they are not even selecting but they are going to click the button directly.
thanks,
Murthy here
|
|
|
|