|
First of all, I would like to thank you for your ans.
But I dont get it clear. Pls. clear me
Balasubramanian K.
|
|
|
|
|
hi sir, in what aspect you were unclear.
what i did was a div with runat server attribute
this div contains as many inner divs with div style as display:none
and
added a dynamic table(s) at codebehind to inner div.
this table contained
i did show show inner-div1 on click of dropdown
if side arrow clicked i hide this inner-div1 and shown inner-div2)
if any td is clicked i hide this all div as whole and populate value in dropdown through javascript
regards, ravifree
ravis
|
|
|
|
|
I have a grid view that is bound to a table in database table (Events) through an objectdatasource that looks something like this:
EventName | Event Description | Event Type
------------------------------------------
my event |Great |Rock n Roll
the database schema is EventName = nvarchar, Event Description = nvarchar and Event Type = Int
Event type is then determined from retrieving an nvarchar value from an EventType table that corresponds
to the integer value it holds.
On Update of an event the Event Type column in the data grid shows a drop down list bound to another
datasource that populates it with the string representations from the EventType table. I am not sure
how to persist the selected value back to the database for the Events table. I have the sql code but am not
sure how to retreive the drop down lists DataValueField and pass it back as a parameter to the Update method.
Any help would be much appreciated. I can post up the code if needed
Thanks
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
I am doing my collage project in ASP.net using Visual Studio 2003. I am unable to access my collage network using laptop. So, now i am suppose to be using my collage PC for my work when i am in collage.
So, how can i save my solution file and even the aspx file that is in the IIS in my USB drive.
Pls tell me how to do it.
Thanks in Advance
|
|
|
|
|
NewbieCoder123 wrote: So, how can i save my solution file and even the aspx file that is in the IIS in my USB drive.
Just copy the whole folder onto the USB drive. If you have set up the project to load via IIS, you need to make sure you copy to the ISS location to open it, or set that location. If you're just opening a solution that is a web project, you have nothing else to worry about.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How can I clear a dropdownlist selected field without it removing the item out of the list? When I do: DropDownList1.SelectedItem.Text = "" it will clear the selected item out of the display and the list.
jds1207
|
|
|
|
|
jds1207 wrote: When I do: DropDownList1.SelectedItem.Text = "" it will clear the selected item out of the display and the list.
No, it will set the text of the selected item to an empty string.
You can't clear the selection of a DropDownList , there is always one item selected. Set the SelectedIndex property to zero if you want to reset it back to have the first item selected.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello all
i have the following function
get from table 1 result 1 the result is 961 row
{
(for each row above)
get from table 2 result 2 by result 1 the result is 1 row
get from table 3 result 3 by reslut 2 the result is 1 row
}
it run for a while then it gaving me this error
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
and this is the first time i get this error
note: i use speical pool for it
can anybody tell me what is wrong
thank you
|
|
|
|
|
Don't make queries in a loop like that. Join in the data in the first query, so that you make only one query, not 1923 queries.
The error might come from failing to close the database connections properly. As you are running so many queries, you quickly run out of connections.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
I work for a Bank, now I would like to use asp.net to connect with T24 (Teminos- a core banking). I would like to modify directly data in T24 any time when clients from asp.net have request. you guys have experience about this? If posible you can send your ideals to my email address :nhiepka@yahoo.com.
Thank you
|
|
|
|
|
I face the same issue here, did you solve it or have any ideas about how to do that?
|
|
|
|
|
Hi,
I am trying to prevent CSSFriendly applied on my website to effect a control.I tried many things but I couldn't.I don't want to loose the themm skin ID in the same time.Could you help me to solve this problem?
I am too late but i will never give up
|
|
|
|
|
I guess you should ask people who know what CSSFriendly is. Do they have a website ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
I have a .Net Web service I need to pass data and some user defined objects from and to the other web services. I am able access and send the data but the objects are not passed.
Even I have declared the classes as [Serializable]. Please advice me. The two classes as as follows.
The ticket class containd the object of CI class. I am able to get data from the Ticket class objects but but unable to get the data from the object of CI class that is there in the Ticket class.
Anybody please give me some suggestion.
[Serializable]
public class CI
{
//private String CI_TYPE;
private String _ASSET_TAG;
private String _ASSET_FAMILY;
private String _location;
Note : Prperties of this class I havenot mentioed here they are there
}
[Serializable]
public class Ticket
{
private RecType _REC_TYPE;
private String _SR_ID;
private DateTime _LAST_MOD_DT;
private String _COMPANY;
private String _LOCATION;
private String _CATEGORY;
private String _SEVERITY;
private String _STATUS;
private String _BILLABLE;
private CI _SERVICE_CI;
private CI _HARDWARE_CI;
private DateTime _OPEN_DATE;
public RecType recType
{
get
{
return _REC_TYPE;
}
set
{
_REC_TYPE = value;
}
}
public String srId
{
get
{
return _SR_ID;
}
set
{
_SR_ID = value;
}
}
public DateTime lastModDate
{
get
{
return _LAST_MOD_DT;
}
set
{
_LAST_MOD_DT = value;
}
}
public String company
{
get
{
return _COMPANY;
}
set
{
_COMPANY = value;
}
}
public String location
{
get
{
return _LOCATION;
}
set
{
_LOCATION = value;
}
}
public String category
{
get
{
return _CATEGORY;
}
set
{
_CATEGORY = value;
}
}
public String severity
{
get
{
return _SEVERITY;
}
set
{
_SEVERITY = value;
}
}
public String status
{
get
{
return _STATUS;
}
set
{
_STATUS = value;
}
}
public String billable
{
get
{
return _BILLABLE;
}
set
{
_BILLABLE = value;
}
}
public CI serviceCI
{
get
{
return _SERVICE_CI;
}
set
{
_SERVICE_CI.assetFamily = value.assetFamily;
_SERVICE_CI.assetIdentifier = value.assetIdentifier;
_SERVICE_CI.location = value.location;
}
}
public CI hardwareCI
{
get
{
return _HARDWARE_CI;
}
set
{
_HARDWARE_CI.assetFamily = value.assetFamily;
_HARDWARE_CI.assetIdentifier = value.assetIdentifier;
_HARDWARE_CI.location = value.location;
}
}
public DateTime openDate
{
get
{
return _OPEN_DATE;
}
set
{
_OPEN_DATE = value;
}
}
}
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
modified on Sunday, June 22, 2008 3:06 AM
|
|
|
|
|
Hi, thanks for looking
Which of the following state management techniques allow you to track information across multiple Web pages when using multiple front-end Web servers? (Choose all that apply.)
Cookies
Session state
Application state
Hidden fields
Query string
...
Correct answers: Session State and Cookies
My question: Cant Application state be used when using multiple front-end Web servers?
Any comments are welcome
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
The problem with Application state is, it's for the entire app. So if you have more than one user, the information stored is for all users, not just the one you're focused on.
Was cross page postback on the list ? Why can't you pass information between pages by forming the appropriate query strings ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Complete list of options and explanation:
Control state
Application state
Session state
Cookies
Viewstate
Query strings
Hidden fields
Correct answers: Session and cookies
EXPLANATION:
Session state can be stored in a central state server or in a Microsoft SQL Server database. Therefore, by configuring multiple front-end Web servers to store Session state in a single server, a user can move between Web servers without losing Session state.
Cookies store all information on the client, rather than on the server, placing no server-specific requirements on the Web application.
ViewState, ControlState, and hidden fields can be used only to maintain state for a single ASP.NET form. You cannot use them to track settings across multiple Web pages.
Query strings require adding parameters to every link the user might click on your site. Therefore, it would be very difficult to ensure that every link was dynamically generated to contain state information.
Alexei Rodriguez
|
|
|
|
|
AlexeiXX3 wrote: My question: Cant Application state be used when using multiple front-end Web servers?
Not to share data between servers. Each server is running a separate instance of the application.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi
when i use the Ajax-PopupControlExtender in the normal aspx page directly it works fine. but i have a problem in using Ajax-PopupControlExtender in WebUserControl and call the WebUserControl to the aspx page. it's not working fine . the error message is below,
WebService Call Failed : 404
my coding is,
Source code in WebUSerControl :
<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:hyperlink id="HyperLink1" runat="server">HyperLink
<cc1:popupcontrolextender id="PopupControlExtender1" dynamiccontextkey="123" runat="server" dynamicservicemethod="GetValue" xmlns:cc1="#unknown">
TargetControlID="HyperLink1" PopupControlID="Panel1" DynamicServicePath="/DisplayPopupcontrol.aspx" DynamicControlID="Panel1"
Position="bottom">
<asp:panel id="Panel1" runat="server" width="200px">
Code Behind CS code in WebUserControl :
Imports System.Data.SqlClient
Imports System.Data
Imports System.IO
Imports System.Collections
Imports HSSPMS.BusinessFacade
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Partial Class ajaxusercontrol
Inherits System.Web.UI.UserControl
Shared dtContactLst As New DataSet
Shared objCustMstr As New CustomerFacade
<system.web.services.webmethodattribute(),> _
Public Shared Function GetValue() As String
dtContactLst = objCustMstr.GetContactValues(1)
Return ContactList(dtContactLst)
End Function
Public Shared Function ContactList(ByVal dsContact As DataSet)
Dim strTemp As New StringBuilder()
If dsContact.Tables(0).Rows.Count > 0 Then
strTemp.Append("")
strTemp.Append("")
Dim dr As DataRow
For Each dr In dsContact.Tables(0).Rows
strTemp.Append("")
strTemp.Append("")
strTemp.Append("")
Next
strTemp.Append("Contact Info: | E-Mail : " & dr.Item(0).ToString() & " | Tel No : " & dr.Item(1).ToString() & " | Fax No: " & dr.Item(2).ToString() & " | ")
Else
strTemp.Append("")
strTemp.Append("")
strTemp.Append("")
End If
Return strTemp.ToString()
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim pce6 As AjaxControlToolkit.PopupControlExtender = TryCast(Me.FindControl("PopupControlExtender1"), AjaxControlToolkit.PopupControlExtender)
' Set the BehaviorID6
Dim behaviorID6 As String = String.Concat("pce6", "1")
pce6.BehaviorID = behaviorID6
Dim OnMouseOverScript6 As String = String.Format("$find('{0}').showPopup();", behaviorID6)
Dim OnMouseOutScript6 As String = String.Format("$find('{0}').hidePopup();", behaviorID6)
HyperLink1.Attributes.Add("onmouseover", OnMouseOverScript6)
HyperLink1.Attributes.Add("onmouseout", OnMouseOutScript6)
End Sub
End Class
In Source Code in Normal aspx Page :
<title>Untitled Page
<uc1:ajaxusercontrol id="Ajaxusercontrol1" runat="server" xmlns:uc1="#unknown">
Can anyone help me ??? it's urgent !!!!!
Thanks in Advance!!!
Sabarees
modified on Saturday, June 21, 2008 1:21 PM
|
|
|
|
|
Hi,
I wrote an asp app and when I deploy and run it on the server, it will run up to a point then issue a timeout error along with some Event Viewer messages.
When I run the app from my VS IDE, in Release mode the app runs happily without any errors and using the same exact data parameters and settings.
I know that when running from IDE in Debug mode, the debug=true param is set, but I'm running in release mode and I understand that debug=false in that scenario. But regardless, I set debug=true when deployed and it still errors out.
web.congif has session timeout and httpruntime timeout set to over 20 minutes and I also found a trick here on codeproject top keep the page session alive. My sql calls in the app also have high timeout settings.
Can anyone think of why an asp app would run perfectly through IDE and not in production?
If the errors I got were a bit more verbose I might be able to do something with them, but they are not, just says Timed Out.
Thanks in advance for any help!!
PhrankBooth
|
|
|
|
|
Anyone have any ideas about this?
PhrankBooth
|
|
|
|
|
Hi All,
I am hardly few months old in asp.net. My current project requires to list the folders (rootfolder) in a treeview. I am using VS2003 and thats the trouble all about. I guess it is easier in VS2005. I did a lot of research and found various codes from the web, however, when I write soemthing with a "Tree" like "TreeView", "TreeNode", "TreeNodeCollection" etc it displays a wiggly line below it. What is the namespace to be included? what am I missing....Someone please explain all this to me together with the code at the earliest....Any help in this regard is highly appreciated.
Regards,
Rinjin
|
|
|
|
|
We have deployed three applications(three different virtual directories) having the following settings for SSO.
Forms Authentication-Settings are similar in all the applications
MachineKey entry is kept similar in all the web.config.
The authentication cookie is not persistent.
SSO works well in IE. When the user opens a new window, it asks for the user to log in. When the user navigates to other sites from the same window, it doesn't ask for log in.
In firefox, even if a new window is opened, it doesn't ask for log in and logging in automatically.
Please help.
|
|
|
|
|
hi
how to clear particular page history only from browser.
please can any one help. I need hardly.
thanks
You get the best out of others when you give the best of yourself.
modified on Saturday, June 21, 2008 7:55 AM
|
|
|
|