|
Actually on clicking the edit link i am not getting the previous values in the textboxes . so how it is to be done . i am not doing the way it is done in this article. i am taking my database separately.when i click edit i get textboxes but i get them empty.
|
|
|
|
|
ritu4321 wrote: i am not doing the way it is done in this article. i am taking my database separately
So what is your approach?
<< >>
|
|
|
|
|
i want to know how to do now .
|
|
|
|
|
Sorry man... as I dont know what are you doing? What is your code to process the edit buton click? Do you populate data into those textboxes in this handler or not?.....Cannot help you out till having your code...
<< >>
|
|
|
|
|
You can do that by changing the code in html view.
for example u have a column with name "Column0" in your grid
u want to see text in textbox on it's edit and insert mode
for that just go in your html view and in edittemplatecolumn tag with search the text property of your textbox and change it
text='<%#bind(databaseColumnName)%>'
hope i make my self clear to u
|
|
|
|
|
How can I use webpartmanager without installing SQL 2005 express?
Can any one please help?
pchakma_buet
|
|
|
|
|
Hi All...........
I have a situation like ,i need to upload Excel file and i need to store it in database, my table fields and xl sheet fields are same. can you please send me code to write under upload button...
Its very urgent ..plz.........
Suresh.R
|
|
|
|
|
sooreeagt wrote: my table fields and xl sheet fields are same
Do You want to upload or want to store field by field value of xl sheet to DB fields?
if you want to upload refer this
http://www.codeproject.com/aspnet/fileupload.asp[^]
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Hi All...
I have a datagrid with values bound to it..I have two columns in the datagrid.The first column is the name field and the second column is age field..Now i need to higlight the highest age which is found in the datagrid..I want to differentiate it from other rows by giving some color differences in the datagrid...
Someone help in this regard....
Balaguru
|
|
|
|
|
Here is the idea...IMO
- You find the highest age from data...
- In the ItemDataBound event, you get the value of the second cell and compare this one with the highest one. If equal, change background color for this cell or whole row...that's up to you
Hope you get the idea
<< >>
|
|
|
|
|
Hi..
Could u be more specific..? Canu give me some sample codes to do that..?
Regards,
Balaguru
|
|
|
|
|
Balagurunathan S wrote: Could u be more specific..?
What do you need me to explain more....?
Balagurunathan S wrote: Canu give me some sample codes to do that..?
As I do not have the specific code for that purpose now...
Just try by step thruogh...and post your question here to tell us what are you stuck on?
<< >>
|
|
|
|
|
Hi
You can change background color in ItemDataBound if you have row number with highest age as given below: "0" --> row with highest age
if (e.Item.ItemIndex.ToString() == "0")<br />
e.Item.BackColor = Color.Beige;
Or Get row number using for loop. Set this row no in a hidden variable. Use this hidden varible to change the background color.
DataGrid1.Items[0].BackColor = Color.Beige; //Change 0 to your hidden variable.
Hope you got it.
Harini
|
|
|
|
|
Hi all,
I have an string array which contains string valuves in page one . I wanna display array element's values in page too.
PLease help me.
Regards
Ruwandi
rkherath
|
|
|
|
|
Put array object into session...
<< >>
|
|
|
|
|
hi thax for replying . Can you please explain how to do that! with an example
Thanks in advance
Regards
Ruwandi
rkherath
|
|
|
|
|
try...Session.Add("arrStrings", yourObj)
<< >>
|
|
|
|
|
Can't you store those value ?
you may use one of this
ViewState/Session/QueryString
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... "
|
|
|
|
|
Hi sandeep ,
Thanks for replying.
Problem is like this. In page one i have a checklistbox with 112 items.
User can select any number of items.
then in the second page i have to generat a report out of those items. So i was thinking if i can put item.Text in to a string array and post it to the second page i can read and do the neccessary
Do you have any idea?
Regards
Ruwandi
rkherath
|
|
|
|
|
Hi there:
I assume you alread had string array...so here is my suggestion: create an array list which contains this string array, say it's named as arrListValues. Then put this into Session Session.Add ("arrListValues",arrListValues)
So in the second page, you just get this object from Session Session["arrListValues"]
Hope you get the idea
<< >>
|
|
|
|
|
Ya right I ll give a try.
Loads of thanks
Regards
Ruwandi
rkherath
|
|
|
|
|
Hi
Dim myArray(3) As String
myArray(0) = "val 1"
myArray(1) = "val 2"
myArray(2) = "val 3"
myArray(3) = "val 4"
now spit it
Dim Data As String = Join(myArray, ",")
Pass to next page
response.redirect("MyPage.aspx?data=" & Data )
Recieve it
dim newdata as String = request.querystring("Data")
Save it to array
Dim newArray(3) as String
newArray= Split(newdata, ",")
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Yes i was giving the same example
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... "
|
|
|
|
|
Thanks Sandeep.
I will give a try
rkherath
|
|
|
|
|
Hi
I want some thing like this In a form there is a combobox and depending upon the value choosen the a new form should open(Till here i have done). In the new form there is a text box name candidate id this fild is unique in the database(Primary key). SO i want this feild to automatically generated as soon as the form opens
just for example
If the valur clicked is
Software-> the new form opens for software the id generated should be SW001,next time if clicked the value in the text box should be automatically populated with SW002 and so on,
In my opinion when i am selecting the value software a value should be passed to the next form. and the value should be "SW" but the number generation Like "SW001" have to check in the database what is the last id for software department so next time if clicked its should be "SW002"
Can any one pl help me.
Prakash Mishra(Banglore,India)
|
|
|
|