|
|
Hi
I am using hyperlinks in one aspx page when i click that link it redirects another page with some parameters. But now i want to display that dynamic page in the same page as somepart of the page in which i had used hyperlinks. how to do this ???
Is it possible by using frames???
plz help me...
Thanks in advance
Haritha
|
|
|
|
|
Hi there Haritha would you please rephrase your question to make it clearer. I don't quite understand what you are asking.
|
|
|
|
|
I am filling a drop down when another drop down index changed event is fired.
But i am filling dropdown using XMLHTTPREQUEST object without posting back the page. My question is when i am submitting the form with selected values..when the page is loaded my dropdown is blank.
Can somebody help me please....
madhu
|
|
|
|
|
XMLHTTPREQUEST object will work in client side using javascript, So whatever you do with this object will not reflect at server side. I mean you cant find the state changes in server side.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
How can i solve this. Please Give me any workarounds..
Thanks in advance
madhu
madhumathi.J
|
|
|
|
|
Add Hidden textbox for each and every control to store the state, write a javascript function and call when the button is clicked. after postpack repopulate or store the value back.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I can do that but being it is a dropdown i need to populate the dropdownlist everytime page is loaded. I just cannot store a value and repopulate it.
Instead i can do that at server side instaed thru java script.
Any other way i can register the control and data.
madhu
|
|
|
|
|
No way dear...I also faced this problem and did this same way...Finally I changed that event to server side.
You can do this in asp.net 2.0 without any worry using AJAX
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hello
I'm sure you saw this request fro several times, but please help me.
i'm a Windows Application Developer (C#) and i always change properties of controls programmatically.
i did these:
sqlDatasource1.Connectionstring = ... ;<br />
sqlDataSource1.SelectCommand = "SELECT idn, header, date FROM <br />
tblNews';<br />
sqlDataSource1.DataBind();<br />
gridView1.dataSourceID = sqlDataSource1;<br />
gridView1.DataBind();<br />
Now i want to do these in CodeBehind:
1-Change columns HeaderText and width
1-Change column[1] (header) to HyperLink
2-Add Button with Text="Active', Identify when user clicks on it and it's RowId
I know it takes time for helping me, Please take me usefull references in web.
Tanx
|
|
|
|
|
Hi,
Instead of creating columns automattically at runtime.
You can create the custom columns. Go to property builder of gridview and the uncheck the Automatically create columns at runtime.
Add the desired columns there giving desired header name and datafield.
|
|
|
|
|
Hello Friends
How can i know which row user clicked on it? I saw in forums they use CommandClick with e.command argument, but i can't see this event for GridView in Properties box! I don't want to use Select Column of GridView.
Tanx
|
|
|
|
|
Trap the CellMouseClick event...
You can then use the e.RowIndex to know the row clicked by the user.:->
|
|
|
|
|
Hi Max,
Check this link. It is given in detail how you can create columns dynamically.
http://www.123aspx.com/redir.aspx?res=35975
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
Hi,
I am having datagrid with pagesize 5 and dataset which returns 20 records and binds with datagrid.
What I need is to display the datagrid by default from 2 page - that is from 6th record of my dataset result. How could i do this?
Any luck.
Rams.
Be simple and Be sample.
|
|
|
|
|
Hi,
dg.CurrentPageIndex = 2;
dg.DataBind();
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Thanks,
When i change currentpageindex, then I can't go to previous page. How to get rid of it.
Be simple and Be sample.
|
|
|
|
|
Make sure you handle the event PageIndexChanged for datagrid.
Set
DataGrid.CurrentPageIndex = e.NewPageIndex;
Hope this works
|
|
|
|
|
Hi,
Can you post your code of GridBinding and PageIndexChangedEvent ?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I have done this thing by following way and it works fine for me.
I Page_Load i have writen the following to bind my datagrid for the fist time.
if(!isPostBack)
{
dgSearchResult.CurrentPageIndex = 1; // This will show 2nd page initially as u wanted to.
dgSearchResult.DataSource = dst.Tables["Products"];
dgSearchResult.DataBind();
}
and in PageIndexChanged event of datagrid I have written the following code.
dgSearchResult.CurrentPageIndex = e.NewPageIndex;
dgSearchResult.DataSource = dst.Tables["Products"];
dgSearchResult.DataBind();
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
In the PageIndexChanged Event
Write
DataGrid.CurrentPageIndex = e.NewPageIndex;<br />
|
|
|
|
|
Hi,
I haven't tried this, but I feel setting the "datagrid.pageindex" value should help you.
rAm
i Think, i Wait, i Fast -- Siddartha
|
|
|
|
|
Hi
I have a Infragisics data grid control in a web page. I want to show its contents alone in a separate page upon clicking a button. Once the new window is shown i want to print the contents of the grid in the deafult printer. How can i do this one.. Anyone please help..
Thanks n Regards,
Umashanker.K
|
|
|
|
|
For such a specialised question you may find it easier to get a response from Infragistics support or from their forums (which they probably have).
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Can someone kindly tell me how I can get the value from the <appSettings> section in the web.config using Javascript.
|
|
|
|