TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Riddhi Valecha
444
3.3k
412.7k
div tag alignment from code-behind.
May 6 2015 9:21 AM
Hi all..
I have a webPage.aspx as -
<asp:textbox ID="txt_stud_ID" runat="server"></asp:Textbox>
<asp:textbox ID="txt_FName" runat="server"></asp:Textbox>
<asp:textbox ID="txt_LName" runat="server"></asp:Textbox>
<div id="div_errormsg" runat="server"> </div>
Now,
in aspx.cs code on button click - I have
btn_click
{
if(txt_stud_ID.Lenght > 0 && txt_FName.Lenght > 0 && txt_LName.Lenght > 0)
{
// Insert
}
else
{
div_errormsg.Innertext = "Enter proper values";
}
}
--------
Now, I want that - If Stud_ID is not there, then the "div_errormsg" must be below the Stud_ID text box.
If the FName is not there , then the "div_errormsg" must be below the FName text box.
---
How to align this div from code-behind user the textbox controls ??
Reply
Answers (
4
)
grid view
Set Background Image on a ContentPlaceHolder !!