|
I don't get exactly what you are saying?
Regards - J O H N -
|
|
|
|
|
Please add this item as follow :
dropdownlist1.items.add("abcd");
then write this code of selectedindexchanged event as follow:
int index=dropdownlist1.selectedindex();
// to confirm the desired index number pls write this code
Response.write(index.tostring());
if(index==0)
{
Response.Write("Asdf");
}
Ritesh Mogha
|
|
|
|
|
|
set AutoPostBack to true in the DropDownList
|
|
|
|
|
Hi...
I have created a text in datagride. the values in text which are in datagride has to be redirecte to new page.
krishna
-- modified at 5:38 Tuesday 30th October, 2007
|
|
|
|
|
use query string to solve ur problem.
Devjit Das
|
|
|
|
|
Thanx for ur response...
But how to use query string, i have tryed but it was not working can u pls send me some code to check...
Thanx in advance...
I need ur help
|
|
|
|
|
just tell me from where u want to click and redirect ur page from grid or button. if grid use grid_rowcommand and get ur text and redirect.
like this
Response.Redirect("abc.aspx?ID=" + ((TextBox)row
.FindControl("TextBox1")).Text);
will work.
Devjit Das.
|
|
|
|
|
I cant able to copy and past my code.....can u give ur email id plssss...
I need ur help
|
|
|
|
|
Response.Redirect("abc.aspx?ID=" + ((TextBox)row
.FindControl("TextBox1")).Text);
the abve code which u have given is not working...
the receiving(the page has to be redirect to this page) page i have given the command like..
lbl1.Text= Request.QueryString["txt1"];
krishna
|
|
|
|
|
????????????? wrote: I have created a text in datagride. the values in text which are in datagride has to be redirecte to new page.
text in Datagrid to redirect to a page? what do you mean by this?
Regards - J O H N -
|
|
|
|
|
text in Datagride means.... i have created a textbox in datagride, so that i can redirect that text message into the new page.....from there i will use conditions to get the output.
I need ur help
|
|
|
|
|
Are you using Response.Redirect to Redirect to new page?
Regards - J O H N -
|
|
|
|
|
yes iam using the same thing, its redirecting but values are not redirecting..
I need ur help
|
|
|
|
|
Are you passing the values as Query String to the next page?
Regards - J O H N -
|
|
|
|
|
You can use Request.QueryString..It will work.....
Rajendran
|
|
|
|
|
I have tryed but its not working, its working in normal condition, but i have created a table inside a datagride, so have redirect the text value to the new page..
I need ur help
|
|
|
|
|
hi
in DataList control there is a property named columnrepeat
is the something like this in gridview?
if I need this property and also i need to use datagridview(for its extra properties) what should i do?
is there another control with this specification?
plz help i need alot.
|
|
|
|
|
Hi!
I made a post yesterday, but had no replies to that, so would like to try again. My problem is that I want a gridview with two identical cells. If the first cell contains text that is wrapped in multiple rows and the height of the cell changes, then the second cell containing a textbox should follow this behaviour. My problem is that I can't change to height of the textbox, I managed to set the width of the textbox to be the same as the cell's width but I can't do the same thing for the height. I've tried the following:
TextBox tb = row.Cells [1].FindControl ("destinationTextBox") as TextBox;
tb.Width = new Unit (100, UnitType.Percentage);
tb.Height = new Unit (100, UnitType.Percentage);
But this works just for the width. I've tried something else like tb.Height = row.Cells [0].Height, but that didn't work either. I don't know what control is inside the first cell, maybe if I could get a reference to that I could use that to set my textboxes' height to be the same as those.
Any suggestion is greatly appreciated! Thanks in advance!
|
|
|
|
|
hi
My requirement is below.
Let's say i am getting 1 lakh records from DB.(using xmlhttp).
now as soon as i get 100 records i need to display them, then again as soon as i get next set of records i should be displaying it.
Means to say that the user should not wait for long time to view all the records, he should be getting records as soon as it comes.
THanks in advance
Thanx in Advance
|
|
|
|
|
In principle, what you are trying to do is pretty straightforward.
Fetch the first n records. Display them.
Fetch the next n records. Display them.
And so on...
Are you having difficulty with the implementation of this? Use the TOP predicate in your database queries to fetch blocks of n records.
Paul Marfleet
|
|
|
|
|
thanks for the quick reply Paul.
I guess what u r saying is get 100 records and display them and then again get another set 100 records and append them to the previous.
I guess this will do wht i want but this will make me call db 100 times if i have 1 lakh records.
What i want is to request 1 lakhs record in one call to db and as soon as i get any no of records i should be displying it.
Thanx in Advance
|
|
|
|
|
AFAIK, this isn't possible. Either you fetch all of the data in one synchronous request, or you make multiple requests for blocks of n records.
If the data didn't change often, you could consider implementing the Singleton pattern and cache it in a DataSet or something similar on the server. You could then fetch blocks of this data without having to make subsequent calls to the database. Obviously there would be memory implications in storing a large dataset in memory.
BTW, by 'lakh' I assume you mean 100,000? I don't think this word is in common use outside of the Indian subcontinent. I had to look it up to see what it meant!
Paul Marfleet
|
|
|
|
|
yes Paul it means 100,000
Well i had seen this working in my current asp application and i m trying to replicate the same in .net but struggling with it.
i can tell u how it is working in asp application.
below is the code of how it is implemented in asp
response.buffer = false '
Sub DisplayRecords()
sql = "spPatientSelectList "
set oRs = oConn.execute(sql)
if (oRs.eof) then
response.write "No record found" & vbCrLf
end if
do while not oRs.eof
response.write ""
response.write "" & oRs("vchMedRecNum") & ""
response.write "" & oRs("vchPatientFirstName") & ""
response.write "" & oRs("vchPatientLastName") & ""
response.write "" & oRs("dtPatientDateOfBirth") & ""
response.write "" & oRs("vchPatientContactNumber") & ""
response.write "" & oRs("vchPatientSSN") & ""
response.write "" & vbCrLf
oRs.moveNext
loop
oRs.close
U see the key in the above code is
response.buffer=false.
but implementing the same in dotnet doesn't seems to help.
Thanx in Advance
|
|
|
|
|
You can still use Response.Buffer = false; to disable buffering of output in ASP.NET.
In your example, the database query is executed synchronously. The ASP code has to wait for it to fully complete. Disabling buffering just means that a partial response can be sent to the client instead of being accumulated on the server and flushed out in 1 go.
Paul Marfleet
|
|
|
|