|
I have created one webservice which contains some webmethds . It will compile successfully.
Once I modify the Default.asmx.cs file , for example add a new WebMethods,Update the WebMethods , the WSDL doesn't generate the new one. It will show the old one.
Pls give the solution ASAP.
Advance Thanks
jayaraj.r
|
|
|
|
|
jayarajmrj wrote: Once I modify the Default.asmx.cs file , for example add a new WebMethods,Update the WebMethods , the WSDL doesn't generate the new one.
You need to re-compile the WebService again. Then, Update the WebService or Generate the proxy by using wsdl webserviceURL -language:C# in command prompt.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hi friends
what is themes and skins asp2.0
what is the differnce between to this
saravan
|
|
|
|
|
MSDN: ASP.NET Themes and Skins Overview
Themes and Control Skins
Themes are made up of a set of elements: skins, cascading style sheets (CSS), images, and other resources. At a minimum, a theme will contain skins. Themes are defined in special directories in your Web site or on your Web server.
Skins
A skin file has the file name extension .skin and contains property settings for individual controls such as Button, Label, TextBox, or Calendar controls.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi i convert some c# code to vb.net format,
But i am getting error in one place...,
Plz see this code:
This is C# code:
String addData = "INSERT INTO Ords (OrderId, CustomerId, ShipName, ShipCity) VALUES ('" +
Guid.NewGuid() + "','" + new Guid(e.CommandArgument.ToString()) + "','" + txtAddShipName.Text.Trim() + "','" + txtAddShipCity.Text.Trim() + "')";
After convert to Vb.net format:
Dim addData As String = ("INSERT INTO Ords (OrderId, CustomerId, ShipName, ShipCity) VALUES ('" _
+ (Guid.NewGuid) + "','" _
+ (New Guid(e.CommandArgument.ToString)) + "','" _
+ (txtAddShipName.Text.Trim) + "','" _
+ (txtAddShipCity.Text.Trim) + "')")
Whats the probs in thsi code?,
I have mentioned wher i get probs that is in bold letters...,
Regards,
Magi
|
|
|
|
|
try this:
Dim addData As String = "INSERT INTO Ords (OrderId, CustomerId, ShipName, ShipCity) VALUES " & _
"('" & (Guid.NewGuid) & "'," & _
" '"& (New Guid(e.CommandArgument.ToString)) & "'," & _
" '" & (txtAddShipName.Text.Trim) & "', " & _
" '" & (txtAddShipCity.Text.Trim) & "')"
|
|
|
|
|
No its giving same place error...,
Regards,
Magi
|
|
|
|
|
hey,
try it,
Private addData As String = "INSERT INTO Ords (OrderId, CustomerId, ShipName, ShipCity) VALUES ('" + Guid.NewGuid
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
The Converter gives me this ~
Dim addData As String = "INSERT INTO Ords (OrderId, CustomerId, ShipName, ShipCity) VALUES ('" & Guid.NewGuid() & "','" & New Guid(e.CommandArgument.ToString()) & "','" * txtAddShipName.Text.Trim() & "','" & txtAddShipCity.Text.Trim() & "')"
What error you are getting? at runtime or design time? Show us the error message.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
|
is there any way on how to kill a server process? because it happened 2 times, it displays an error with "too many connections".
anybody knows how to tackle this? Really nee help here.
Thanks in advance!
|
|
|
|
|
it may be happening bcz u r not closing the connection after doing the operation
killing the server process may not be a good idea in any case
|
|
|
|
|
i have installed ASPAJAXExtSetup and i my form in update panel am placing two dropdownboxes. first one contain countries and second one contain states.when i select a country, in second combobox i need to fill all the states in the selected country.
i am writing the function to take state from database in codebehind file.how can i call that function from javascript function when i click select country from first dropdown box .how can i do this? can anyone help me?................
|
|
|
|
|
Demo
Source code
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Dear Experts,
I have a shopping card. I want to support to my customer to change a template, change font and color.
Could you tell me some solutions to solve that problem.
If you have any references or source codes, please show me!
Thank you in advance
vtkiet05
|
|
|
|
|
Hi,
I am storing the checkboxlist items as comma seperated values in a row. My problem is during updation of those values. When i bind the values to the checkboxlist i want to display all items but only those items have to be checked which are present in the row.
For inserting i am using the followng code,
Dim sqlstr As String
Dim str As String = ""
If dbconn.State <> ConnectionState.Open Then
dbconn.Open()
End If
For Each item As ListItem In CheckBoxList1.Items
If item.Selected = True Then
If str = "" Then
str = item.Text
Else
str = str & "," & item.Text
End If
End If
Next
sqlstr = "insert into test(c1) values(@c)"
Dim comm As New SqlCommand(sqlstr, dbconn)
comm.Parameters.Add("@c", SqlDbType.Char, 10).Value = str
Try
comm.ExecuteNonQuery()
Label1.Visible = True
Label1.Text = "Success"
Catch ex As Exception
Label1.Visible = True
Label1.Text = ex.ToString
End Try
|
|
|
|
|
n_gchaitra wrote: My problem is during updation of those values.
I'm not sure what problem you are facing... Can you tell us more about the problem you are facing and what you wanna do?
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Michael, I have around 20 items in which only checked items have to stored. It is working fine. When i want to update that obviously i have to see all those twenty items. Here i want to them to compare with the items present in the table and the matching rows have to get checked.
Chaitra N
|
|
|
|
|
Is that what you want?
Listbox.DataSource = Database.GetAllItems(); <br />
Listbox.DataBind();<br />
<br />
string[] storedValues = Database.GetStoredItems().Split(",");<br />
<br />
foreach(string val in storedValues){<br />
foreach ( ListItem itm in ListBox1.Items ){<br />
if(itm.Value == val){<br />
itm.Checked = true;<br />
}<br />
}<br />
}<br />
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Michael I am afraid i did not understood what is "Database" in
Listbox.DataSource = Database.GetAllItems();
Listbox.DataBind();
string[] storedValues = Database.GetStoredItems().Split(",");
The code i am using to bind the values are as follows. This works fine. I want only matching values to get checked. Can u help me please?
Dim constr As String = ConfigurationSettings.AppSettings("conn")
Dim dbconn As New SqlConnection(constr)
Sub bind()
Dim sqlstr As String
sqlstr = "select software from list where sno='" & txtsno.text & "'"
Dim comm As New SqlCommand(sqlstr, dbconn)
Dim dr As SqlDataReader
If dbconn.State <> ConnectionState.Open Then
dbconn.Open()
End If
dr = comm.ExecuteReader
While dr.Read
CheckBoxList1.Items.Add(dr.Item(0).ToString)
End While
dr.Close()
End Sub
Chaitra N
|
|
|
|
|
Database should be a helper class that return the dataset after retrieving the data from database.
n_gchaitra wrote: I want only matching values to get checked.
What you meant is that there are the values (1,2,3) in database. There are 5 items (1,2,3,4,5) shown in ListBox. After retrieving the data (1,2,4) from database, you want the items (1,2,3) to be checked. Is it what you want?
Let's Database.GetAllItems(); will return all data (1,2,3,4,5) from database.
this method Database.GetStoredItems() will return all saved value as a comma seperated value (eg: 1,2,3)
eg:
public class Database{<br />
public static string GetStoredItems(){<br />
return str;
}<br />
public static DataSet GetAllItems()(){<br />
return ds;
}<br />
}
then, bind it to Listbox. (So, 1,2,3,4,5 will be shown in Listbox. )
<br />
Listbox.DataSource = Database.GetAllItems();<br />
Listbox.DataBind();
then, get the saved values from database. (In our case, we will get "1,2,3"). Split to string array. loop through the listbox and string array to find the match. If match found, we set itm.Checked = true;
string[] storedValues = Database.GetStoredItems().Split(",");<br />
<br />
foreach(string val in storedValues){<br />
foreach ( ListItem itm in ListBox1.Items ){<br />
if(itm.Value == val){<br />
itm.Checked = true;<br />
}<br />
}<br />
}
Is the way I understand correct?
Hopefully, you got my point...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
i am getting "System.Data.DataRowView " error. I tried to write the function in the same class but still getting the same error.
Dim constr As String = ConfigurationSettings.AppSettings("conn")
Dim dbconn As New SqlConnection(constr)
Sub bind1()
CheckBoxList1.DataSource = GetAllItems()
CheckBoxList1.DataBind()
Dim storedValues As String() = Database.GetStoredItems().Split(",")
For Each val As String In storedValues
For Each itm As ListItem In CheckBoxList1.Items
If itm.Value = val Then
itm.Selected = True
End If
Next
Next
End Sub
Public Function GetAllItems() As DataSet
Dim ds As New DataSet()
Dim sqlstr As String = " select list from AList"
Dim comm As New SqlDataAdapter(sqlstr, dbconn)
comm.Fill(ds)
'Return those data as DataSet
Return ds
' 1,2,3,4,5
End Function
Public Function GetStoredItems() As String
'Get the data from Database
' Dim dbconn As New OleDb.OleDbConnection("provider=sqloledb;user id=sa;password=;trusted_connection=yes; initial catalog=wfphumanet;data source=localhost")
Dim ds As New DataSet()
Dim str As String = " select c1 from test where sl='" & TextBox1.text & "'"
'Return those data as comman seperated value
Return str
' 1,2,3
End Function
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
bind1()
End Sub
Chaitra N
|
|
|
|
|
n_gchaitra wrote: CheckBoxList1.DataSource = GetAllItems()
CheckBoxList1.DataBind()
Change like that ~
<br />
CheckBoxList1.DataSource = GetAllItems().Tables(0)<br />
CheckBoxList1.DataValueField = "list"<br />
CheckBoxList1.DataTextField = "list"<br />
CheckBoxList1.DataBind()
Full Code Sample
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
<br />
CheckBoxList1.DataSource = GetAllItems().Tables(0)<br />
CheckBoxList1.DataValueField = "Num"<br />
CheckBoxList1.DataTextField = "Num"<br />
CheckBoxList1.DataBind()<br />
<br />
Dim storedValues As String() = GetStoredItems().Split(",")<br />
For Each val As String In storedValues<br />
For Each itm As ListItem In CheckBoxList1.Items<br />
If itm.Value = val Then<br />
itm.Selected = True<br />
End If<br />
Next<br />
Next<br />
<br />
End Sub<br />
<br />
Public Function GetAllItems() As DataSet<br />
Dim ds As New DataSet()<br />
<br />
Dim dt As New DataTable()<br />
Dim dc As New DataColumn("Num")<br />
dt.Columns.Add(dc)<br />
<br />
For i As Integer = 1 To 5<br />
Dim dr As DataRow = dt.NewRow()<br />
dr(0) = i<br />
dt.Rows.Add(dr)<br />
Next<br />
<br />
ds.Tables.Add(dt)<br />
Return ds ' 1,2,3,4,5<br />
End Function<br />
<br />
Public Function GetStoredItems() As String<br />
Return "1,2,3"<br />
End Function<br />
<br />
Hope it helps..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
But Michael it returns only the values present in a table where i am storing all the values.
See i put my requirement in another way.
For the subscription of a website i enter some area of interest in checkboxes. Suppose if i want to modify them(addition or removal), i need to see all the options(area of interest) as well a which i had selected. All the values options will be present in one table and when i request the page it displays all the options and the options i had chosed previously have to be checked.
Let say i am storing all the options in a table "Options" in the column "Interest" and when i select them i will store the values in the table "Web" which has the columns "Email" And "Area_Of_Int".
Chaitra N
|
|
|
|
|
Hi,
I was wondering whether is it possible for me to remove the Master Page that was previously attached to one page in the program.
For example, when some criterias are met, I want the Master Page to off from the page so that I don not need to create another same aspx page without the Master Page.
Thanks in advance.
J Liang
|
|
|
|
|