|
Don't ask people to do your homework here .......
thats pretty simple as you will get n number of articles if you search on google
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
If no one has told you this yet, stop using 'urgent' in your message titles. We don't care if it's urgent.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Hello,
I am having a DropDownList on my WebForm.
I am creating Datagrid at runtime in the page_load and adding Template Column (CheckBox) to it at Runtime as
Public Class DynamicItemTemplate Implements ITemplate
// Then Instantiate In
Public Overridable Overloads Sub InstantiateIn(ByVal container As Control) Implements ITemplate.InstantiateIn
// Code for creating the CheckBox
End Sub
I want to access the selected value in the DropDownList(Not a part of Datagrid) within InstantiateIn...
How can I???
Syed Anas Razvi
|
|
|
|
|
DropDowmList.SelectedItem.value or sime thing like you can acces that drop dowlist in that method
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
But How can I access a control(DropDownList) of one class(i.e. WebForm Class) into another class (i.e. DynamicItemTemplate Class)
S. Anas Razvi
|
|
|
|
|
HI
I was wondering if anyine could give me any advice on improving image loading speed
I have an asp application which speaks to a mysql backend, which holds server locations of images which have been added to the application
when i pull the images into a grid they load very slowly and u can initially watch them physically download onto ur screen.
I was reading about possibly caching these images to help with loading, and another place i seen that u can load the images into another asp page, and link the asp image holder to the page?
Any suggestions would be greatly appreciated, it also occasionally causes a server crash as it runs out of memory
cheers
boyindie
|
|
|
|
|
boyindie wrote: when i pull the images into a grid they load very slowly and u can initially watch them physically download onto ur screen.
I had similar issue and corrected by compressing the image size. Have you tried this ?
|
|
|
|
|
Hi,
I am adding the table cells dynamically and
I want to dynamicaly add dropdown list to those cells.
Thanks & Regards
Mishra
|
|
|
|
|
for (int i = 0; i <= 10; i++)<br />
{<br />
TableRow tr = new TableRow();<br />
tr.ID = i.ToString();<br />
<br />
for (int j = 0; j <= 10; j++)<br />
{ <br />
TableCell tc = new TableCell();<br />
tc.Text = j.ToString()+"<br>";<br />
DropDownList ddl = new DropDownList();<br />
ddl.ID = "ddl" + j.ToString();<br />
tc.Controls.Add(ddl);<br />
tr.Cells.Add(tc);<br />
}<br />
Table1.Rows.Add(tr);<br />
}<br />
I Love SQL
|
|
|
|
|
Hi,
When manually binding an SqlDataSource, sorting and paging does not work on the GridView. Is there some kind of settings or code to make the sorting and paging work?
SqlDataSource1.SelectCommand() = sSQL
GridView1.DataSource = SqlDataSource1
GridView1.DataBind()
Note that when the SqlDataSource1 and the GridView is bind at design, the sort and paging work fine.
Thank you.
|
|
|
|
|
Greetings satishkumarnk,
You will need to implement the following two events:
1 - PageIndexChanging
<code>
protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView.PageIndex = e.NewPageIndex;
GridView.DataBind();
}
</code>
2 - Sorting
<code>
protected void GridView_Sorting(object sender, GridViewSortEventArgs e)
{
string sqlScript = "Select * From MyTable Order By " + e.SortExpression;
if (e.SortDirection == SortDirection.Ascending)
{
sqlScript += " ASC";
}
else
{
sqlScript += " DESC";
}
GridView.DataBind();
}
</code>
And thats it... Happy implementing!
Fernando Mendes
Senior .NET Developer, Architect
|
|
|
|
|
Hi i have a gridView with 4columns(Btncolumn, StartAmount, EndAmount, AccountShare which is bound to a datatable.
I want to store the last 3 columns value in a database in tblSlab taking either from gridView or datatable.....
how to do this....
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
sangramkp wrote: I want to store the last 3 columns value in a database in tblSlab taking either from gridView or datatable.....
for(int i=Datatable.Row.Count-3;i<Datatable.Row.Count;i++)
{
}
|
|
|
|
|
Hi there sangramkp,
From what i understand in your requirement is that you want to take the values from an already populated GridView control and insert the last three columns into a table called tblSlab. You will need to iterate through the GridView's Rows property and extract the cells by index since you know which ones you need, consider the following code:
<code>
foreach (GridViewRow row in GridView.Rows)
{
sqlScript = "Insert Into tblSlab Values(" + row.Cells[1].Text + ", " + row.Cells[2].Text + ", " + row.Cells[3].Text + ", ";
}
</code>
And thats it... Have fun!
-- modified at 6:18 Friday 14th September, 2007
Fernando Mendes
Senior .NET Developer, Architect
|
|
|
|
|
Hello Friends,
I working on a project through which i've to send newsletter to the registered users of my site weekly. And my newsletters are also going to them perfectly but problem is that i've to send an image as a newsletter so solve this problem i just replace the image which is being to be sent as a newsletter. But as i send new image it also affect to my old newsletter as it must do........
Plz suggest me the way so that new newsletter doesn't affect to my old newsletter and the clients must all my newsletter..........................
|
|
|
|
|
Use a different image name. Perhaps you may want to use the date as the name of the image so that it is going to be different and can be handled through code automatically.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi friends
how to set expire immeditely the entire page in web appliaction.
i use session.abonden.it is not working
regards
saravanan
|
|
|
|
|
What is the error / message / output you are getting when running that command ?
|
|
|
|
|
What do you mean by "expiring the page immediately"?
- cancel authentication?
- cancel session?
- disable caching of page?
- stop execution of page request - abort thread?
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
try this
Session.Abandon();
OR
Session.Contents.Clear
Jintal Patel
|
|
|
|
|
saravanan05 wrote: i use session.abonden.it is not working
This doesn't make sense.
1 - How you come to know session is not ended ?
2 - Are you getting any error when trying this ?
|
|
|
|
|
Hello Everyone,
I want to lead a user to the new small window(pop up window) if he/she enters his/her correct username and password
|
|
|
|
|
|
Sorry Friend,
I think u didn't get me as i wanted ............
Actually first of all i've to check whether or not he/she is valid user if he is then a window will be opened...................
Plz don't mind
|
|
|
|
|
use
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
|
|
|
|