|
Use Simple AJAX Control Toolkit CalendarExtender control...and put the TargetControlProperty as the ID of TextBox where you need the Date
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
How a web page looks similar (web page contains div tags, css) in all browsers(e.g IE, CHROME etc)?
|
|
|
|
|
you need to program it such a way that it is compatible all main browsers
|
|
|
|
|
Is this a question? If you want your page to look similar in all browsers just follow standard HTML and CSS practices.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Is it possible to restrict the user from changing virtual directory name while installing a web application using a web setup?
Regards
|
|
|
|
|
A side point, your code should not care what the virtual directory name is so you may want to look at how you are doing things instead.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
but this is a typical scenario....
|
|
|
|
|
Quote: but this is a typical scenario.... What is? Restricting people from changing the directory name? It isn't in my experience. It may be in yours but I am not sure how to restrict that.
However, my point still stands, your code should not care what the virtual directory name is. Unless there is some real specific reason to, your code should reference paths using ~ for .net controls, etc.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
It's been awhile, but in the properties some where (F4), you can turn off the virtual directory input so it doesn't show during installation.
But I don't see the point in that. Are you going to set it for them?
That installation program is old school and out of date, and only works with metadata and IIS 6 compatibility and management installed with IIS 7+.
|
|
|
|
|
At last I have found this. Just removing installation folder node from user interface editor will do this for us.
Thanks for your support.
Regards
Sebastian
|
|
|
|
|
Oh, you found it finally, You would never know that it was there unless someone tells you, I could not remember the name of the property.
|
|
|
|
|
Yes. Thanks for your time.
|
|
|
|
|
Trying to see which ad hoc reporting tool is best for me and my company.
|
|
|
|
|
Is this something to do with ASP.NET?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
|
|
|
|
|
I i want to develop Grid view that should be add rows in the client side(with out using the post back).Currently i'm using the grid view update pannel and asp grid .And adding rows in the button click so always doing the post back.So ple suggest appropriate code .
thanks
|
|
|
|
|
I know a lot of people use jQgrid.[^]
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I got Your reply .Thanks for your valuable reply.I gone throgh that jquery grid in that adding new row is in the button click. So can u tell how can i add new row in the text box change.Now when ever the user want to add new row he/she want to click the button.So can u tell me how i will add the row in the text box change.
Thanks
|
|
|
|
|
If you know how to add a row using the button click then getting it to happen on text change should be very simple. What exactly are you having trouble with?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Actually when i call add new row function in the text box change ,For every enter event outside the grid also adding row to the grid.I did the row adding by using data table .The code is posted below
private void AddNewRowToGrid()
{
int rowIndex = 0;
if (ViewState["CurrentTable"] != null)
{
DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"];
DataRow drCurrentRow = null;
int i;
if (dtCurrentTable.Rows.Count > 0)
{
for (i = 1; i <= dtCurrentTable.Rows.Count; i++)
{
//extract the TextBox values
DropDownList drp1 = (DropDownList)Gridview1.Rows[rowIndex].Cells[1].FindControl("drpptype");
//TextBox box1 = (TextBox)Gridview1.Rows[rowIndex].Cells[1].FindControl("TextBox1");
TextBox box2 = (TextBox)Gridview1.Rows[rowIndex].Cells[2].FindControl("txtpnumer");
//TextBox box3 = (TextBox)Gridview1.Rows[rowIndex].Cells[3].FindControl("TextBox3");
drCurrentRow = dtCurrentTable.NewRow();
drCurrentRow["Sl.No"] = i + 1;
drCurrentRow["Column1"] = drp1.SelectedValue;
drCurrentRow["Column2"] = box2.Text;
//drCurrentRow["Column3"] = box3.Text;
rowIndex++;
}
//add new row to DataTable
dtCurrentTable.Rows.Add(drCurrentRow);
//removing first row...
//Store the current data to ViewState
ViewState["CurrentTable"] = dtCurrentTable;
//Rebind the Grid with the current data
Gridview1.DataSource = dtCurrentTable;
Gridview1.DataBind();
DropDownList drp = (DropDownList)Gridview1.Rows[i - 1].Cells[1].FindControl("drpptype");
bindGridviewdrop(drp);
}
}
else
{
Response.Write("ViewState is null");
}
//Set Previous Data on Postbacks
SetPreviousData();
}
And in the page load i'm setting the initial row to the grid..And the setpreviousData() function will set the previous data.In this way i'm adding row.So every post back function adding the new. So can u suggest me a solution for this
|
|
|
|
|
Hi all,
I have a control in my master page like this
Logout
How i can hide this in my login page using this master page
|
|
|
|
|
You can define the property on the master page and set its value visibility to true of false on content page by using their property.
|
|
|
|
|
Menu MyMasterMenu = (Menu)Master.FindControl("logoutLink");
MyMasterMenu.Visible = false;
I done like this in my login page but not working
|
|
|
|
|
In the Page_Load() of the Masterpage.cs
try out the following
if(Session["login"]!="")
//make visible the "logout" link
else
//make visible the "login" link
|
|
|
|
|
<a id="logoutLink" runat="server" href="" style="display: none;" class="logout">Logout
|
|
|
|
|
I guess it would be, this is hand type off the top of my head
<asp:Hyperlink runat="server" id="hl_Logout" href="~/Logout.aspx" class="logout" visible="false">Logout
</asp:Hyperlink>
Then in your code behind page on the Page.Load
hl_Logout.visible = False;
|
|
|
|