|
hi,
i have a txtbox in grid where user gives the input.i have to store the text into database. but iam unable to get the text. this is code iam using:
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox)
Dim Timing As String = TxtBox.Text
Response.Write(timing)
please help
Thanks and Regards,
David Boon.
|
|
|
|
|
Are you getting an error? Where is this code running (in datagrid command event or after a button click?)
|
|
|
|
|
hi,
the code is written in button click event. iam not getting any error. the value is null and no action takes place
|
|
|
|
|
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).Cells(indexOfCellWIthTextBox).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox)
I think that's the syntax - you could give that a try.
|
|
|
|
|
i have tried still not working
|
|
|
|
|
Hi,
I have implemented login security into the asp.net 2.0 web application.
Now I see that there is a file called ASPNETDB.MDF in the App_Data folder of the project. I do know that during the configuration I assigned a new database in sql server to keep these security settings, i.e users, etc...
My question is that is it ok to delete the .mdf file which is in the App_Data folder as it does not seem to be used?
And is it best to have one database in the sql server which holds the data as well as the security settings or is it best to have a separate database, i.e. one for data and one for the security?
Thanks
|
|
|
|
|
By default, the ASP.NET 2.0 uses the Local SQL Server Express database file in the App_Data folder as the data store for the services like Membership, Roles, Personlization ....If this file is not available, the ASP.NET 2.0 will automatically add it for you. So if you don't intend to use this file, you can delete it, and use the web.config file to configure a new database in your SQL server (containing both app data and securiry settings) for your application.
|
|
|
|
|
Hello every body
Could you please tell me how to open a new window from a page instead of redirect it with Response.Redirect or Server.Transfer?
Thanks
|
|
|
|
|
u can use the javascript window.open
coolsweety
|
|
|
|
|
i know the question is stupid but my client required popupdata on mouse over
so pls explain
1)can i retrive database in mouse over (scripting)
if yes give the demo
2) is there any metod to incoprate client side scripting and databseconnection
|
|
|
|
|
Make a new webpage in which you will display the data from database. Then show that window with javascript when you need it.
You can not access a databse from JavaScript.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
But you could use AJAX to callback and display the data. If it's just a tooltip you require, most server controls will provide that functionality and the data could be bound when the rest of the control is bound...
|
|
|
|
|
hi all,
im developing an application which has a textbox for mail id .i have a regular expression validator for that to check the mail id.my requirement is to check multiple mail id's if i enter into the textbox.i need java script for that.because with reg exp validator we can check only one mail id . please help me.
with regards,
susa
|
|
|
|
|
Can you not just alter your regex to perform the check you are currently using for your e-mail string and then whatever separator character you are using being present many times in the string?
|
|
|
|
|
Hi,
Below is the javascript code for E-Mail validation,
//Check for Proper Email Id
//For this function Email id has to be passed
function echeck(str)<br />
{<br />
var at="@"<br />
var dot="."<br />
var lat=str.indexOf(at)<br />
var lstr=str.length<br />
var ldot=str.indexOf(dot)<br />
if (str.indexOf(at)==-1)<br />
{<br />
return false<br />
}<br />
<br />
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)<br />
{<br />
return false<br />
}<br />
<br />
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)<br />
{<br />
alert("Please enter a valid E-mail id.")<br />
return false<br />
}<br />
<br />
if (str.indexOf(at,(lat+1))!=-1)<br />
{<br />
alert("Please enter a valid E-mail id.")<br />
return false<br />
}<br />
<br />
if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)<br />
{<br />
alert("Please enter a valid E-mail id.")<br />
return false<br />
}<br />
<br />
if (str.indexOf(dot,(lat+2))==-1)<br />
{<br />
alert("Please enter a valid E-mail id.")<br />
return false<br />
}<br />
<br />
if (str.indexOf(" ")!=-1)<br />
{<br />
alert("Please enter a valid E-mail id.")<br />
return false<br />
}<br />
<br />
return true<br />
}
Note: For multiple email ids u can split the email ids and send one by one to check.
Hope this will hepl u...
|
|
|
|
|
thank u all ,it is helping me a lot.it;s working
with regards,
susa
|
|
|
|
|
Dotnet Framework 1.1 is installed on my computer running on Windows XP.Visual Studio >net 2003 is installed.When I try to create an
ASP.NET project I get following error.
I have vs 2005 is also on my system.
The web server reported the following error when attempting to create or
open the web project located at the following
'URL://Localhost/WebApplication1' HTTP 1.1/500 Server error
I tried reinstalling the .NET but it did not help me.
Any help in this regard is highly appreciated.
Thanks.
HTTP 1.1/500 Server error when trying to create an ASP.NET project
|
|
|
|
|
I am corrently working on ASP.net 2.0 and i want to apply Themes and skins to Infragistics controls. i can apply the skins and themes to UltraWebList control at the controll level. can i apply the same at the item level of the control. i mean can i apply different themes for different list item in the list control.
Ramesh.Kanjinghat
|
|
|
|
|
Hello,
I have number of .jpg images as a input.
My user requirement is to display these images one after the other in browser so that its look like playing a video.
One simple solution is to link image one after the other and display it with specific time.
Please suggest me to implement the above solution in asp.net with C#
Regards
Praveen
|
|
|
|
|
I'm not 100% sure but I think you need client code for that. Something like Javascript.
The reason I say this is the following:
- You need at least 24 images per second to make a movie.
- You can't load 24 images a second from the server. (or at least I don't think it's possible)
- If the images are local you could, but it will not be reachable via server-side code.
If you need something in the line of a slideshow you could.
- Look into caching: Only refresh the image
- and maybe the timer function (just an idea, don't know if it works in ASP.NET)
hope this helps
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
Hi,
Thanks for ur reply.Can you please let me know what is timer function?If u have any sample code for timer function,please send back to me.
|
|
|
|
|
Timer Class[^]
Search MSDN first...
Coulda, woulda, shoulda doesn't matter if you don't.
<marquee>
|
|
|
|
|
Hi Friends,
I have a problem in my web application.
I developed two web applications in two diffrent Projects.
Now I want both of them to be run interconnectedly under one solution and to share each other's session variables.
Can any one tell me how to do that?
Thank you all in advance.
Chetan Ranpariya.
|
|
|
|
|
Hello all,
I have a problem with displaying the "CreateUserUrl" property of the Login control on a Content Panel. I do not know what the reason is except for that particular property, everything else works like FailureActionText, etc. Also I have tried to add a hyperlink externally, but that doesnt work too.
Please do suggest some solution if anyone knows. I am pasting a part of the code here.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server" method="post">
<asp:Login ID="Epay_Login" runat="server" CreateUserText="Create a new Account" CreateUserUrl="~/EPay/CreateUser.aspx" RememberMeSet="false" DestinationPageUrl="~/EPay/RequestSpace.aspx" FailureText="Login Failed. Check Credentials" FailureAction="Refresh" />
</form>
</asp:Content>
Sowmya Mulukutla,
|
|
|
|
|
Soumya Mulukutla wrote: I have a problem with displaying the "CreateUserUrl" property of the Login control on a Content Panel.
You don't see the "CreateUserUrl" link rendered at the client side? Do you see the text "Create a new Account" at the client side? Or what else do you mean by it's not working?
|
|
|
|