|
Hi Faisal,
Here i have listed some steps according to your requirement. Hope this will be helpful.
1. Modify your template column in the datagrid as below in the design/source view.
<asp:TemplateColumn HeaderText="Status">
<ItemTemplate>
<asp:CheckBox ID="chkStatus" OnCheckedChanged="OnStatusChangedEvent" AutoPostBack="true" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
2.In the Vb code file, Create a Procedure which be called when the checkbox state is changed.
Private Sub OnStatusChangedEvent(ByVal sender As Object, ByVal e As System.EventArgs)
Dim cboxStatus As CheckBox
Dim dGrid As DataGridItem
cboxStatus= CType(sender, CheckBox) 'This will inherit the datagrid template checkbox propeties which you have clicked
dGrid = CType(cboxStatus.NamingContainer, DataGridItem)
'If you need to find the text value in any datagrid column for ex. ID then
Dim id as integer=dGrid.Cells(0).Text 'Here id is the first column in the datagrid for your example
If cboxStatus.Checked = True Then
'Do the sql insert/update here by passing the id.
End If
End Sub
This will be useful only when you want to update a row by changing the Checbox state in the template. Otherwise if you need to update multiple row you have to loop through all rows and write a procedure in a button click event(When you use button click event set autopostback="false" in the checkbox).
Regards,
Raghu
-- modified at 4:54 Friday 27th April, 2007<code></code><code></code><code></code>
|
|
|
|
|
Hello All,
Can i deploy a web application in ASP.NET for localhost.
And also i want to keep my Sql Server2000 database in my deployed project
so that there should be no need to restore the database in the target machine
.......................
.......................
|
|
|
|
|
when i am sending mail if the From email id is like anu@netsoft.net then error is showing i it is .com means no problem mail is sending . the error is
Server Error in '/' Application.
--------------------------------------------------------------------------------
The server rejected the sender address. The server response was: 501 Your domain does not seem to be valid. Could not find MX record for your domain.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The server rejected the sender address. The server response was: 501 Your domain does not seem to be valid. Could not find MX record for your domain.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x8004020e): The server rejected the sender address. The server response was: 501 Your domain does not seem to be valid. Could not find MX record for your domain.
]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +2500080
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +72
[HttpException (0x80004005): The server rejected the sender address. The server response was: 501 Your domain does not seem to be valid. Could not find MX record for your domain.
]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +119
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +2684
System.Web.Mail.SmtpMail.Send(MailMessage message) +131
NetsoftInfotech.CandidatPostResume.Submit_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\netsoftinfotech\candidatpostresume.aspx.cs:99
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
|
|
|
|
|
hi friends
i design the form in feedback i create rating like normal,good,excellent,poor.if i click normal it display corresponding (like star)picture in normal,.if i click good it display corresponding (like lovesimple )picture in good
can u help me??
regards
saravanan
|
|
|
|
|
Then what is the problem?
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi
the picture does not display.
|
|
|
|
|
Check whether the picture is placed at the right location and your image control is trying to find the image at right place.
Best Regards,
Apurva Kaushal
|
|
|
|
|
do u have any link related this
|
|
|
|
|
Hi to all,
I am using ASP.NET 1.1,
1. I am sending Textbox values from one file to another Pages, while sending the Textbox values should be encript and while receiving and displaying to the Browser it should be Decript.
2. How to Give security of data while sending UI to BL AND BL to DAL.
If you have some code or Example Please Post it.
Mohan Balal
|
|
|
|
|
|
Thanks for your Reply. If you have some code/example Please Post it
Mohan balal
|
|
|
|
|
Hi
I am using atlas webpart in my web page. It works fine. But when I am adding PageHandlerFactory drag drop do not work. In web.config file I I have writte
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
What are the possible ways I can tray out?
|
|
|
|
|
One Post is enough. BTW why are you creating differnt post related to the same Topic.
Regards,
Satips.
|
|
|
|
|
On my system it give error while posting.
|
|
|
|
|
Hi
I am using atlas webpart in my web page. It works fine. But when I am adding PageHandlerFactory drag drop do not work. In web.config file I I have writte
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax">
What are the possible ways I can tray out?
|
|
|
|
|
One Post is enough. BTW why are you creating differnt post related to the same Topic.
Regards,
Satips.
|
|
|
|
|
Hi
I am using atlas webpart in my web page. It works fine. But when I am adding PageHandlerFactory drag drop do not work. In web.config file I I have writte
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax">
What are the possible ways I can tray out?
|
|
|
|
|
One Post is enough. BTW why are you creating differnt post related to the same Topic.
Regards,
Satips.
|
|
|
|
|
Hi,
Im having a problem with my application,when im trying to execute a exe file from my ASP.NET application im getting the following error.im executing the file using the PROCESS class in .NET.
This Exe is executing correctly from the command line and in a prototype application.
HERE IS THE DETAILED ERROR MESSAGE.
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'TF, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.
File name: 'TF, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' --->
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Any Helps greatly appreciated
Sudharson.G
-- modified at 8:37 Thursday 26th April, 2007
|
|
|
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1" <>></asp:RequiredFieldValidator>
hi the above code validate 1 textbox izzit possible to let it validate multiple textbox with 1 validator?
|
|
|
|
|
Dont think it is possible.
U need to use different validation controls for different text boxes.
|
|
|
|
|
I think you need to loop thru each textbox and assign the validator to it.
Or you could create validators for each textbox.
|
|
|
|
|
marky777 wrote: I think you need to loop thru each textbox and assign the validator to it.
Surely this would simply update the "ControlToValidate" property multiple times and still end up verifying only a single textbox?
|
|
|
|
|
any one know how to edit the gridview template to have data type validation?
currently if the data type is incorrect the page is routed to an error page and shown the error how can i show the error in an lblerror.text?
also izzit possible to make the input textbox into a listbox which is bind to the database?
|
|
|
|
|
i just tryed changing it into a template and one of the field became this
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Comments") %<'></asp:TextBox>
so instead of a textbox i changed it into a dropdownlist however how do i bind the Text='<%# Bind("Comments") %<'
in the dropdownlist? anyone know pls tell
|
|
|
|