|
//edit template
<EditItemTemplate> <asp:TextBox runat="server" id="txtbox1" Text='<%# DataBinder.Eval(Container.DataItem, "FieldName1") %>'/>
</EditItemTemplate>
//and event
Sub MyDataGrid_Edit(Sender As Object, E As DataGridCommandEventArgs)
MyDataGrid.EditItemIndex = CInt(E.Item.ItemIndex)
End Sub
Nav.
|
|
|
|
|
Hi All,
My stuff is like this :
By clicking on a button, you open a window to handle parameters. When the child window is open, you fill the form and you can create a new parameter by clicking on a LinkButton. The LinkButton calls an handler to create parameters. How to call a client javascript function to close the child Window and recover the ID parameter in the parent window.
----------------------
Parent Window
<asp:button id="ButtonOpen" runat="server" text="..." causesvalidation="False" onclientclick="UserControlRel_CityDisplay();">
ButtonOpen call a ShowModalDialog to handle parameters.
-----------------------
-----------------------
Child Window
<asp:linkbutton id="ButtonOK" runat="server" text="<%$Resources:GlobalResources,ButtonOK %>" tooltip="<%$Resources:GlobalResources,ButtonOKTooltip %>" cssclass="cssLinkButtonOut" onmouseover="this.className='cssLinkButtonOver'" onmouseout="this.className='cssLinkButtonOut'" causesvalidation="True" onclick="ButtonOK_Click">
ButtonOK_Click call the handler to create a new parameter. In this function, I recover the ID of the new parameter and I want to send.
Thx for your help.
|
|
|
|
|
|
use session variable for it.put ur value in session variable like
Session("Var_Name")= Value
|
|
|
|
|
i can't use session varaible in this application
|
|
|
|
|
If the data is not very important then you can maintain it in querystring also.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Thanks. I get the idea.
thanks in advance. Much appreciated.
|
|
|
|
|
Hi,
I gotto show the contents of the columns in rows format and that too only 4 items in a row the next item should be displayed in next row.
Rizu
|
|
|
|
|
You can use datalist for this purpose. There you are having the facility to show the rows as columns wise.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
But what about the four items in row,can we done this in datalist.
Thanks & Regards,
:-DRizwan
|
|
|
|
|
yes there is a property called Repeatcolumns you just need to set that to 4, after that it will repeat after 4.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
Thanks for that , i was trying this from past 3 days.
Thanks again
Thanks & Regards,
:-DRizwan.
|
|
|
|
|
Always welcome
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi apurva...
this is aavesh..
hav u used subdomain..
i'm not getting the funda behind it
thanx
Aavesh
|
|
|
|
|
Hi aavesh,
Actually i have never worked on subdomain. but if i am understanding your problem correctly then probably your problem can be solved by URL rewritting. Is it so?
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi
thanx for replying..
may i ask u how much exp. u hav & right now where r u working.....
thanx
|
|
|
|
|
Why those questions?
By the way right now i am in hyderabad and working for choice solutions and having 3+ yrs of exp(not all on dot net).
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi apurva mam
don't take me otherwise..
i just want to know that is there any requirment in ur company for
dotnet programmers i hav 1 year experience in dotnet.
i'm working in delhi.
thanx
|
|
|
|
|
First of all buddy i must tell you that i am not at all "mam" I am a "man".
are you trying to rellocate to hyderabad. These days the market is quite good and if you put your resume to any job portal then certainly you will get some calls. And also if i will get something i will let you know also.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thanx man..
i put my resume on job portal didn't get any reply..
by the way thanx for reply..if u get to know any job then plz reply me
thanx
|
|
|
|
|
Hi to all,
I struck at a problem. I have two application which running on two different server.
I have the App1 and App2; with two different shared folder shr1 and shr2 respectively. I am uploading some files from app1 to shr1.
Now, from the App1 (let's say button click ) , I have to transfer all files from shr1 to shr2.
so Can anybody give me an idea how to solve this OR can I get the list of Objects which I can use ?
Naishadh
|
|
|
|
|
Are these two servers on the same network? If they are it should be fairly simple to copy files from one folder to another using the same File.IO classes that you used when uploading the file. If not, then you could create a web service on the receiving server that would take a byte array (your file data) as a parameter and pass the files over in that fashion.
|
|
|
|
|
Hi to all,
I'm a newbie in ASP.net......
I want to develop a search system like it is in the help of any microsoft product.....the thing is that , we hav to track the keypress event of the textbox.....i came to know that this part would be done better using javascript....how to do it?...please help...i need it urgently......
|
|
|
|
|
here is very basic example for keypress event script
document.onkeypress = KeyPress;
function KeyPress(e){
document.form1.textbox.value=window.event.keyCode;
}
hope this will help
Nav.
|
|
|
|