|
Thanks that is great
but I want to add these controles when I click a button ,The probleme is that when the page come back from the server it lose all my controles.
so what can I do?
thanks .
Dad
|
|
|
|
|
The problem you are having, has to do with way the page is constructed during a webrequest.
The site constructs the basic structure of the page and fills in the values after the controls are constructed. This is done with every webrequest, so you have to inject your controls during the period that the structure of the page is constructed.
One thing you can do is add the controls to a list in the session state and rebuild the structure from that every time the page is initialized. You will also need to fill in the values that the controls originally had.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
If you cuse dynamic controls, it will lost in postbacks.
So i think u should keep its value (textboix value) to a hidden filed and and recreate it after postback and assign this hiden fild value to the dynamic control...
i didnt think it is not a good idea to use dynamic controls.It defenitley affects the perfomance..
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
hi,
I used UpdatePanel in one page.there is some controls in this UpdatePanel.
then I added ModalPopupExtender to page and set it's properties and then run the page. I faced with this Error :
"An extender can't be in a different UpdatePanel than the control it extends"
Please Help Me.
Thank you.
|
|
|
|
|
Its pretty self explanatory - you've put an extender control on your page that extends a control within a different updatepanel. This is a restriction of the extender framework (unfortunately, I've come across troubles with it before), an extender MUST be inside the same updatepanel as the control it 'extends'.
|
|
|
|
|
|
|
Thank You Very good Answer Its working for me..
|
|
|
|
|
Hi friends
i have one page in which i put iframe.
In iframe i have one dropdownlist and one submit button.
I want to get values of dropdownlist on click of submit button in parent page.
plz help me out
thanks in advance
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Hi
U want to say that u have to populate DropDowList only.
From where u want to populate DropDownList?
Cheers
Chandu
|
|
|
|
|
what is the difference between
<%#databinder.eval(container.dataitem,"")%?
and
<%#eval("")%>
|
|
|
|
|
I think use <%#databinder.eval(container.dataitem,"")% for 1.1 and <%#eval("")%> for 2.0. But I'm not sure!
THT
|
|
|
|
|
I am new to ASP.Net I have visual studio 2005 to be used as development tool.
Can anyone guide me how to make a guest book that simply add a new guest and also we can view all the guest in grid view.
What should I do ?
Whether I should create a database?
I should use disconnected connection?
When should I update original database?
Please guide me.
Thank you.
|
|
|
|
|
1 - obviously
2 - ADO.NET only allows a disconnected model, which makes sense
3 - When someone adds an entry
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
In my application, I am sending an unique value through QueryString to the next page and I have retrive the Query String value in the next HTML page and to get focused on the Text not on the TextBox or Value that is presented no the same page.
I have to get the QueryString value only in the HTML page as I have to use that value in HTML.
Is this possible?If yes How?
Please suggest me an Example.
Thank u
Chandu
|
|
|
|
|
html is only for dispalying or formating the data.
I didnt think it is possible to get query string value using HTML..
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
i am new to asp .net i wanna do an application in which i have to implement pagination of gridview...
i wanna know that step by step....
i am using stored procs to access dbases in server.. and in code used sqldataadapter and dataset...
please help me...with the basics....
thanks in advance....
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
|
Hi
If u r successful in populatating GridView at the time of Pageload without paging,here is the procedure to add paging to u r GridView.
1.First goto GridView Properties, set the value for AllowPaging to "true".Then you can see the page numbers below u r GridView.
2.Then goto Events of GridView and double click "PageIndexChanging" event and write a small code in it.
GridView1.PageIndex=e.NewPageIndex;
After this, again write the code for Binding GridView with u r table or stored proc in the same event.
It is better to put your GivdView Binding code in a function and call it in PageLoad and in this PageIndexChanging event.
Cheers
Chandu
|
|
|
|
|
Hi, suppose I want to dislay a file that was stored in a blob in the same format as the origianal file before it was sent to the database, how would I do that? I know how to read a blob but I'm not sure how to retain the formatting of the orignial file. Any suggestions will be grately appreciated, thanks for your help.
|
|
|
|
|
If the file doesn't contain the formatting, then that formatting is lost. What sort of file are you talking about ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am talking about text files like ms word, notepad, etc. So you're saying that when I display the files, they should have the original formatting?
|
|
|
|
|
If you open a Word file, that file contains it's own formatting, where else would it be ? The only formatting in a txt file is the line breaks and tabs, and it's up to you how you display it, if you respect those, or not.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have a grid view I am trying to invisible the fifth column. The rows are now not showing any data in column but the column name is still showing. I want to make invisible column name also.
if (e.Row.RowType == DataControlRowType.DataRow )
{
e.Row.Cells[5].Visible = false;
}
seema
|
|
|
|
|
hi
just write
gridviewname.columns[index].Visible = false;
ex:
dvPOSelection.Columns[4].Visible = false;
k.ravi sankar
|
|
|
|