|
Hello, the only option in the edititemtemplate is a linkbutton or push button... so how do I change this to a textbox?
Thanks alot,
Commickey
|
|
|
|
|
linkbutton or push button is your project options or you are saying only two two controls are available in the edititemtemplate.If your case is latter one then you can check it again , there is checkbox, button, image,label,textbox controls etc available in the edititemtemplate.You can use any of them
|
|
|
|
|
hello,
thanks alot, I am using Visual studio 2003 and it has only two controls in the edititemtemplate which are link button and push button...
So how u I change this to a textbox?
|
|
|
|
|
How do I reach the edititemtemplate in visual studio 2003?
|
|
|
|
|
Just go in HTML and in that put textbox inside.For ex:
<asp:templatecolumn>
<itemtemplate>
<asp:textbox textmode="SingleLine">
I hope this will help u.
|
|
|
|
|
Hello, I couldn'see ur example.... can u please repost it?
Thanks in advance,
commickey
|
|
|
|
|
hi
I am trying that but its not working.U just need to go to the HTML code and add <asp:templatecolumn>
Inside this u will see <itemtemplate>and inside this u will find <asp:textbox>I hope now u can c and also u got help from me.
Thanks and Regards.
|
|
|
|
|
hi
I am trying that but its not working.U just need to go to the HTML code and add
Commickey wrote: <asp:templatecolumn>
<asp:templatecolumn>
Inside this u will see
Commickey wrote: <itemtemplate>
<itemtemplate>and inside this u will find
Commickey wrote: <asp:textbox>
<asp:textbox>I hope now u can c and also u got help from me.
Thanks and Regards.
|
|
|
|
|
Hi
Try this one....
textpersid = (System.Web.UI.WebControls.TextBox)e.Item.Cells[0].Controls[0];
or
textpersid = (System.Web.UI.WebControls.TextBox)e.Item.Cells[0].Controls[1];
Abhijeet
|
|
|
|
|
Hello,
I tried ur suggestion but am still gettin the same error message....
Any further help?
|
|
|
|
|
Just go in HTML and in that put textbox inside.For ex:
<asp:templatecolumn>
<itemtemplate>
<asp:textbox textmode="SingleLine">
I hope this will help u.
|
|
|
|
|
Just go in HTML and in that put textbox inside.For ex:
<asp:TemplateColumn>
<itemtemplate>
<asp:textbox textmode="SingleLine">
I hope this will help u.
|
|
|
|
|
Just use TemplateColumn u will find edititemtemplate.
|
|
|
|
|
<datagrid> <br />
<columns><br />
<asp:templatecolumn><br />
<itemtemplate><br />
<asp:label id = "label" runat = server"></asp:label><br />
</itemtemplate><br />
<edititemtemplate><br />
<asp:textbox id = "textbox" runat = server></asp:textbox><br />
<edititemtemplate><br />
</asp:templatecolumn><br />
</columns><br />
</datagrid>
-- modified at 6:26 Monday 12th June, 2006
|
|
|
|
|
Hi
I have Datagrid and i want to print data in datagrid but only first two columns of datagrid.Can i do this.
Any help will be Appreciated
bye
Varun
|
|
|
|
|
Lets get this straight u r saying u got a datagrid and u want to read only two columns from the source (which might very well be a database) and display them is this right.
If so lemme know and I will help
If only they could see what I see in my mind
|
|
|
|
|
I want to read all the columns from datagrid
Suppose i have datagrid:
This much Data will be shown in datagrid
Name Age Address State
a 10 abc ss
b 20 vvv dd
Now i want to print only two columns
The result to be printed should be
Name Age
a 10
b 20
Can u help
bye
Varun
|
|
|
|
|
OleDbCommmand cmd = new OleDbCommand("Select Name, Age from DATABASENAME",Conn);
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(ds2); //da is DataAdapter and ds2 is Dataset
DataGrid2.DataSource = ds2.Tables[0];
DataGrid2.DataBind();
If only they could see what I see in my mind
|
|
|
|
|
I will call all 4 columns from database but print only 2 columns as i have shown earlier also
|
|
|
|
|
|
Hi
I'm currently doing a project in asp.net. I need pass values to the controls in the third party website. I want to create objects to the controls in the web site. Is there any solution to my problem.
Help me plz...
Thanks in advance
kani
|
|
|
|
|
Kani ur problem is not clear at all, frankly I dont even understand what you are saying please be more descriptive
If only they could see what I see in my mind
|
|
|
|
|
Hi alyeasad
In my project, I'm accessing indian customs web site. I want to pass the username,password to the login page and also the submit button should be set true.
I tried in vb.net, I used the web browser. I'm able to pass the values.
The code is
AxWebBrowser1.Document.theForm.Username.value = "###"
I need the same in asp.net.
Is there any possibility. Please help.
Thanks in Advance..
kani
|
|
|
|
|
I cant say I clearly understood what u said but here goes.
U can move info from one page to another or from one website to another using Session.
Session["anyname"] = "Username";
Session["anypassword"] = "Password";
this value can be accessed throughout ur project on any form (page).
As for the submit button when u say it shud be true , do u mean enabled cause, if not then whats true ??
If only they could see what I see in my mind
|
|
|
|
|
Hi
Thanks for your reply.
I think still you are not clear with my problem.
I need to create objects to the controls like username and password textboxes in that website from my asp.net application.
Also the event handling method for the button 'submit' in that web page should be written in my asp.net application.
Help me ..
Thanks
kani
|
|
|
|