|
You can validate a bank sort code and that a bank account has the correct check digit, but thats about as far as you can go. Try Google for further details.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i have gridview in which i have 5 columns.last one column is update
<Columns>
<asp:BoundField DataField="UserfirstName" HeaderText="Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="ProcessName" HeaderText="Process Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="Coname" HeaderText="Company Name" ItemStyle-CssClass="grid-text">
<ItemStyle CssClass="grid-text" />
</asp:BoundField>
<asp:BoundField DataField="EndDate" HeaderText="End Date" />
<asp:CommandField HeaderText="Update" SelectText="Update" ShowSelectButton="True" />
</Columns>
when user will click on ...i want to make 2 colums(Name,EndDate) editable for user.
Can any one help me in tht?
|
|
|
|
|
In Edititemtemplate field use textboxes for (Name , EndDate) . when u click update button only that fields changes.
|
|
|
|
|
Hi,
I am using .net 2.0 & Sqlserver 2005. I have databases for the months, i.e., I have to insert recrods into the db of the current month. For example I can insert and handle records from October db only when the current month is October. But this should happen automatically. Users don't have permissions to change the db. I don't have idea to implement this. Please help me to implement this.
Thanks.
|
|
|
|
|
Hi Kandalu,
All the element in the connection string will be same you only have to replace the database name for each month. So just get the curreent month and update the connection string dynamicaly so that the recrods can be insrerted for the current month.
Thanx
|
|
|
|
|
Hi HemJoshi,
Thanks for your quick reply. I thought like you. But I don't know where to set the connection string either as an application variable or at the page load event? In .net if we change the current date, the changed date only appear when we use the "DateTime.Now()" function. I don't know how to get the correct date whenever the user change the date.
Could you tell me how to implement this?
Thanks.
|
|
|
|
|
Hi kandalu, do not use DateTime.Now()it will fatch the client current date.Create a procedure at database side which will return the current date(using getdate()).This will always return the cureent date of the database server.
Thanks
|
|
|
|
|
Hi HemJoshi,
Thanks. I tried through sqlserver and got it right.
Thanks.
|
|
|
|
|
Hello all,
I have created a dotnet application using Asp.net Ajax but when i deployed the application on server then i got following web.config error.
Can anybody tell me what should i do to solve the error so that my application run properly on server.
<br />
<br />
<br />
Configuration Error<br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.<br />
<br />
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:\web.config line 53)<br />
<br />
Source Error:<br />
<br />
Line 51: <br />
Line 52: <httpmodules><br />
Line 53: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /><br />
Line 54: </httpmodules><br />
Line 55: <br />
<br />
<br />
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
rahul.net11 wrote: Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:\web.config line 53)
Error message is clear, isn't it? Server don't have AJAX server extensions installed.
|
|
|
|
|
Hi Navaneeth,
To solve the error should i have installed Ajax server extension on my server. I have copied all the dll (like Ajax toolkit.dll) on my server. Is it necessary to install Ajax extension?
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
Yes it is necessary to install AJAX extensions.
|
|
|
|
|
Ajax should be installed by the person who is maintaining the server. contact contact ftp provider and ask them to install ajex. then it will work.
|
|
|
|
|
jegastar wrote: Ajax should be installed by the person
You mean AJAX extensions, right? AJAX and AJAX server extensions are different.
|
|
|
|
|
Hi,
How can we communicate with linux server from .net application? I need to upload/download files to linux server using .net desktop/web application preferably using sftp.
-Thanks,
Priya.
|
|
|
|
|
Hi friends,
I am using Asp.Net application. From my codebehind i call the javascript function. so i am using,
Page.ClientScript.RegisterStartupScript(Me.GetType(), "onLoad", "showcontent()", True)
Now i registered script.Now i call the function showcontent in my contentpage.
//window.onLoad=showcontent();
function showcontent()
{
alert("enter");
}
while my contentpage load, this script fire and give alert message.But it doesn't fire.It gives script error. ie
"missing ;before statement.[Break on this error] showcontent()Sys.Application.initialize();\n
This error is happened in firefox. Run in IE nothing happened. The script is not fired in IE. what is the problem? I cant find it.
Please help me if u can.
Hope ur's reply
Thanks
<div class="ForumSig">Every Successful Person Have A Painful Story</div>
|
|
|
|
|
Seems like you are trying to Register your Client Script in a page where AJAX is enabled. You cannot Call ClientScript.Register.... and Response.Write when PartialRendering is True (i.e in the AJAX page).
|
|
|
|
|
Hi dude
I got it. Register the script is problem. Now it's working.
Thanks
Every Successful Person Have A Painful Story
|
|
|
|
|
Hi All,
Im triyng to use the System.Timers.Timer control in my page. In de button click eventhandler i have this code:
System.Timers.Timer myTimer = new System.Timers.Timer();
myTimer.Interval = 1000;
myTimer.Elapsed += new System.Timers.ElapsedEventHandler(myTimer_Elapsed);
myTimer.Enabled = true;
protected void myTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
//do test
Label1.Text = "a";
}
The problem is that nothing happens ofter clicking the button.
What is wrong here?
Thanks.
|
|
|
|
|
NewToAspDotNet wrote: What is wrong here?
You don't understand how web applications work. There is no state. They are stateless. The page exists only for the briefest moment while the request is handled. After that it is unloaded from memory. Your timer now has nothing to time.
|
|
|
|
|
|
If you wanna use timers, take a look at the AjaxControlToolKit
The have a timercontrol that behaves just like the timer in windows apps
Alexei Rodriguez
|
|
|
|
|
i have a page in which i have property name
public partial class mypage : System.Web.UI.Page
{
private Class1 mclas;
public Class1 Mclas
{
get { return mclas; }
set { mclas = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Mclas = new Class1();
}
}
}
In a user control i want to access this property Mclas
mypage mpage= this.Page;// this doesnt work the it gives compile error the type or namespace mypage couldnot be found
mpage.Mclas
|
|
|
|
|
Try this:
Object X = this.page
Object Variable = X.PropertyName
This will only work if the page containing this control has a property with the name of PropertyName
Look at this VB example:
Inside Control:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim P As Object = Me.Page
Response.Write(P.X())
End Sub
Inside Page
Public ReadOnly Property X()
Get
Return "Something"
End Get
End Property
Alexei Rodriguez
|
|
|
|
|
Create an interface that contains only the properties that you wish to access. Then you have the Page class implement that interface.
Now you can cast the controls' this.Page to the interface, and access you property through it.
Andreas Johansson
IT Professional at Office IT Partner i Norrbotten Sweden
What we don't know. We learn. What you don't know. We teach
|
|
|
|