|
1) why to create proxy for WCF service. what is diffrence between
adding by rightclick->Add Service reference
& creating proxy.
2) why to create XSD files while making WCF service. And why to generate class frm that.
modified on Thursday, February 12, 2009 5:53 AM
|
|
|
|
|
Hello,
i add the following tags in web.config file in my project to set the session to 200 minutes
<sessionstate mode="InProc" cookieless="false" timeout="200" />
but the session is lost in some minutes,i 'm using system file project so i don't need to set session in IIS is the web.config enough to set session duration.
Thank you for answer
modified on Thursday, February 12, 2009 4:46 AM
|
|
|
|
|
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
|
|
|
|