|
You can use attributes property to achieve the required thing. something like this:
iframeid.Attributes.Add("src","yourpage.aspx");
Best Regards,
Apurva Kaushal
|
|
|
|
|
Exactly, thank you very much
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi!
I have to do paging in thr datagrid., for that I wrote the code :
private void DataGrid1_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex=e.NewPageIndex;
models();
}
In models() Func... I retrieve the value from the DB.
It shows the value and that the Page no also: 1,2,3.... Bur if i clicks the 2nd page..
It goes to next form.. it doesn't show the values...
How can we solve this one..?
How can we do the paging in the DataList..?
T.Prabu
|
|
|
|
|
|
|
Hi Prabs,
Let me Know it in detail what is ur doubt in datagrid paging .
Happy Coding,
with regards
Satips
|
|
|
|
|
Hi Satips!
As i told earlier.,
I got the values in the grid, and that page no s also..
It shows the first page, If i clicks the 2 nd page no .,
it redirects to another page (instead of displaying remaining data...)
If u want to chk my code let me know i vl send u....
And then, How can v achieve the pagiong in data list..?
T.Prabu
|
|
|
|
|
|
Hi Satips!
Thanks for ur response...
I vl go through that link.,
If i hv any doubt i vl let u know.,
Bye.,
T.Prabu
|
|
|
|
|
can anyone plz tell me how to do Sorting for dynamically created column in a datagrid using C#
|
|
|
|
|
|
i didn't get, what i exactly need. I want dynamic sorting
|
|
|
|
|
I am using C# as base language to devlope a asp.net website. The problem is that I want to use SqlDataadapter but I find it to be disabled in the toolbox. I ve tried to genrate a dataadapter by dragging a table from Server explorer to Default.aspx form but instead of SQLDataAdapter it genrates a SqlDatasource and dataview. Can someone please tell me what I need to do to use a Sqldataadapter in asp.net?
|
|
|
|
|
raviroyx wrote: The problem is that I want to use SqlDataadapter but I find it to be disabled in the toolbox
Excellent - Being able to drag that from the toolbox to your page is the first stage in producing very badly designed code.
raviroyx wrote: Can someone please tell me what I need to do to use a Sqldataadapter in asp.net?
SqlDataAdapter da = new SqlDataAdapter();
See Also:
SqlDataAdapter Class[^] (MSDN)
|
|
|
|
|
I said I dragged a table from Server explorer to form not a dataadapter from toolbox.
|
|
|
|
|
Either way my basic message stands. Don't drag and drop data items from the toolbox or server explorer to your form. Learn how the database interaction actually works then create your own DAL (Data Access Layer) to do it properly. Putting data access on a form is very VERY bad design. Just don't do it. Period!
|
|
|
|
|
Are You using vs2005 or vs2003 ?
StonePit
|
|
|
|
|
Hi!
I am getting up to speed working with web development in vs 2005 and I'm missing a feature in the VS environment. When working in design mode with a page, I want to have easy access to create delegates for any event available in my custom server controls, but I can not find anything of the kind. (I also want easy navigation to the code once I've implemented it.) The events for any regular (predefined) web control are available as expected, but not the ones I define in my own controls.
I get the feeling I'm missing something in my code, since I can find no way to get the controls to appear in the Toolbox either. I've created the controls using Add new Item, choosing the Web User Control template.
Does anyone have any ideas as to what I might be doing wrong? Or this this a (undocumented) feature (read: bug) in the new development environment?
Carolina Berglund Consultant, systemdeveloper and architect.
|
|
|
|
|
|
Yeah, this is what I am missing, but the problem is I don't have the events symbol mentioned in point 2...
Carolina Berglund
Consultant, systemdeveloper and architect.
|
|
|
|
|
Are you viewing the web page in Design View or Source View?
|
|
|
|
|
It's in design view I miss this feature
|
|
|
|
|
Do you select the control in the Design view?
|
|
|
|
|
Yes...
I'm not noob on this, and I have already entered all code I need to make this [ie using the events I need] work, I just want to know why the user-friendly way to do it is unavailable for my custom controls. Any regular control in the framework has the events button in the Properties pane, so I'm sure there is nothing wrong with my installation or with the way I use the environment.
There must be something missing in the code, but I can't find any reference to what is needed to get a custom web control to display the events pane in design mode.
|
|
|
|