|
If you are using ASP.NET 2.0 there is a wizard control that should help you. Consider your design also. Is it necessary to have everything all on the same page, or would breaking it up into more pages be better for development, maintenance and performance?
only two letters away from being an asset
|
|
|
|
|
One solution is to use web UserControls
User controls come as ascx files and contain the same functionality (even pageload is there) as an aspx. The great thing is that you can dynamically load and unload usercontrols on an aspx by using a panel or some other methods.
In visual studio, add a new file of type " Web User Control" for each step of your wizard and add the required coding in each ascx.
Then use a panel in your aspx to load and unload the different user controls programmatically.
Hope this helps.
Carpe diem
Krugger
|
|
|
|
|
Not a good architecture for building a wizard. Loading and unloading user controls on the fly has problems that will become apparent when you try using doing it. Have you?
only two letters away from being an asset
|
|
|
|
|
I did use it but not for wizards. Can you please tell me more about these "practical problems" plz?
Carpe diem
Krg
|
|
|
|
|
If you had seriously used this technique for real production applications you would have encountered the issues of state management and viewstate corruption.
only two letters away from being an asset
|
|
|
|
|
Thanks for the clue. I will give it a go.
Carpe diem
Krg
|
|
|
|
|
Thanks !For your help
I will take care about the practical problems also.
|
|
|
|
|
Hi,
I am struggling to get my styles to work in my gridview. Here is my gridview:
<asp:GridView
ID="gvRoles"
AllowPaging="true"
AutoGenerateColumns="false"
BorderStyle="None"
BorderWidth="0"
CellPadding="0"
CellSpacing="0"
BackColor="White"
DataSourceID="odsRoles"
PageSize="20"
Width="100%"
runat="server">
<HeaderStyle CssClass="gridview_header" />
<ItemStyle CssClass="gridview_cell" />
This is what my styles look like:
.gridview_header
{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #fff;
text-align: left;
margin: 0px;
padding: 3px 2px 3px 2px;
background: #9bab6f;
}
.gridview_cell
{
border-bottom: solid 1px #ececec;
border-left: none;
margin: 0px;
padding: 3px 2px 3px 2px;
}
This works fine in IE7, but in Firefox there is a black line between the cells. I can't seem to remove the black line. Please can someone help me? If someone know of a good gridview styling example on the Internet please send it through.
Regards
.NET Enthusiast
|
|
|
|
|
Give GridLines="None" in gridview property
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
how to user sitemappath contol
|
|
|
|
|
Get It SiteMapPath
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
To all,
in vb.net,to close the application or form...we use..
End
OR
dim frm as form1=new form1
frm.close()
so...
How to close asp page or application?
plz reply me?
thanking u....
Imagine the I.T
|
|
|
|
|
You close a webpage by using the javascript window.close() or self.close().
only two letters away from being an asset
|
|
|
|
|
Hai All,
Can any one know this,
when i am uploading a file(ExcelSheet) from Database,then the current date will be visible from database.but my requirement is when i upload the file, i want to display (yesteday)Previous date.
Any help Thanks in advance
Thanks
Subbu.
|
|
|
|
|
System.DateTime.Now.AddDays(-1);
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi friend
when i have load dynamically dll references to this code:-
Dim asmblyload As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile("C:\Inetpub\wwwroot\UccpLibrary\Bin\Uccp.dll")
then error occurred
The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)
anybody tell me what is solution of this error. help me.
Piyush Vardhan Singh
Senior Software Engineer
TAS NewDelhi
India
|
|
|
|
|
Hi,
I am using >NET 2.0 and I have a gridview in which I want to display the role ID and name. I am using the membership and role provider.
I have an object data source, but I think I am using the incorrect method:
<asp:ObjectDataSource
ID="odsRoles"
SelectMethod="GetAllRoles"
TypeName="System.Web.Security.Roles"
runat="server" />
What method do I use to get the role ID and name?
Here is my incomplete part of my gridview:
<Columns>
<asp:TemplateField HeaderText="Role">
<ItemTemplate>
<%# Container.DataItem.ToString() %>
</ItemTemplate>
</asp:TemplateField>
</Columns>
Please can someone help?
Regards
.NET Enthusiast
|
|
|
|
|
Try this code <%# Eval("FieldName")%> Instead of <%# Container.DataItem.ToString() %>
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
What is FieldName, the table name?
|
|
|
|
|
What is a RoleID and Name?
both Are your field Name.
use One of them as fieldname to display values.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
|
how to add custom control to my web page??
|
|
|
|
|
Fisrt Of all You have to add Custom Control DLL in ToolBox.
Right Click on ToolBox-->Choose Items-->Click on Browse in DialogBox-->Add DLL of Custom Control and Apply.
Your Custom control will be added in ToolBox now You can drag and drop that control in your web page.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
hi
i hv taken asp:CheckBoxList ctrl wit id=chkAreaOfExpertise
n asp:ObjectDataSource
n i want a comma separated list of selected items
so i hv written d code
for (int i=0; i < (chkAreaOfExpertise.Items.Count); i++)
{
if (chkAreaOfExpertise.Items[i].Selected==true )
{
areaexpertise = areaexpertise + chkAreaOfExpertise.Items[i].Value + ",";
}
}
bt it doesnt work
if (chkAreaOfExpertise.Items[i].Selected==true ) never succeed
plz help
|
|
|
|
|
hi
try with
for (int i = 0; i < ChkListCustomerLevel.Items.Count; i++)
{
if (ChkListCustomerLevel.Items[i].Selected)
{
Customer += ChkListCustomerLevel.Items[i].Value + ",";
}
}
-- modified at 3:58 Thursday 20th September, 2007
Jintal Patel
|
|
|
|