|
Use Ajax Tab control.
Look into this[^]
|
|
|
|
|
In my web application I have a webservice. I'm using this webservice inside this web application. The mode of customError (in web.config) is set to "On". This prevent from me to get detailed exception in client (javascript). My webmethod defined as scriptmethod too. If I turn customError off I start getting the detailed exception. I need to keep stay with customError set to "On", but get detailed exception from webservice instead of general exception with this message: "There was an error processing the request".
Thanks.
|
|
|
|
|
Anyone have an answer for this, I have the same issue.
With customError set to On or RemoteOnly:
When the webservice method throws an error with a detailed error message, then on the error return to javascript, results.get_message() shows the generic message "There was an error processing the request", not the detailed error message.
With customError set to Off:
When the webservice method throws an error with a detailed error message, then on the error return to javascript, results.get_message()shows the detailed error message.
I want the customError to be set to RemoteOnly, but I also want get_message() to have the detailed error message, not the generic one.
Any thoughts, fixes, workarounds would be greatly appreciated.
|
|
|
|
|
Create a new folder and move there your asmx file (the asmx.cs/asmx.vb will stay in app_code folder). Add a new web.config to your new folder by "Add new item... -> Web Configuration file". Your new web.config will be almost empty. Add a "customError" element as you did it in your main web.config and set it to Off.
That's all.
|
|
|
|
|
perfect. thanks for replying!
|
|
|
|
|
hi:
how can i change the default path (aspnet_client/system_web/2_0_50727....)
for the images and css in the toolbar inside the CrystalReportViewr.
what i want, is to put all those files inside my application.
thank you
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
|
thank you
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Hi, I am trying to make a spreadsheet in asp.net wherein, the user can enter some data and I display results for one of my methods( say Average, Standard deviation etc,). Can anybody please guide me how I read data from spreadsheet at runtime & then pass these data as parameter to my methods.
e.g
public static double Sum( double [] data)
{
double sum =0.0;
for(int i=0;i
|
|
|
|
|
you can edit like this,
double d = 0;
GridView1.Rows[0].Cells[1].Text = "22.7";
d = Convert.ToDouble( GridView1.Rows[0].Cells[1].Text);
Now call sum function.
|
|
|
|
|
|
Hi..
I have dynamically creating n textboxes and n dropdownlist at runtime then how to retrieve values from that textboxes and dropdownlist...
Thanks in advance
|
|
|
|
|
You will not get the updated value until ASP.NET maintains viewstate for those controls. What event are you using for creating dynamic controls? It should be created before viewstate is saved.
|
|
|
|
|
I have two tables employee and dependents, i need to display data in gridview like this
select empname depname relation
chekbox laxmi siva spouse
chekbox raghu son
chekbox anil brother
chekbox krishna jaya mother
chekbox mahi daughter
chekbox raju anand father
chekbox kalpana sister
chekbox ramana mother
please explain to me how can i do this coding in c# asp .net
thanks in advance
laxmi
|
|
|
|
|
Why you don't try to get this data by T-SQL query? And then just display result in GridView.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
ya its better if you fetch it using query and show it in gridview.
you will get data like this,
emp1 depedent1name dependent1Relation
emp1 depname2 dep2relation
you can format this easily format the output, using columnspan
emp1 depedent1name dependent1Relation
depname2 dep2relation
|
|
|
|
|
i want to display the next month in the calendar but because i have written the code like "calendar1.visible =false" in the "Calendar1_SelectionChanged1" method i am unable to perform the above mentioned operation. how can i display the next month
|
|
|
|
|
Calendar1.Date = new DateTime(<br />
int.Parse(DateTime.Now.ToString("yyyy")),<br />
int.Parse(DateTime.Now.ToString("MM"))+1,<br />
int.Parse(DateTime.Now.ToString("dd")));
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
it is showing an error like "'System.Web.UI.WebControls.Calendar' does not contain a definition for 'Date' and no extension method 'Date' accepting a first argument of type 'System.Web.UI.WebControls.Calendar' could be found (are you missing a using directive or an assembly reference?)"
|
|
|
|
|
You can use like this,
Calendar1.VisibleDate = DateTime.Today.AddMonths(1);
|
|
|
|
|
I am facing an output error.
I am using a drop downlist which contains two items called "half day" and "full day" and two calendar controls.
What i am in need is when i select the "full day" first it should show calendar1, after selecting the date in calendar1 it should display the next calendar control. then when i select the "half day". it should display only calendar1 and once clicking the date in the calendar1 the same should not be visible.
Anyone kindly help me...
modified on Saturday, May 30, 2009 6:40 AM
|
|
|
|
|
First,enable autopostback of DropDownlist,set
AutoPostBack=true;
On
SelectedIndexChange of dropdownlist set visible to controls.
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Calendar1.Visible=true;
}
and in event
SelectionChanged of Calendar1 check which items is selected from DropDownList
private void Calendar1_SelectionChanged(object sender, System.EventArgs e)
{
if(DropDownList1.Text =="full day")
{
Calendar2.Visible=true;
}
else
{
Calendar2.Visible=false;
}
}
Hope this will help you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
thank you the mistake was enabling the auto post back
|
|
|
|
|
You are welcome.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hi,
i have code as below to populate treeview. it works fine. and it populates as i want.
i have one button to edit treeview node text.that is also work fine.
the code to edit treeview node text as given last below.
i want that, when i edit treeview node text,after clicking button,the same treeview node expanded with new text of treeview.
how can i get this ??
Regards,
ASIF
Private Sub PopulateTree(Optional ByVal depth As Integer = 1)
'Populate the tree based on the subfolders of the specified VirtualImageRoot
Dim rootFolder As New DirectoryInfo(Server.MapPath(VirtualImageRoot))
Dim root As TreeNode = AddNodeAndDescendent("0", Nothing)
'Add the root to the TreeView
TvFile.Nodes.Add(root)
End Sub
Private Function AddNodeAndDescendent(ByVal val As String, ByVal parentNode As TreeNode) As TreeNode
Dim virtualFolderPath As String
ds = New DataSet()
If parentNode Is Nothing Then
virtualFolderPath = VirtualImageRoot
ds = ClsFileapp.GetRootFolder()
Else
ds = ClsFileapp.GetRootFolder(val)
virtualFolderPath = parentNode.Value & val & "/"
End If
Dim node As New TreeNode(ClsFileapp.GetfolderName(val), val)
node.ImageUrl = "images/folder.gif"
node.ToolTip = ClsFileapp.GetfolderName(val)
Dim reader As IDataReader = ds.CreateDataReader
While reader.Read()
Dim child As TreeNode = AddNodeAndDescendent(reader("id").ToString(), node)
child.SelectAction = TreeNodeSelectAction.Select
child.PopulateOnDemand = False
node.ChildNodes.Add(child)
End While
Return node
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
imgDeleteFolder.Attributes("onClick") = "if (! confirm('are you sure to delete')) return false;"
If Not IsPostBack Then
PopulateTree()
TvFile.ExpandDepth = 1
PnlRename.Style("display") = "none"
ModalPopupExtender1.Hide()
End If
End sub
Protected Sub btnEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnFolderRename.Click
If Session("SubID") IsNot Nothing Then
If txtRenameFolder.Text <> "" Then
ClsFileapp.RenameFolderName(Session("SubID").ToString(), txtRenameFolder.Text)
Dim strpath As String = Session("PathValue").ToString()
Dim currentDepth As String() = strpath.Split("/")
TvFile.Nodes.Clear()
PopulateTree()
TvFile.FindNode(strpath).Selected = True
TvFile.FindNode(strpath).Expanded = True
TvFile.SelectedNodeStyle.BackColor = Drawing.Color.FromName("#829cb0")
TvFile.SelectedNodeStyle.ForeColor = Drawing.Color.White
Else
ModalPopUpRenameFolder()
lblRenameFolder.Visible = True
End If
End If
End Sub
|
|
|
|