|
Hi,
Is there any control in ASP.NET (MS Visual Studio 2003) to present data in Horizontal Way. As DataGrid can only allow us to present data in Vertical Way. please tel
|
|
|
|
|
http://www.codeproject.com/cs/database/Vertical_rows_in_Datagrid.asp
http://www.codeproject.com/useritems/VerticalDatagrid.asp
I hope this helps
All the best
Lucky
-- modified at 3:05 Thursday 27th April, 2006
|
|
|
|
|
hi
Actually i tried to implement the code in VB.NET, but then it is showing me
'Name GetLesionDS()is not declared'
Do i need to import any namespace for it...
Please tell!
|
|
|
|
|
You can use datalist to represent data in horizontal way. But you need put extra effort to put other features like paging etc for datalist control.
Regards,
Shiby
|
|
|
|
|
Hi,
I think you can use Datalist control to present data in a horizontal way.
Regards
Anup
|
|
|
|
|
Hi,
I have 2 textboxes one is txtStartTime and the other is txtEndtime.
Compare Validator is not Working for these 2 textboxes.I am storing DateTime values in both the textboxes. I want to check if EndTime is Greater then StartTime.If StartTime is Greater then Endtime then It should give an error message saying StartTime cannot be greater then EndTime.
Plz suggest me how to do it.
thanks,
riz
|
|
|
|
|
use a compare validator to validate two dates.
add one comparevalidator
on properties select controltocompare,controltovalidate and value to compare. give value as >, < and change the type property into date
this wil fulfil ur requirement, if any error let me know
coolsweety
|
|
|
|
|
I think you would also want to check that valid dates have been entered. Does this help?
<% @Page Language="C#" %>
<html>
<head>
<title>Validating Dates</title>
</head>
<body>
<form runat="server">
Start: <asp:TextBox id="txtStartDate" runat="server" />
<br />
End: <asp:TextBox id="txtEndDate" runat="server" />
<br />
<asp:CompareValidator id="valid1" runat="server"
ControlToValidate="txtStartDate"
Type="Date"
Operator="DataTypeCheck"
Text="The start date must be a valid date."
/>
<asp:CompareValidator id="valid2" runat="server"
ControlToValidate="txtEndDate"
Type="Date"
Operator="DataTypeCheck"
Text="The end date must be a valid date."
/>
<asp:CompareValidator id="valid3" runat="server"
ControlToValidate="txtStartDate"
ControlToCompare = "txtEndDate"
Type="Date"
Operator="LessThanEqual"
Text="The start date must be less than
or equal to the end date"
/>
<br />
<br />
<asp:Button runat="server" text="Submit" />
</form>
</body>
</html>
|
|
|
|
|
what is the namespace and method name for it?
thx thx
|
|
|
|
|
It's client-side javascript - window.open()
|
|
|
|
|
Or simply a link with target="_blank".
---
b { font-weight: normal; }
|
|
|
|
|
Good point!
|
|
|
|
|
How to deploy a web application to another system
The system have only IIS
So we want to add .Net Framework and the Application at the time of installation
My application also have some resource files(.resx) and one dll
Thanks,
I am not ask about the copy and paste the proj
For eg, If we installing any software to our system to additional with that do u want to instal this software, like that
if we installing the application the .net frame work also have to be install with this package (.net framework is nearly <25 MB only)
Also u told dont have the resx files if we didnt put the resx files the localization cannot be taken place
Regards,
Febin
-
|
|
|
|
|
chakkara2003 wrote: no need of installing the .net frame work in the production mechine
Of course you need the .NET framework to deploy a .NET web app
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I have a listbox bound to a database server
I want that listbox to be updated when i press a button, whats the method to force a update?
Also
how do i open a new Browswer window in c#?
-- modified at 23:35 Wednesday 26th April, 2006
|
|
|
|
|
How do you bind data to the ListBox control? If you manage with your code instead of using a datasource control, then in the button click's handler you simply bind the updated data source to the ListBox to refresh the control.
|
|
|
|
|
How do i insert a variable into:
<%@ Register TagPrefix="Site" TagName="content" Src="header.ascx" %>
So that the value of src=variable.
|
|
|
|
|
I'm not sure you can.
As an alternative, you could have a user control that looks at an AppSetting in your web.config file and loads the desired user control; the "header.ascx" would be sort of a master control that loads the appropriate "xxx.ascx" file.
|
|
|
|
|
Just to flesh out my earlier suggestion with a sample - here would be a web form dynamicHeader.aspx , using the custom control -
<%@ Page Language="C#" %>
<%@ Register TagPrefix="site" TagName="content" Src="dynamicHeader.ascx" %>
<html>
<head>
<title></title>
</head>
<body>
<form runat="server">
<site:content runat="server" />
<p>
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
blah blah blah blah blah blah blah
</p>
</form>
</body>
</html> Then this could be the definition of dynamicHeader.ascx :
<%@ Control Language="C#" %>
<%@ Import Namespace="System.Web.Configuration" %>
<script runat="server">
void Page_Load()
{
string controlToLoad
= WebConfigurationManager.AppSettings["HeaderControl"];
Control uc = LoadControl(controlToLoad);
PlaceHolder1.Controls.Add(uc);
}
</script>
<asp:PlaceHolder id="PlaceHolder1" runat="server" /> Here are two user controls then, header1.ascx and header2.ascx :
<%@ Control Language="C#" %>
<h3>This is Header1.ascx</h3>
<asp:TextBox runat="server" />
<asp:Button runat="server" text="Search" />
<hr />
<%@ Control Language="C#" %>
<h3>This is Header2.ascx</h3>
<asp:Calendar runat="server" />
<hr /> And finally, you could then add either "header1.ascx" or "header2.ascx" in your web.config file:
<configuration>
<appSettings>
<add key="HeaderControl" value="header2.ascx" />
</appSettings>
</configuration> Does this help?
|
|
|
|
|
Greetings!
Need help on a service requisition system concept using asp.net and ado.net with monitoring (ip, network location, etc.) and tracking.
Thanx!
|
|
|
|
|
Sure - if it were me, I'd start here[^], with specific attention to #2.
|
|
|
|
|
can anyone give me the asp.net source code for inventory management system...
thanx in advance.
|
|
|
|
|
Do you really expect someone to sit down and program a complete system like that and hand it to you for free? And without any specification at all?
That's what your question sound like. If that was not your intension, you should ask a different question.
---
b { font-weight: normal; }
|
|
|
|
|
hello to all. I want to open a crystal report in PDF in new window. but when i click on the button, it opens in the same window. I can't use target=_blank over here, because i am writing code for generating the report in the button's handler, (or can i?) please help me in this matter.
|
|
|
|
|
There two options come to mind:
+ After you create the pdf report in the button click's handler, you can persist the document on the server side, then open the new page pointing to the pdf document.
+ Move your code to generate the pdf report to the page opened in the new window.
|
|
|
|