|
Sorry John i can't under stand what exactly i have to do could you explain it properly plz
Thanks you your reply
Regards
Yogesh Agarwal
|
|
|
|
|
1. In the ItemTemplate part of the DataList control, add a Label Control (to display the serial No).
2. Datalist control has a ItemDataBound Event which will get executed for each item. In that event find the control and assign the Value. ItemIndex property will return the index value of the Item. same value you can use to show as a serial no. since the Index starts from 0 we add plus 1 to the Index value.
something like this you should add in the ItemDataBound Event of the DataList Control.
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Ctype(e.Item.Findcontrol("lblSerialNo"),Label).Text = e.Item.ItemIndex + 1
End If
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi
i am developing a web based c# application in vs2005. i am facing a problem that whenever i place a new control on to the webform, it is by default absolute positioned.
for eg. the markup is as folows
<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 0px; position: absolute;top: 0px"></asp:TextBox>
i have to get around it by deleting the style attribute (along with it goes the trouble some z-index thingy)
is there any way i can set in the IDE that the controls are not absolutely positioned.
thanks in advance
Kunal
|
|
|
|
|
Visual Studio --> Menu Tools --> Options --> HTMlDesigner (in Treeview) --> CSS Positioning --> uncheck "Change positioning to the following ... "
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
thanks... that worked..
kunal
|
|
|
|
|
Check out Positioning Checkbox is checked or not
Tools--->Options--->HTML Designer--->CSS Positioning--->
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
You can change that under Layout-> Position -> Auto-position Options.
Same problem Discused here[^]
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi
i m working in asp.net 1.0 C#, i m dynamiclly generated check box control on web page acc. to the value in database.
My prob is how to check how many checkbox is click by the user on submit the page.
(Plzz give me sample code if possible)
thanks in advance
|
|
|
|
|
Do you have the CheckboxList in C# 1.0 ?
if yes then use that one
or if ou don't have then check the Request object it will contain values of of all checked checkboxes
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... "
|
|
|
|
|
How t o achieve form authentication for login page?
|
|
|
|
|
|
Hi all,
From my DATABASE i get Dataset to my GRIDVIEW.
On run time I want to change the value of a cell.
For example:
Instead of "0" i want to write "N/A".
let's make it clear - I don't want to update the value in the DB
just change the specific value of the cell that the user will see on the web.
Hope I made my self clear.
Thanks for your help!!!
|
|
|
|
|
Check the fallowing url will get many articels regarding the Gridview
http://gridviewguy.com/CategoryDetails.aspx?categoryID=7[^]
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... "
|
|
|
|
|
OnRowDataBound Event
Find Control,Get values and Set Values
For Example
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
If(((Label)e.Row.Findcontrol("lblId")).Text=="0")<br />
{<br />
((Label)e.Row.Findcontrol("lblId")).Text="N/A";<br />
}<br />
}
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Wow......
It is OK now!!!!
thanks so much for your help!!!!
Omer
|
|
|
|
|
i want to know about the basics of crystal report in asp.net
|
|
|
|
|
|
Nice one
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... "
|
|
|
|
|
Dear All,
I have proble in devloping .net webservice.
I have to share comman state to all user
this is all using .net web service
this is what i want visible comman state to all online connected user
as i want to devlop online poker
Vira
Web devloper
Mumbai
-- modified at 7:15 Thursday 6th September, 2007
|
|
|
|
|
I guess you are working on .NET remoting concept. There are differences between Webservices and Remoting though they does the same work like it allows you to communicate between the client applications and components. Both can act as a middleware but can't do anything with the textBox.try to understand the concept first and see how it can be done and decide which one will suit best for you situation and then proceed....
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
thanks,
i am going to devlop online casino game.
and i want card on desk will shown to all onliine user that is one object to all user.
so i want to use .net web service but how maintain single state that is comman state to all user that i don't know to i am doing R&D on that
if u find solution then reeplay
thanks
|
|
|
|
|
You can achive this through static variables in your webapplication. And onething more we dont use controls in webservice.
Shujaat
|
|
|
|
|
I have a page which has certain required fields.In order to validate them i am using Required Field Validators.
Now on my save button i have added the attribute
btnSave.Attributes.Add("OnClick", "return OnSaveClick();");
function OnSaveClick()
{
if(document.getElementById('ctl00$ContentPlaceHolder1$txtOneTouchUserName').value.length >0 && document.getElementById('ctl00$ContentPlaceHolder1$txtOneTouchPassword').value.length >0)
{
if(window.confirm("Are you sure you want to save configuration settings and log off ?"))
return true;
}
}
This java script function basically displays a Confirmation box ...
Now , the problem is that when i click save post back occurs and then the .net validation occurs, in case i dont add the HTML onclick event to the save button then the validation occurs without post back.
How do i prevent post back without removing the onclick java script.
|
|
|
|
|
return false;
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
In case i return false in javascript ,the postback dosent occur but neither does the validation ocuur
|
|
|
|