|
THANKS FOR REPLY,
I DID IT BUT I NEED IT TO BE SORTED ON THESE FIELD BUT AFTER CONVERTING I AM NOT GETTING THIS AS ...
123.32
321.12
1123.43
GETS SORTED AS
123.32
1123.43
321.12
VIJAY
|
|
|
|
|
Please don't write in all upper case. It's tiresome to read.
You have to sort the numerical values. If you convert them to strings and then sort them, they will be sorted as text, not by value.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a web user contol(contains a dropdown-list) in the form.The dropdownlist get populated after the axecution of form load.i have to pick the value of dropdownlist before the dropdown-list loading gets completed.
I think , i should write the code on form events.But i don't know , on which event , i should write the code.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Instead you can do one thing create a property in your user control such as selectedValue or index like here you should write code for dropdown selectes value/index
Call this property from your page in page Load event
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
but the control function calls itself after the fom load event gets completed.i have properties there in the web control.i am repeating the question----the web user control loads after the execution of form load.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: but the control function calls itself after the fom load event gets completed.i have properties there in the web control
here what you want to say i am not getting
yes first form page load will occure then usre control page load will occered
Here i am explaing in deatil now
create a property in the user conterl
lets
public sting SelectedValue
set{this.dropDownlistId.Selectedvalue=value;}
get {this.dropDownlistId.SelectedValue;}
now as you said you want to show selected option as the page gets loaded now
call this property from page load or when you want to show changed dropdown value
this.UserControlId.SelectedValue="GiveValueofDropdown item"
you can use index also instead of value
Again if you areconfused the please read this article that will explain all events
http://www.codeproject.com/useritems/lifecycle.asp[^]
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
on page load it is giving the index = -1.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
When are you setting the selected index of your user control dropdown list ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Do you mean that you want to pick a value from the Dropdownlist on the fly(when it gets loaded - On DataBind). If yes then you can't. Dropdownlist doesn't have such an event that supports this requirement.
Regards - J O N -
|
|
|
|
|
ok let me repeat the problem.i have a dropdownlist in the web-user-control.
the webusercontrol lies in the form.After the execution finished, the dropdownlist gets populated.Now my question is how can i detect the selected value of the dropdownlist at the form load(I have selcetd value and selected index propeties in the web user control)
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
try this code in the form load...
CType(UserControlID.FindControl("DropDownListID"), DropDownList).SelectedValue
Regards - J O N -
|
|
|
|
|
how can i make aspx page just like a word pad so that user can write some text,edit the text,change the font ,font size
|
|
|
|
|
you need to write a component in .NET which will work similar to a simple word processor.
Regards - J O N -
|
|
|
|
|
|
You posted the same question less than an hour ago. Instead of reposting, you should follow up on the replies that you already got.
If you just ignore the replies that you get, people will start ignoring your questions.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi everyone,
I am trying to do something I thought was going to be easy and sure enough I have hit a road block
In a nutshell I want to send a email to a user after they have made an order and in that email I would like to attach a PDF which has all the details of the order.
I have a pretty HTML (.aspx) page with all the details so I thought that if the server could retrieve this page and convert it into a PDF then all my problems would be solved elegantly.
Unfortunately I can't find anything which will convert a HTML web request (and its associated sub requests to get all the images, etc) and give me a PDF.
Because I am on shared hosting I am also looking for something which I don't need to install on the server - I would like to just deploy it as part of my bin directory.
Does anyone know anything that would do the job?
Obviously if it is free that would be great but I am willing to pay for something if it is reasonably priced and does the job well.
Thanks for reading this post! If you need more info please just respond and I will be more than happy to get into it.
Kind regards -- Mark
|
|
|
|
|
I like to get some advice in application architecture.
I've got xbap project that he's need to contain database ( user,image,so on..)
I've create the GUI and the app in WPF/E ( XBAP ).
What I'm doing right know ,is adding to my (XBAP ) anew ASP 2.0 project to
Benefit of the asp login wizard.
1 ) First question is how I automatically let my asp jump to my first xbap page after the user found as login.
2 ) What kind of data base you suggestion to use for membership website
that contain ( image , and so on... )
3 ) Do I have to build anew database or I can use the database that the asp 2.0 use her login users. ? ( I think is app_data ? )
In the ( XBAP ) solution I do adding a new project and add the asp 2.0 .
Please any one can clear for me that best architecture do combine this two environments ,And Most important who how many database object I need ?
One in the asp and one the Xbap project ?
Thank you all .
|
|
|
|
|
i want the user to enter the text in my asp.net page and he can edit the page with required fonts,size
|
|
|
|
|
use font dialogue box
--sreeram
|
|
|
|
|
|
I used nant to build ASP .NET application my VS 2005 .sln file
is being compiled using nant builder ..I heard that nant is used to compile and deploy the ASP .NET application ......
Can anyone plese tell me how to deploy ASP .NET application using nant. I have compiled file ready i want to know how to deploy it...
I m using VS 2005 and Nant-0.85
aaa
|
|
|
|
|
Hello All...
when i apply URL rewriting the page is working fine.
but the problems is : CSS and IMAGES are not shown on the page due to path is changed.
i have used RewriteModule for URL rewriting
now what should i do to avoid this problem which style of coding i shud used..
i need your help ...thnx
Jay R.Bhagatwala
|
|
|
|
|
Specify an absolute url to the css files and images. Like for example http://www.mysite.com/images/logo.gif instead of images/logo.gif .
If the rewritten url is still in the same application, you can use a path relative to the site root instead of relative to the page. Like for example /images/logo.gif instead of images/logo.gif .
---
single minded; short sighted; long gone;
|
|
|
|
|
First post chopped off left side of code. Here is the complete version.
Objective is to click on the image in the gridview to delete the record from the database, rebind,
and display the gridview showing that the record is gone. Problem is that it requires 2 clicks.
The first click makes the page move slightly but it does not delete the record from the database.
The second click displays the grid without the record and it displays the response.write text.
If I remove the call to the deleteje sub, the response.write does display the jeid so the onrowcommand appears to be firing.
<asp:GridView ID="gv3" runat="server" BackColor="SkyBlue"
HeaderStyle-BackColor="lightGray" DataKeyNames="ID" onrowcommand="modifyje"
AlternatingRowStyle-BackColor="LightSteelBlue"
AutoGenerateColumns="false" >
<columns>
<asp:TemplateField >
<ItemTemplate >
<asp:ImageButton runat="server" ImageUrl="/images/delete.gif"
enabled="true" ToolTip="Delete"
commandname="DeleteJE2" CausesValidation="false"
CommandArgument='<%# DataBinder.Eval(Container.DataItem,"id") %>'
ID="deleteimage" />
</ItemTemplate>
</asp:TemplateField>
<asp:boundfield datafield="id" headertext="ID" />
<asp:boundfield datafield="name" headertext="Name" />
<asp:boundfield datafield="descr" headertext="Description" />
<asp:boundfield datafield="cr_div" headertext="Cr_Div" />
<asp:boundfield datafield="Cr_CC" headertext="Cr_CC" />
<asp:boundfield datafield="Cr_Acct" headertext="Cr_Acct" />
<asp:boundfield datafield="Bill_Div" headertext="Bill_Div" />
<asp:boundfield datafield="Bill_CC" headertext="Bill_CC" />
<asp:boundfield datafield="Db_Acct" headertext="Db_Acct" />
</columns>
</asp:GridView>
Sub modifyje(ByVal sender As Object, ByVal e As GridViewCommandEventArgs) Handles gv3.RowCommand
' this uses the template column which passes the record id
' this is the easiets way to get the record id field value
'--------------------------------------------------------------------------
If (e.CommandName = "DeleteJE2") Then
jeid = Convert.ToInt32(e.CommandArgument)
Response.Write("jeid=" & jeid)
Call deleteje(jeid)
End If
'--------------------------------------------------------------------------
End Sub
Sub deleteje(ByVal jeid As Integer)
Dim objctl As New JEController
Dim objinfo As New JEInfo
objctl.JE_DeleteJE(jeid)
Dim ds2 As DataSet
ds2 = objctl.JE_getJEList(lname,keywd,crdv,crcc)
gv3.DataSource = ds2
gv3.DataBind()
End Sub
Thanks for your help!
|
|
|
|
|
Hi guys, i really need your help here, im doing a web application with asp.net, im using the personal web site started kit, but i need to have just one page to initialites all, actually ive the default.master, that loads the top menu, the aspcontentholder(default.aspx) and the footer, and the default.aspx, so i need to have both of them in the same page, on a .aspx page.
if posible i like to put the default.master into the default.aspx so here is the code from both.
DEFAULT.MASTER
<%@ Master Language="C#" CodeFile="Default.master.cs" Inherits="Default_master" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div class="header">
<h1>Control de Dispositivos</h1>
<h2>Melissa Contreras & Joan Miramontes</h2>
<asp:menu id="menua" runat="server"
datasourceid="SiteMapDataSource1"
cssclass="menua"
orientation="Horizontal"
maximumdynamicdisplaylevels="0"
skiplinktext=""
staticdisplaylevels="2" />
<div class="nav">
<asp:SiteMapPath id="SiteMapPath1" runat="Server" PathSeparator=" > " RenderCurrentNodeAsLink="true" />
|
<asp:LoginStatus ID="LoginStatus1" Runat="server" />
</div>
</div>
<asp:contentplaceholder id="Main" runat="server" />
<div class="footerbg">
<div class="footer">
<asp:menu id="menub" runat="server"
datasourceid="SiteMapDataSource1"
cssclass="menub"
orientation="Horizontal"
maximumdynamicdisplaylevels="0"
skiplinktext=""
staticdisplaylevels="2" />
Copyright © 2007 MCJM Co.
</div>
</div>
<asp:sitemapdatasource id="SiteMapDataSource1" runat="server" startingnodeoffset="0" />
</form>
</body>
</html>
DEFAULT.ASPX
<%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Your Name Here | Home"
CodeFile="Default.aspx.cs" Inherits="Default_aspx" %>
<asp:content id="Content1" contentplaceholderid="Main" runat="server" >
<div class="shim column" ></div>
<div class="page" id="home">
<div id="sidebar">
<asp:loginview id="LoginArea" runat="server">
<AnonymousTemplate>
<asp:login id="Login1" runat="server">
<layouttemplate>
<div class="login">
<h4>Login to Site</h4>
<asp:label runat="server" id="UserNameLabel" CssClass="label" associatedcontrolid="UserName">User Name</asp:label>
<asp:textbox runat="server" id="UserName" cssclass="textbox" accesskey="u" />
<asp:requiredfieldvalidator runat="server" id="UserNameRequired" controltovalidate="UserName" validationgroup="Login1" errormessage="User Name is required." tooltip="User Name is required." >*</asp:requiredfieldvalidator>
<asp:label runat="server" id="PasswordLabel" CssClass="label" associatedcontrolid="Password">Password</asp:label>
<asp:textbox runat="server" id="Password" textmode="Password" cssclass="textbox" accesskey="p" />
<asp:requiredfieldvalidator runat="server" id="PasswordRequired" controltovalidate="Password" validationgroup="Login1" tooltip="Password is required." >*</asp:requiredfieldvalidator>
<div><asp:checkbox runat="server" id="RememberMe" text="Remember me next time"/></div>
<asp:imagebutton runat="server" id="LoginButton" CommandName="Login" AlternateText="login" skinid="login" CssClass="button"/>
or
<a href="register.aspx" class="button"><asp:image id="Image1" runat="server" AlternateText="create a new account" skinid="create"/></a>
<p><asp:literal runat="server" id="FailureText" enableviewstate="False"></asp:literal></p>
</div>
</layouttemplate>
</asp:login>
</anonymoustemplate>
<LoggedInTemplate>
<h4><asp:loginname id="LoginName1" runat="server" formatstring="Welcome {0}!" /></h4>
</LoggedInTemplate>
</asp:loginview>
<hr />
</div>
<div id="content">
<h4>Dispositivos Conectados</h4>
<asp:Button ID="refrescar" runat="server" OnClick="refrescar_Click" Text="REFRESH"/>
<asp:Button ID="Bmotor" runat="server" Text="Motor set Estado" OnClick="Bmotor_Click" />
<asp:Label ID="Lmotor" runat="server" Text=""></asp:Label>
<asp:DataGrid id="MotorsGrid"
BorderColor="Black"
BorderWidth="1px"
CellPadding="3"
OnItemCreated="Item_Created"
OnItemCommand="Motores"
AutoGenerateColumns="False"
runat="server" >
<HeaderStyle BackColor="LightGray">
</HeaderStyle>
<Columns>
<asp:BoundColumn
HeaderText="Motor Number"
DataField="Numero"/>
<asp:BoundColumn
HeaderText="Estado"
DataField="Estado"/>
<asp:BoundColumn
HeaderText="RPM"
DataField="RPM">
<ItemStyle HorizontalAlign="Right">
</ItemStyle>
</asp:BoundColumn>
<asp:ButtonColumn
HeaderText="Prender"
ButtonType="PushButton"
Text="Prender"
CommandName="Motores"/>
<asp:ButtonColumn
HeaderText="RPMs"
ButtonType="PushButton"
Text="RPMs"
CommandName="Motores"/>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Motoress"/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
<hr />
<hr />
</div>
</div>
<asp:ObjectDataSource ID="ObjectDataSource1" Runat="server" TypeName="PhotoManager"
SelectMethod="GetPhotos">
</asp:ObjectDataSource>
</asp:content>
|
|
|
|