|
I love Strongly-Typed Datasets. I equally love Repeaters. However, I don't love trying to get data from a parent row from within a Repeater. Why isn't there some sort of databinding control that will let me bind just one record (for example, the parent of the record currently binding in a RepeaterItem) that doesn't provide formatting and such already? I'm looking for something as simple as the Repeater for one item. Can anyone help me?
|
|
|
|
|
When I type in my site all I see is my custom error page
Where do I start? What do I do?
|
|
|
|
|
Disable custom errors so you can see the standard ASP.NET error page. Alternatively, check the Event Log.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
How do I disable the custom error???
|
|
|
|
|
learningman wrote: How do I disable the custom error???
Look for an element in your web.config called customErrors . Set its mode attribute to Off .
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
What do the IronSpeed docs say? Have you checked with their tech support? Have you look at any IronSpeed related forums?
only two letters away from being an asset
|
|
|
|
|
I did everything possible and followed every resolution and I cant ask in the forums as I'm running the trail version so I thought someone might have ran into the same problem here cuz I know it's quite popular here and this's where I was recommended to use it.
Thanks for your help mate.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
All,
When i run my web page i am getting a client script error like "classfactory cannot supply requested class". Please advise me how to fix this issue..
Thanks in advance
Sebastian
|
|
|
|
|
|
google is not yet broken..... But those results didn't helped me......
Thats why I posted it here....!
Thanks
|
|
|
|
|
This questions is really just out of curiosity. I have an application I'm playing around with at home. Here's how it works. There's a web service that that calls a store procedure on an SQL Server 05 database. There is also a web form with some javascript with the purpose of creating an outlook activex object and creates an new contact.
<br />
var outlookapp = new ActiveXOBject("Outlook.Application")<br />
var newContact = outlookapp.createItem(2)<br />
Is there a way that i can call the web service in say VB, or C# and pass the results into javascript for client side processing ?
|
|
|
|
|
|
sir i want to make a program which can send SMS from my PC to mobile in anywhere in india.
i m using ASP.net+c#. can u help me?? thanks in adv.
yogesh
modified on Thursday, February 07, 2008 4:24:49 AM
|
|
|
|
|
You have to use the Telephone API of windows (TAPI 3.0 is current I thought).
You have to control your modem to be able to send SMS !
(Not leaving my phonenumber here )
|
|
|
|
|
Hi, I setup my listview Selected value to 0, when my page is loaded, i can't get that value to filter a sqldatasource. i try to read it and populate a label and it doesnt work, here is the code. any idea?
<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
Label1.Text = ListView1.SelectedValue<br />
End Sub
<asp:ListView ID="ListView1" runat="server" DataKeyNames="pid" <br />
DataSourceID="SqlDataSource1" GroupItemCount="3" SelectedIndex="0"><br />
<AlternatingItemTemplate><br />
<td runat="server" style=""><br />
pid:<br />
<asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' /><br />
<br /><br />
p_tn:<br />
<asp:Label ID="p_tnLabel" runat="server" Text='<%# Eval("p_tn") %>' /><br />
<br /><br />
</td><br />
</AlternatingItemTemplate><br />
<LayoutTemplate><br />
<table runat="server"><br />
<tr runat="server"><br />
<td runat="server"><br />
<table ID="groupPlaceholderContainer" runat="server" border="0" style=""><br />
<tr ID="groupPlaceholder" runat="server"><br />
</tr><br />
</table><br />
</td><br />
</tr><br />
<tr runat="server"><br />
<td runat="server" style=""><br />
</td><br />
</tr><br />
</table><br />
</LayoutTemplate><br />
<EmptyItemTemplate><br />
<td runat="server" /><br />
</EmptyItemTemplate><br />
<InsertItemTemplate><br />
<td runat="server" style=""><br />
p_tn:<br />
<asp:TextBox ID="p_tnTextBox" runat="server" Text='<%# Bind("p_tn") %>' /><br />
<br /><br />
<asp:Button ID="InsertButton" runat="server" CommandName="Insert" <br />
Text="Insert" /><br />
<br /><br />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" <br />
Text="Clear" /><br />
<br /><br />
</td><br />
</InsertItemTemplate><br />
<SelectedItemTemplate><br />
<td runat="server" style="background:red"><br />
pid:<br />
<asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' /><br />
<br /><br />
<asp:ImageButton ID="ImageButton1" runat="server" <br />
ImageUrl='<%# "images_prod/"+ Eval("p_tn") %>' CommandName="Select"/><br />
<br /><br />
</td><br />
</SelectedItemTemplate><br />
<GroupTemplate><br />
<tr ID="itemPlaceholderContainer" runat="server"><br />
<td ID="itemPlaceholder" runat="server"><br />
</td><br />
</tr><br />
</GroupTemplate><br />
<EmptyDataTemplate><br />
<table runat="server" style=""><br />
<tr><br />
<td><br />
No data was returned.</td><br />
</tr><br />
</table><br />
</EmptyDataTemplate><br />
<EditItemTemplate><br />
<td runat="server" style=""><br />
pid:<br />
<asp:Label ID="pidLabel1" runat="server" Text='<%# Eval("pid") %>' /><br />
<br /><br />
p_tn:<br />
<asp:TextBox ID="p_tnTextBox" runat="server" Text='<%# Bind("p_tn") %>' /><br />
<br /><br />
<asp:Button ID="UpdateButton" runat="server" CommandName="Update" <br />
Text="Update" /><br />
<br /><br />
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" <br />
Text="Cancel" /><br />
<br /><br />
</td><br />
</EditItemTemplate><br />
<ItemTemplate><br />
<td runat="server" style=""><br />
pid:<br />
<asp:Label ID="pidLabel" runat="server" Text='<%# Eval("pid") %>' /><br />
<br /><br />
<asp:ImageButton ID="ImageButton1" runat="server" <br />
ImageUrl='<%# "images_prod/"+ Eval("p_tn") %>' CommandName="Select"/><br />
<br /><br />
</td><br />
</ItemTemplate><br />
</asp:ListView>
|
|
|
|
|
I have a treeview in my page and I am using AJAX..
the problem is that when i expands one node, all the nodes are expanded..
works well without ajax
|
|
|
|
|
I have created an MS ACCESS database file, and configured a DSN using ODBC.
To access my database through the ODBC driver, I use the connection string as follows: "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\MyDb.mdb"
So, what shall be the connection string if I'd like to use the DSN I created.
Mohamed Gouda
Egypt
|
|
|
|
|
|
if i am copying a website using vwd to a web server do i need to create a dll manually as 1 is created for me automatcially
also should I have a namespace defined in my code?
thanks
|
|
|
|
|
|
Hi
shall i explain
I have a website made in VWD, there are no dlls for it
it used to run on citrix fine
now ive moved it to web server it doesnt
I have a cs file called common methods which is in app_code folder
i have a file called login.aspx.cs which references this file
e.g.
Common_methods.SetFocus(Login1.FindControl("UserName"), this);
this worked fine in citrix
not in web server
any clues/
fanx
|
|
|
|
|
Is there a way to play and mp3 file on a page without relying on whether or not a media player, such as windows mediad player, is first installed on the computer?
|
|
|
|
|
The best maximum thing that you can do is to embed the MP3 using EMBED tag and it is upto the web browser to choose the available Media Player to play it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hello i have folowing function
Public Shared Function Save(ByVal myContactInfo As ContactInfo) As Integer
Dim result As Integer = 0
Dim myConnection As SqlConnection = New SqlConnection(AppConfiguration.ConnectionString)
Try
Dim myCommand As SqlCommand = New SqlCommand("JobsDb_ContactInfo_InsertUpdateSingleItem", myConnection)
myCommand.CommandType = CommandType.StoredProcedure
If myContactInfo.UserID = -1 Then
myCommand.Parameters.AddWithValue("@Userid", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@Userid", myContactInfo.UserID)
End If
myCommand.Parameters.AddWithValue("@UserName", myContactInfo.UserName)
myCommand.Parameters.AddWithValue("@Title", myContactInfo.Title)
myCommand.Parameters.AddWithValue("@FirstName", myContactInfo.FirstName)
myCommand.Parameters.AddWithValue("@LastName", myContactInfo.LastName)
myCommand.Parameters.AddWithValue("@Email", myContactInfo.Email)
If String.IsNullOrEmpty(myContactInfo.StreetAddress1) Then
myCommand.Parameters.AddWithValue("@StreetAddress1", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@StreetAddress1", myContactInfo.StreetAddress1)
End If
If String.IsNullOrEmpty(myContactInfo.StreetAddress2) Then
myCommand.Parameters.AddWithValue("@StreetAddress2", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@StreetAddress2", myContactInfo.StreetAddress2)
End If
If String.IsNullOrEmpty(myContactInfo.ZiporPost) Then
myCommand.Parameters.AddWithValue("@ZipOrPost", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@ZipOrPost", myContactInfo.ZiporPost)
End If
myCommand.Parameters.AddWithValue("@CountryId", myContactInfo.CountryID)
myCommand.Parameters.AddWithValue("@StateId", myContactInfo.StateID)
myCommand.Parameters.AddWithValue("@city", myContactInfo.City)
If String.IsNullOrEmpty(myContactInfo.PrimaryPhone) Then
myCommand.Parameters.AddWithValue("@PrimaryPhone", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@PrimaryPhone", myContactInfo.PrimaryPhone)
End If
If String.IsNullOrEmpty(myContactInfo.SecondaryPhone) Then
myCommand.Parameters.AddWithValue("@SecondaryPhone", DBNull.Value)
Else
myCommand.Parameters.AddWithValue("@SecondaryPhone", myContactInfo.SecondaryPhone)
End If
myCommand.Parameters.AddWithValue("@WorkStatus", myContactInfo.WorkStatus)
myCommand.Parameters.AddWithValue("@SHMyName", myContactInfo.SHMyName)
myCommand.Parameters.AddWithValue("@SHMyEmail", myContactInfo.SHMyEmail)
myCommand.Parameters.AddWithValue("@SHMyPhones", myContactInfo.SHMyPhone)
myCommand.Parameters.AddWithValue("@ActivityDate", myContactInfo.ActivityDate)
Dim returnValue As DbParameter
returnValue = myCommand.CreateParameter
returnValue.Direction = ParameterDirection.ReturnValue
myCommand.Parameters.Add(returnValue)
myConnection.Open()
myCommand.ExecuteNonQuery()
result = Convert.ToInt32(returnValue.Value)
myConnection.Close()
Finally
CType(myConnection, IDisposable).Dispose()
End Try
Return result
End Function
and i want to get return value of user id which is main column and primary key with identity specification =yes
i want to get something like this
If Not (Profile.UserId = -1) Then
myContactInfo.UserID = Profile.UserId
[ContactInfoManager].Save(myContactInfo)
[BandEManager].Save(myBandE)
[DPManager].Save(mydp)
Else
Dim returnvalue As Integer = ContactInfoManager.Save(myContactInfo)
Profile.UserId = returnvalue
[BandEManager].Save(myBandE)
[DPManager].Save(mydp)
End If
but when i run the save function i get UserId=0 wich is supposed to be UserId of that contact info table in database...please can anyone help
thank you in advance
appu
modified 20-Apr-17 11:32am.
|
|
|
|