|
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])
|
|
|
|
|
Hi,
I have one forgot password page,
where i use to check the user identity details and redirecting him to the next page if he is a valid user.
Now i want to display his Secret Question which he provided while registering in the next page.
How to display the Question according to the user provided identity details in the next page.
Can any body help me out......
|
|
|
|
|
bhattiprolu wrote: How to display the Question according to the user provided identity details in the next page.
To get the details provided in the previous page in another page, you can use any of these options
1 - Store value in a session state
2 - Pass as querystring
Check this[^] to get started. Then query you DB with the details you have and mail the password to the address provided at the time of registration
|
|
|
|
|
Hi.
I want to create an online exam (4-answers).
The exam must be in this form:
a question in each page, and user can go back and forward in questions and the answer that he/she has choosed must maintain.
for example when user choose an answer (as correct) and go next question, then go back the choosed answer must be selected.
And when he/she wants terminate the exam, now with go forward and back in questions he/she must can see the correct answer selected in green and the answerd the selected answer in red (if incorrect)
And in final I don't want to save the result of Exam in DB(I don't need It), only user see the result and the end.
Can give me general help how can I implement this?
I use FormView, But It don't save the answer that user selects (i.e when user choose an answer and go next question, then go back the choosed answer is not selected)
Best wishes
|
|
|
|