|
pmarfleet wrote: isn't acceptable to post messages on the forums asking for code without demonstrating that you have made a serious attempt to solve the problem yourself
Agree totally. What is so hard about trying and getting stuck, then asking?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
You know how to get the data from database, right? so, get the data from database. loop the recordset and write the data on your page... but if you are looking for some reports like crystal report, I think it is not available in ASP.
|
|
|
|
|
kankeyan wrote: Please its urgent.
That only pisses people off around here. I'd suggest having some patience.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
kankeyan wrote: Please its urgent.
Of COURSE it is.
Are you using ASP, or ASP.NET ? This is the ASP.NET forum, and you said ASP.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Can we Write GET,Set Property in WebServices?
I create One Property .in Webservice...
I Want to Access that Property in Client App...
Is it Possible???
|
|
|
|
|
When you want to expose your custom made business objects through a webservice interface, and you want them to bind with a DataGrid, you have a problem that the generated proxy class exposes fields instead of properties. A possible solution is to generate at runtime, a wrapper for your proxy class.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Treat a web method as a property in a web-service. Web Methods will expose all your objects to your client for consumption, but make sure that you declare those objects in your service class in order to expose them as return objects.
Daniel Minnaar
.NET Solutions Architect
|
|
|
|
|
It is possible - with limitations. Effectively a property is just a set of special methods marked as get_ and set_ such as:
private int _item;
public int get_Item()
{
return _item;
}
public void set_Item(int value)
{
_item = value;
} A limitation though is that a web service is stateless, so you need to be careful how you maintain the state.
|
|
|
|
|
I want conversion of url from Http:/ to Https:/ when particular user login
-- modified at 7:35 Saturday 1st December, 2007
|
|
|
|
|
Why?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
just want to redirect? then, use response.redirect to redirect your page to https:
|
|
|
|
|
You just do a redirect.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Some users are secure and some are not ? What on earth for ?
The trick with https is, all relative urls remain https, so you need absolute urls to break out of it. Otherwise you can create a https section on your site and find that people stay in https for the rest of their visit.
Christian Graus - Microsoft MVP - C++
"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
sorry for reposting
my need is to passing asp.net arraylist values to javascript
i succeed in that but my problum is to how can i display all array values of asp.net
example
--------------
i am adding like this (in javascript)
var customarray=new Array('<% response.write(session("Q")) %>');
it is showing only 1 value how can i show all the array values (only .aspx page not in .vb)
Than Q
Keerthi
|
|
|
|
|
Why are you reposting? Your previous thread is only a few hours old. Spamming the forum with the same question over and over will only annoy people.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Well said Guffa.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hello,
I have 2 dropdownlist A and B
When I select from A, I get the B list according to A selection.
I done it implementing callback process.
This work fine.
In addition, I have a button in my form that after clicking it , I fill a gridview according to A nd B selections.
The problem is that after clicking on the button, the B dropdownlist is empty, the postback action empty my B dropdownlist.
How can I fix this problem.
Here is my code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim dt As DataTable = GetCategory()
Dim dv As DataView = dt.DefaultView
cmbCategory.DataSource = dv
cmbCategory.DataTextField = "PROFCAT"
cmbCategory.DataValueField = "PROFID"
cmbCategory.DataBind()
cmbCategory.Attributes.Add("onchange", "GetChildren(this.options[this.selectedIndex].value,'ddl');")
Dim callBack As String = Page.ClientScript.GetCallbackEventReference(Me, "arg", "ClientCallback", "context", "ClientCallbackError", False)
Dim clientFunction As String = "function GetChildren(arg,context){ " + callBack + "; }"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "GetChildren", clientFunction, True)
End If
End Sub
Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
Dim dt As DataTable = GetSubCategory(eventArgument)
Dim dv As DataView = dt.DefaultView
Dim sb As New StringBuilder()
For i As Integer = 0 To dv.Count - 1
sb.Append(dv(i)("SUBPROFID"))
sb.Append("^")
sb.Append(dv(i)("SUBPROFCAT"))
sb.Append("|")
Next
_callbackArg = sb.ToString
End Sub
Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult
Return _callbackArg
End Function
Private Function GetCategory() As DataTable
Dim dt As DataTable = DirectCast(Cache("Category"), DataTable)
If dt Is Nothing Then
Dim connection As New OleDbConnection(connectionstring)
Dim command As New OleDbCommand("SELECT PROFID, PROFCAT FROM PROFESSION ORDER BY PROFCAT", connection)
command.CommandType = CommandType.Text
Dim da As New OleDbDataAdapter(command)
dt = New DataTable
Try
connection.Open()
da.Fill(dt)
Cache.Insert("Category", dt, Nothing, DateTime.Now.AddHours(6), TimeSpan.Zero)
Finally
connection.Dispose()
command.Dispose()
da.Dispose()
End Try
End If
Return dt
End Function
Private Function GetSubCategory(ByVal eventargument As String) As DataTable
Dim connection As New OleDbConnection(connectionstring)
Dim command As New OleDbCommand("SELECT SUBPROFID, SUBPROFCAT FROM SUBPROFESSION WHERE PROFID=" & eventargument, connection)
command.CommandType = CommandType.Text
Dim da As New OleDbDataAdapter(command)
Dim dt As New DataTable
Try
connection.Open()
da.Fill(dt)
Finally
connection.Dispose()
command.Dispose()
da.Dispose()
End Try
Return dt
End Function
Protected Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
'When clicking this button, postback occur and B dropDownList is beeing empty
end Sub
'''''''''''''''''''''''''
// <!CDATA[
function ClientCallback(result, context){
var subcategory = document.forms[0].elements['<%=CmbSubCategory.UniqueID%>'];
if (!subcategory){
return;
}
subcategory.length = 0;
if (!result){
return;
}
var rows = result.split('|');
var option = document.createElement("OPTION");
option.innerHTML = "בחר...";
option.value= "-1";
option.style.color = 'blue';
subcategory.appendChild(option);
option= document.createElement("OPTION");
option.innerHTML = "הכל";
option.value= "0";
option.style.color= "purple";
subcategory.appendChild(option);
for (var i = 0; i < rows.length-1; ++i){
var values = rows[i].split('^');
var option = document.createElement("OPTION");
option.value = values[0];
option.innerHTML = values[1];
subcategory.appendChild(option);
}
}
function ClientCallbackError(result, context)
{
alert(result);
}
// ]]>
Thank you for help
Shay Noy
|
|
|
|
|
You should only post the code where you suspect the problem is. Not the whole thing.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Thank you!
I though that the code may be useful for other users who want to use callback.
So, here is my problem:
I have 2 dropdownlist A and B
When I select from A, I get the B list according to A selection.
I done it implementing callback process.
This work fine.
In addition, I have a button in my form that after clicking it , I fill a gridview according to A nd B selections.
The problem is that after clicking on the button, the B dropdownlist is empty, the postback action empty my B dropdownlist.
How can I fix this problem.
Shay Noy
|
|
|
|
|
i want to detect slang word from sentence by vb script and this slang word will be findout from access database how is it possible?
Please help me.
|
|
|
|
|
herodhk wrote: access database how is it possible?
Start by creating an Access database that is a dictionary of slang words...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
i have already a slang word Access dictionary. Ok i clear my problem with a one example.
example is ....
the sentence is "you are a dogboy." ...
here "dog" will be the slang word and how can i detect dog word form this sentence...
please help me
|
|
|
|
|
i am having one gridview in my application where i am displaying one linkbutton column in it. By clicking on the link some xxxx.wav will be downloaded and directly played in the media player.
Code:
<ItemTemplate>
<a href='feedback/<%#Eval("Filename")%>' target="_self"><%# Eval("FeedbackTitle") %></a>
</ItemTemplate>
what i want is, to show some xxx.gif image to the user at the time of downloading it will be useful for larger files.
if anybody has a solution for this please do let me know.
with warm regards
sunilwise
|
|
|
|
|
I upload a site but it display an error "Object reference not set to an instance of an object".In my class
it display an error in these lines
Dim st As String = ConfigurationSettings.AppSettings("str")
Line 9: Public con As New MySqlConnection(st)
How can i solve this problem.I am using mysql dataconnection.
|
|
|
|
|
I'd guess that your problem is that the config file is not set up properly, and your code doesn't check for nulls.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|