|
Hai,
Thanks for giving.
on fly...
I mean i want to generate a textbox at runtime.
for that i want to write the code in button click.
|
|
|
|
|
TextBox obj=new TextBox();
obj.Id="GiveMeaningFullId";
This.Page.Controls.Add(obj);
// Check for spelling errors if any
If you want to add TextBox at specific place
Add ASP PlaceHolder Control there (On page)
Now instead of adding to page
add by
PlaceHolder1.Controls.add(obj);
// Write whole code in button click event and please first search on google then post
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
ho friend Good Morning
how to input text on hitting the enter key in asp.net
please help
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
|
thanku my dear
it working but its work on double enter key press i wanna on single enter key pressss
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I think some problem in ur page.........Its working fine with me
|
|
|
|
|
no there no any problem in my page it working but on double Hitting
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
can u send me what u have written
|
|
|
|
|
<asp:scriptmanager id="ScriptManager1" runat="server">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:timer id="Timer1" runat="server">
<asp:textbox id="txtChatWindow" runat="server" height="302px" textmode="MultiLine"
="" width="305px" readonly="True">
<asp:textbox id="txtwrite" name="txtwrite" runat="server" width="228px" style="position: static" ontextchanged="txtwrite_TextChanged">
<asp:button id="btnsend" runat="server" text="send" width="65px" style="position: static">
<asp:button id="Button1" runat="server" style="left: -241px; position: relative;
top: 27px" text="back to home page">
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
Hi friend
After Hitting the key I want cursor focus back on text box how it possible can u help me. I am also using ajax panel all control in ajax panael.
My code for the Focus back on textbox
txtwrite.Focus()
but is work when textbox out of panel
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
can i reduce the access time by using the java script in the case of database connectivity?
|
|
|
|
|
Can it be possible as the database is not in local machine it is at the server side And if not access the database from client side is security breach
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Can you tell me the business scenario ... what are you storing in the database ?
And how are you retriving the the data from it ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
all i have to do is to check for the user name and password.
|
|
|
|
|
Hi Nilish
Then you should not get any problem
i think you are validating the userid and password from database Check only once then put both things in Session varaible and check from this varaibles .
What the problem you are facing while retriving is it taking more time ?
i didn't get any mail from your side.
Maine apko mail mail bheja tha but you have not provided any mail id
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi all,
I am developing a web application using asp.net(vb).
I need to handle the custom exceptions.
i have created a custom exception class which inherits the properties of Application Exception.
i need to display a custom error to the end user using that class by catching the exception.
For Example:
i have a function which checks for the input value
if that value is less than the expected value i have to catch it as an exception and displays a user friendly message through my custom exception class .
how to do it???
give me some sample code if Possible.........
thank u all......
Regards
Krishsenthilraj
|
|
|
|
|
Hi Krishsenthilraj,
you can user Enterprise library provided by microsoft.
and second option is to handle and exception and write a logger for it and then redirect to one common page which will display an user friendly error messsage to the user.
In case of any futher help let me know
Rahul Goel
Microsoft Cerfied Solution Developer .Net
Contact me at : rahul.g2510@gmail.com
|
|
|
|
|
I have an application which has an entry screen and view screen. In my home page i have a menu which has links to both these screens. Depending upon the person loggin in, MenuItems gets changed. But a person who doesnt have acess to Entryscreen.aspx, can type it in the URL and can get acess to that page. How do we block them.
|
|
|
|
|
Don't Cross post in Multiple Forums.
Regards,
Satips.
|
|
|
|
|
Ok i have removed it......Can u answer this
I have an application which has an entry screen and view screen. In my home page i have a menu which has links to both these screens. Depending upon the person loggin in, MenuItems gets changed. But a person who doesnt have acess to Entryscreen.aspx, can type it in the URL and can get acess to that page. How do we block them.
|
|
|
|
|
In our web applications we use a base class for all "normal" pages. This page class checks whether the user has access rigths to this page. If not then the user is redirected to a no permission page.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Hi
On the page load query database to check whether currently logged in user have permission to access the page. If not redirect him to a permission denied page. An alternative would be using HTTP module and checking the incoming request.
Happy Programming
|
|
|
|
|
hi
i have dialogbox which is open on cellclick of farpoint spreadsheet.
my code is
private void fpAnaAssgn_CellClick (object sender,FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
Respose.Write("<script language='javascript'> { window.ShowDialog() }</script>");
}
but its not working and it did,t have any error.
pls help me
gayatri
Gayatri
|
|
|
|
|
Hi gaythri
I think I have already replied to you on an earlier post. Is it ?
|
|
|
|