|
If I put trace=true for the page I can see that the Response Cookie collection contains my cookie (with the new key/value) after I have pressed the button
but
The Request Cookie collection does not contain the cookie with these Key/value.
to get the Response Cookie collection to be transferred to the Request Cookie collection I need to do another reload of the page.
I need to access the cookie directly when the page is loaded after the button has been pressed.
Is this possible?
Can I in some way have a button that has it's event handler code executed before posting?
|
|
|
|
|
The page load event happens before the button event handler. So the option you have is to again submit the page in the button event handler or to call the method that displays the articles in the button event handler for subsequent submits and for the first time when the page is loaded call that in the page load method.
|
|
|
|
|
Thank you! It works!
I added a method for the update of my GridView and calls it from GridView_Load and the end of the button event handler.
Thanks again!
|
|
|
|
|
hi all
i need to test my web site of performance and loading time of some pages with figures, is there any recommended sites for that, pls help me to find
thanks
|
|
|
|
|
Get the FireBug add-on for Firefox. Using the Net feature you can see the load time for every request.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
thx for ur help, i need to find out what are the drawbacks of my site if there and so on also.
|
|
|
|
|
indSoftware wrote: i need to find out what are the drawbacks of my site if there and so on also.
Follow what he said. Firebug can show the each request load time, JS debugging and many more.
|
|
|
|
|
indSoftware wrote: need to test my web site of performance and loading time of some pages with figures, is there any recommended sites for that, pls help me to find
You have already got very good suggestion . I just want to add one more point on that. there is a tool from IBM , RPT (Rational Performance Tester ) . This is one of the best tool that I have used for Performance measurement for an web application. It will give you the details of each and every individual control and images for single and multiple user along with network load.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Abhijit Jana wrote: RPT (Rational Performance Tester )
Thanks for suggesting the tool. I will also try it.
|
|
|
|
|
Amandeep Singh Bhullar wrote: Thanks for suggesting the tool. I will also try it.
That's great . But this is not free Tool . AFAIK , 30 day's Trial and you can test for 5 user Load in this Trial Edition . Please Confirm.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
I will search for Torrent
|
|
|
|
|
Thx for suggestion for all, i used firebug addone thats gave lots of information
thanx again.
|
|
|
|
|
i m writing an text to an image and creating it as an image, i want to give shading to that text while writing that. can any one help me please?
|
|
|
|
|
You can try using "Imprint MT Shadow" font.
|
|
|
|
|
Thanks Sadagoppan,
But the thing is i have to use the catull font, in that font i have to give the shading while writing the same into image?
Reply
|
|
|
|
|
I want to get an image, for example the light shading given in the google.co.in site, for the google image...
like that i have to give shading as such in the google name.
|
|
|
|
|
I was on a session by Stephen Walther where he introdused client side ajax by a web service,
the example was pritty simple:
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<td>
<asp:Button
id="btnShowDetails"
runat="server"
Text="test"
/>
</td>
</tr> </thead>
<tbody id="myTbody">
</tbody>
</table>
</div>
<script type="text/javascript">
function showText() {
AjaxWebService.MyWebService.Product.getText(showTextComplete);
}
function showTextComplete(result) {
$("myTbody").html(result);
}
The web service return a simple string like "<table><tr><td>This is a test</td></tr></table>".
The problem is in the function showTextComplete, I always get "Microsoft JScript runtime error: Object expected",
it's the $("myTbody") that's wrong. When Walther showed it, it worked fine.
So what em I doing wrong?
Thanks
Thomas
|
|
|
|
|
thomasa wrote: function showTextComplete(result) {
$("myTbody").html(result);
}
try
var myTbody = $get("myTbody");
myTbody.html(result);
or
myTbody.html = result;
I didn't get any requirements for the signature
|
|
|
|
|
var myTbody = $get("myTbody");
myTbody.html(result);
gives me the objekt, thus the objekt does't support the method .html(..)
(I can acully drop the "var myTbody = $get("myTbody");", since it findes it without it.)
I thought maby I could use
myTbody.innerHTML = result;
But this gives me a "htmlfile: Unknown runtime error" exeption
|
|
|
|
|
Are you using VS2008? Can you set a break point to see the contents of result?
I didn't get any requirements for the signature
|
|
|
|
|
Yes, and it is OK with reslut = ""<table><tr><td>This is a test</td></tr></table>"
|
|
|
|
|
Well then create a string variable and set it to the result.
If you have your html object such as a div tag. And a string that is your innerHTML or innerText there is no reason why that shouldn't work.
I didn't get any requirements for the signature
|
|
|
|
|
I have a gridview bound to an ObjectDataSource (DataTable).
DataKeyNames = "LocationId"
How can I find the row in my gridview with that LocationId?
I would like to have the row displayed (could be on a different page in the gridview) and selected after the postback.
Is there an easy way to do this?
I didn't get any requirements for the signature
|
|
|
|
|
Dont know is this the easy way or not, but its kind of old C Language way...
int SearchRowIndex = -1;
foreach (GridViewRow gvRow in GridView1.Rows)
if (gvRow.Cells[0].Text == LocationID)
{
SearchRowIndex = gvRow.RowIndex;
break;
}
if(SearchRowIndex >=0)
|
|
|
|
|
Thanks for the help. But I simply removed the paging and put the grid inside a div with a side scroller. Then I set rowstate to selected on rowdatabound if the row was the row I was looking for.
Thanks for the reply though. After thinking about it, I didn't like the paging anyway. It just makes it more difficult to find records.
I didn't get any requirements for the signature
|
|
|
|