|
I would like to know the difference between publishing and deploying an asp.net web application.
Regards
MLNRao
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
previously we were using visual studio 2002 version and in that version we were having no problems in moving the controls over the form in design time with grid layout.we simply drag and drop the control and move it over the form but in vs 2005 version the controls are not moving over the form with mouse and with keyboard in design time. so please give me the solution of this problem.
|
|
|
|
|
Unlike earlier version, VS2005 needs a strucred format for placing controls on it. So use table, div/layer tags for positioning elements.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Hi,
There are two ways to move a control anywhere in the form
1) Goto Tools-->Options and select HtmlDesigner then choose your options to "Absolutely Positioned".
2) Right click over a particular control select style then select position there also you can choose a position to "Absolutely Positioned". Test for all Choices.
|
|
|
|
|
Hai to all,
Here my doubt is ,when we enter some value into textboxes,i want to enter only numerics.
SAme i have to check for Characters,emailAdress(Havinv @ symbol in between).
How to do without using Required Field validator.Give me solution for three different cases.
Thanks in advance
kissy
|
|
|
|
|
Why do u not want to use Required Field Validator. U can use Regulsr Expresssion Validator for all three here u find for accepting only numeric value code. otherwise use Jscript.
asp:RegularExpressionValidator ID="REV_Seats" runat="server" ErrorMessage="* Number Only" ValidationExpression="[0-9]{1,16}" ControlToValidate="txtSeats" Display="Dynamic"
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hai,
Thanks for ur answer,how to do for email address???
If i have more than 20 text boxes in a form for different entries,is it good to use the regular expression???
give me answer.
thanks
kissy
|
|
|
|
|
hi
u can use also RegularExpression for email Validation. follow the RegularExpression basic property and after tht use ValidationExpression into property windows and select Internet email address option click ok.
and if u hav 20 and more controls in a page tht is good to use coz tht validation is run at client side and prevent to user to goto server side.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi Guys,
..am beginner in asp.net....I want to delete the row in my gridview.... i am using this code but where i place the code to delete the row....
dataset.Tables["Data"].Rows.RemoveAt(e.RowIndex);
gridview.DataSource=dataset.Tables["Data"];
gridview.DataBind();
Thanks
A.Rajapandian
|
|
|
|
|
Try it in RowDeleting Event of the GridView...
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
when i run localhost, it right, but when i run with network, it not display persons conmect this website.
please help me.
Thanks you.
|
|
|
|
|
What specifically is it that you are trying to count?
If it doesn't display "persons conmect this website", what does it show?
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
i created a calender control with checkbox,i even written a code for checking the checkbox,but i checked the checkbox the date is not getting displayed,execution of code is not getting into the 'if ' condition but into the else condition.if any wuld get help me on it as i am new to asp.net.
thanks in advance
|
|
|
|
|
Post your coding, if possible....
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
here is my code.
protected void btnsubmit_Click(object sender, EventArgs e)
{
if (cb != null)
{
if (cb.Checked)
{
lblcal.Text = Calendar.SelectedDate.ToShortDateString();
}
//else
//{
// lblcal.Text = "No Date is Slected!";
//}
}
Response.Write("The selected date is :" + Calendar.SelectedDate.ToShortDateString());
}
but i am getting the date as 1/1/0001 when i check any date in calender.
thanks for reply
|
|
|
|
|
You have to set the SelectedDate property of the Calendar Control or you must select a date before clicking the button... I hope the problem will be solved now...
Have a nice day...
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
Thanks for reply but i am unable to set that property as u said if possicle make changes in the code n send it to me.thanks
|
|
|
|
|
Why? Whats the problem? SelectedDate is property available for Calendar Control. You can set it through the property box...
Or go the Source Code mode and find that Control's HTML tag and add the SelectedDate attribute as
<asp:Calendar ID="Calendar1" runat="server" SelectedDate="2007-01-03"></asp:Calendar>
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
i Did that but i want the date which i check through the checkbox.example if i select the check of the date 3 jan 2007 then it shuld display that date with mess the selected date is 3/1/2007
|
|
|
|
|
Hey hold on...
Are you using Check boxes for each date? (i.e.) chk1 for day 1, chk2 for day 2.. something like that? If so, you should get each checkbox in the Calendar Control and check whether it is checked or not...
Can you post the HTML of your application, so that I could get a clear idea where we are...
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
<asp:calendar id="Calendar" runat="server" width="75" selecteddate="01-01-2007"
="" onselectionchanged="Date_Selected" dayheaderstyle-backcolor="ActiveBorder" daynameformat="Short" font-names="Verdana;Arial" font-size="12px" height="180px" todaydaystyle-font-bold="True" dayheaderstyle-font-bold="True" othermonthdaystyle-forecolor="gray" titlestyle-backcolor="#3366ff" titlestyle-forecolor="white" titlestyle-font-bold="True" selecteddaystyle-backcolor="#ffcc66" selecteddaystyle-font-bold="True" nextprevformat="ShortMonth" nextprevstyle-forecolor="white" nextprevstyle-font-size="10px" selectorstyle-backcolor="#99ccff" selectorstyle-forecolor="navy" selectorstyle-font-size="9px" selectweektext="week" selectmonthtext="month" ondayrender="Calendar_DayRender">
<asp:button id="btnsubmit" runat="server" text="Select the Date" onclick="btnsubmit_Click">
<asp:label id="lblcal" runat="server" width="50%">
|
code to get checkbox in calender control:
//function to get checkbox in calender
protected void Calendar_DayRender(object sender, DayRenderEventArgs e)
{
CalendarDay cd = e.Day;
string cid = "" + e.Day.Date.ToString("ddmmyyyy");
cb.ID = cid;
e.Cell.BackColor = Color.BurlyWood;
//e.Cell.BackColor = Color.Yellow;
DateTime theDate = e.Day.Date;
if (cd.IsWeekend)
{
e.Cell.BackColor = Color.Brown;
// e.Cell.BackColor = Color.SkyBlue;
}
e.Cell.Controls.Add(cb);
}
//function to display the date selected by user
protected void btnsubmit_Click(object sender, EventArgs e)
{
if (cb != null)
{
if (cb.Checked)
{
lblcal.Text = Calendar.SelectedDate.ToShortDateString();
}
//else
//{
// lblcal.Text = "No Date is Slected!";
//}
}
Response.Write("The selected date is :" + Calendar.SelectedDate.ToShortDateString());
}
hope this wuld help u.
|
|
|
|
|
Sorry for saying this... This cannot be done...
You are adding controls in the Calendar in the DayRender Event which has some no. of controls.. Say 30 checkboxes... When you click the button you are getting only one control "cb" which would be the last control and it won't be last control that time...
When you click the button, the page is postback and all the controls are cleared (i.e) CalendarControl.Controls.Count=0. We can't get the checkboxes now..
I tried with accessing directly by CalendarControl.FindControl("03012007"), but it is hope less...
Don't waste your time in doing this... Try some other way... .NET Calendar has limited advantages... If you know AJAX then, you can do it... But it take time to studying and doing..
Have a nice day..
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
what is the exact meaning of the configuration in asp.net.and what is use of machine.config and when is it used.
thanks in advance.
|
|
|
|
|
"web.config" is scoped to a particular directory.
You use it to override "machine.config" for a particular application or application sub-folder.
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
thanks for reply i want to know what is the exact meaning for the configuration.how many types of confid are there.
|
|
|
|