|
how to edit the values with in the datagrid.
means...
when we r clicking edit button in grid then that particular row automatically have to change as textboxes or any but it has to editable.
reply me...
thanks.
|
|
|
|
|
|
I created a simple application say "LoginApp" that checks a users credentials using the Web Site Administration Tool. Everything works fine and when I log in, I can view the users username and Role ie: admin, Administrator
I created another application say "App1" that uses LoginApp as it's login. Everything works fine as long as you add similar machine keys, authorization settings in the web.configs of all apps that are using the login ie:
<machineKey
validationKey="6AE8AE0D7BA0654392821F2B5B0F209E32492B6ABD47AABBD4CB4B1ABEDE7D66B9F78A8DC174B352183726D3AB682B5E7BB37BD2010E283ADBDB4024DE87B440"
decryptionKey="C5F9FF5E81B780DEBA8B41C41D4830F27139DB1CD373FDDAABF0648D24D8F3E2"
validation="SHA1" decryption="AES"
/>
<authorization>
<deny users="?" />
</authorization>
<roleManager enabled="true" />
<authentication mode="Forms">
<forms name=".AUTH" loginUrl="/LoginApp/Login.aspx" protection="All" path="/" timeout="30"/>
</authentication>
This approach works, but I can only extract the Username. All the role information is lost. Roles.GetAllRoles, Roles.GetRolesForUser returns empty strings. Any suggestions in getting this fixed?
|
|
|
|
|
hi
i write this JavaScript Code for change Text of my label :
Function lbl_Waint()
{
document.getElementById("lbl_status").setAttribute("Text","Sending ...");
}
and in OnClientClick of my button write this code :
OnClientClick="lbl_Waint();true"
but it doesn't work, how to solve my prblem ?
thanks
|
|
|
|
|
You are confusing the server control with the html elements that it renders. A label will be rendered as a span tag, and a span tag has no Text attribute.
Use the innerHTML property of the element to change it's text.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for reply,
i change my code by your suggestion as follow :
document.getElementById("lbl_status").innerHTML = str;
but does't worked again.plz write full example of this problem,thanks
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
Standard question #2:
What error message do you get?
Full example:
document.getElementById('lbl_status').innerHTML = 'Sending...';
Have you verified that the id of the generated element is correct?
---
single minded; short sighted; long gone;
|
|
|
|
|
I think, lbl_status is server control.
So, Try the following way
document.getElementById('<%= lbl_status.ClientID.ToString() %>').innerHTML = 'Sending...';
Regards
R.Arockiapathinathan
|
|
|
|
|
I am currently designing an .aspx web app. I have a web form with header and detail. im using the unbound datatable to capture the detail data from the user.
i have a Save routine which passes the header and detail datatable to the middle tier. The middle tier passes same through an sql server 2005 stored procedure.
My problem is that, I want to use a transaction to catch any error that may occured either while updating the header or while iterating the detail data.
Any syntax will help.
Also will the transaction be able to rollback the Header data, if there is an error during iterating and updating the detail table since im using 2 stored procedure, 1 for header and 1 for detail?
t.aransiola
|
|
|
|
|
Each of your updates called with a adapter. You have to add all of them to ONE SqlTransaction , so search for SqlTransaction and you will find some examples about how to user it.
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
could any one help me with how i can use a datepicker control in asp.net?
t.aransiola
|
|
|
|
|
Just Drag and drop that Date picker control to your design page of aspx page.
Regards,
Satips.
|
|
|
|
|
I think dt picker control is not availabe in asp.net.
Bcos , I have installed VS2005, and I do not find this control in
my toolbox.
Please let me know, if I am wrong.
Regards,
Arun Kumar.A
|
|
|
|
|
HI t.aransiola
you can use this control
http://www.basicdatepicker.com
thanks
|
|
|
|
|
Thank u. Ive not downloaded the control, but i could see that, it is a trial version. Can i deploy my project with this control without any hitch? or what is the limitation for using this trial version?
thnak u
t.aransiola
|
|
|
|
|
|
I am using ajax autocompleteextender. I have declared the service method in the user control itself instead of declaring it in aspx page. But the extender does not work .How can i do it? I want to declare it in ascx page,as i will be reusing the component. i am developing in vs 2005
my master page script
=====================
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true"/asp:ScriptManager>
my aspx page where i am inheriting masterpage
==============================================
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="frmTestAuto.aspx.cs" Inherits="frmTestAuto" Title="Untitled Page" %>
<%@ Register Src="ctlAutoExtender.ascx" TagName="ctlAutoExtender" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" /asp:ScriptManagerProxy>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>TEST AUTO PAGE</td>
</tr>
<tr>
<td>uc1:ctlAutoExtender ID="CtlAutoExtender1" runat="server" /</td>
</tr>
<tr>
<td>Footer</td>
</tr>
</table>
</asp:Content>
my ascx page
=============
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlAutoExtender.ascx.cs" Inherits="ctlAutoExtender" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>
<asp:TextBox runat="server" ID="myTextBox" Width="300" />
<ajaxToolkit:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="myTextBox" Enabled="true"
ServiceMethod="GetCompletionList" ServicePath="ctlAutoExtender.ascx.cs" MinimumPrefixLength="3"
CompletionInterval="1000" EnableCaching="true"
CompletionSetCount="12"/>
</td>
</tr>
</table>
my ascx.cs page
===============
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Web.Services;
using System.Web.Script.Services;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
public partial class ctlAutoExtender : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
[ScriptMethod]
public static string[] GetCompletionList(string prefixText, int count)
{
string sql = String.Format("select clt_tVLongNm from mclient where clt_tVLongNm like @companyname + '%'");
List<string> companyList = new List<string>();
using (SqlConnection connection = new SqlConnection("server=192.168.2.57;uid=sa;pwd=d28rg6yp;database=fnocash_report"))
using (SqlCommand command = new SqlCommand(sql, connection))
{
connection.Open();
command.Parameters.AddWithValue("@companyname", prefixText);
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
companyList.Add(reader.GetString(0));
}
}
}
return companyList.ToArray();
}
}
Sandeep Kumbhar
|
|
|
|
|
Please provide a solution on urgent basis
Sandeep Kumbhar
|
|
|
|
|
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i have to maintain the state of the checkboxes
i am using vs 2005 and my code behind is c#
Sandeep Kumbhar
|
|
|
|
|
One post is enough.BTW why are you creating another posting for the same subject.
Regards,
Satips.
|
|
|
|
|
please provide a solutions on urgent basis
Sandeep Kumbhar
|
|
|
|
|
hi friends,
i have a problem like when i am redirecting from one page to other page in my site but with "https" instead of "http" then protocol is changed but home page is reloaded instead of opening that page referenced by
Thanks.
Chirag Patel
|
|
|
|
|
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue.
i am using asp.net 2.0
Sandeep Kumbhar
-- modified at 5:09 Saturday 5th May, 2007
|
|
|
|
|
use this in aspx file
"asp:CheckBox id="Chk" runat="server" AutoPostBack="true" checked='<%# status(container.dataitem("Active"),false) %>' OnCheckedChanged="SaveStatus" "
and then in code file
Function status(ByVal act As Integer) As String
If act = 0 Then
Return "False"
Else
Return "True"
End If
End Function
-- modified at 4:48 Saturday 5th May, 2007
|
|
|
|
|
i am using vs 2005 and my code behind is c#
Sandeep Kumbhar
|
|
|
|