|
If you are changing the code afte4r login then the Session is Expired
Best Regards,
Chetan Patel
|
|
|
|
|
No i'm not changing the session duration with code.
|
|
|
|
|
There a several places that timeouts can come from, web.config, the page, IIS and the users browser... IIS is usually the culprit.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
I am new to Repeater manipulation.I have to delete a particular row in the Repeater display. The fields in the repeater are id,name,department,salary and for each row i created a Delete button.
If I click the delete button the corresponding row will be deleted.
Can anyone tell how it is possible?
|
|
|
|
|
If you are displaying tabular data, GridView will be better than repeater. It allows you to handle the Item commands and do necessary action.
|
|
|
|
|
You can set the commandargument property of the delete button as the id like this.
<asp:button id="btnDelete" runat="server" text="DELETE" commandargument="<%#bind(" username")"="" xmlns:asp="#unknown"> />
This will refer to corresponding row id for deletion.Then in rowcommand event get the id by writing id=e.commandargument;
after getting the id you can delete the row by using sql query.after that just rebind the repeater.That's it.
Thanks,
Satish
|
|
|
|
|
There is no Row command event for Repeater.
|
|
|
|
|
sorry just write in the itemcommand event
|
|
|
|
|
The control is not enter into the Item command event. what to do?
|
|
|
|
|
Do you mean to say onclick of delete button it is not going into itemcommand event or what???
|
|
|
|
|
Yes. If the button is clicked i write a simple response.write inside the item command event. But it s not enter into the event? Is there anything to declare?
|
|
|
|
|
I think you just create that event again by deleting the existing one.
And in the repeater declare the button as below.
<asp:repeater id="rptrreview" runat="server" datasourceid="SqlDataSource1" onitemcommand="rptrreview_ItemCommand" xmlns:asp="#unknown">
<itemtemplate>
<asp:button id="btnDelete" runat="server" text="DELETE" commandargument="<%#bind(" username")"=""> />
then in the itemcommand event get the id of the row as below.
Button delete = (Button)rptrreview.FindControl("btnDelete");
string data = e.CommandArgument.ToString ();
If any problem let me know
|
|
|
|
|
Still its not working. I use sql data adapter instead of Sqldatasource. I got the datas from sql and display it. Error in xmlns. So i delete it. Is there is any problem?
|
|
|
|
|
Can you send me your code once.
|
|
|
|
|
Hi, Now its working. Thank u very much for your great help ! !
|
|
|
|
|
Hi all,
I am getting one error in my application which occur some time and some time that page work fine:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
N!dh!
|
|
|
|
|
Do you know how to configure Netowk load balancing ? I have some proble m I posted it here
http://forums.asp.net/t/1380017.aspx
|
|
|
|
|
No,i have no knowledge about this
N!dh!
|
|
|
|
|
Dim tw As New System.IO.StringWriter
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Me.EnableViewState = False
divprojects.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
I'm using following codding for downloading dividion data into excel file that proper work into IE. but not in mozila, there saved as aspx page....
So what to do changes in following codding, please send me reply on my email id : pranav.kalayni@gmail.com
Name : Pranav Kalayni from Mumbai
|
|
|
|
|
I want to create e commerce web site using asp.net . for this I need
design and architecture documentation for refrence. It will really
helpful if any body have it. Thanks
sachin
|
|
|
|
|
i have some photos in my web site that i have uploded from ftp
when i want to delete these photos or overwrite thses photos then i got error access denied but photos that i have uploded from my site i wll be able to delete and overwrite why is it so
|
|
|
|
|
How to execute in ffmpeg in online server
|
|
|
|
|
Hi,
I need regular expression to validate input string which can not accept [()==<>'~!#$^%*=]+" and regular expression for float which can check if user enters more than four digit after decimal like 1111.12345 .
3333.222 – Valid
3333.1234566 – Invalid
Regards
Rajesh
rajesh
|
|
|
|
|
hello there,
i'm developing an editable grid user control in asp.net + vb.net, which i can use for my other projects as a control.
i' using a gridview control with Edit,update,delete,cancel image buttons. i wrote a template column class to generate gridview colums dynamically. the idea is to give flexibility to the programmers to add template columns dynamically (i.e. Textbox column, DDL Column, Checkbox Column etc.) according to the programming need.in my template column class i can set multiple FieldValidators for the column like RequiredFieldValidator, Range Validator etc.)
the problem that i'm facing is when i click on the row update button of gridview it validates the textbox in the column but when i click any control outside the grid or another row in the gridview by mouse then the validation don't fire.i want that the user should enter a proper value in the control or just cancel editing and while editing a row he should not be able to focus on any other control on the webpage.
can anybody help me in this regard.it's a bit urgent.
please reply considering i'm beginner to asp.net and vb.net.
Thanks in advance.
|
|
|
|
|
I have code asp.net:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
#translate
{
height: 290px;
width: 756px;
}
</style>
<script type="text/javascript">
function hienthi1()
{
var x=document.getElementById("translate").contentDocument.getElementById("text").innerHTML=document.getElementById("txt").value;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<iframe id="translate" runat="server" src="http://translate.google.com.vn">Google dịch anh việt</iframe>
<br />
<input type="text" id="txt" value="ABC" runat="server" /><br />
<span id="span" runat="server"></span><br />
<asp:textbox id="TextBox1" runat="server" height="76px" width="754px" xmlns:asp="#unknown"></asp:textbox>
<br />
<input type="button" onclick="hienthi1();" value="Xem" />
</form>
</body>
</html>
But I amnot sussessful!
Help me!
|
|
|
|