|
Thanks for the quick response. I think since I’m using WebBrowser control in my C# dll I can use the ObjectForScripting method to pass what I need from the javascript.
Thanks again
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|
|
Glad I could help!
|
|
|
|
|
Glad I could help
|
|
|
|
|
New to devlopment with VS.net, I created a very basic page that should query a database and return some data. It works fine on the development station but when I run it on the server it does not appear to work. The screen appears to refresh but nothing else happens. In my feeble attempt to degug I added a simple button and added the following code:
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
lblNotes.Text = "Test"<br />
End Sub
This also appears to work on the workstation, but not on the server.
How can I chase this down? I know this may be a simple question but I am self teaching myself and little things like this appear to be my biggest challenge....
|
|
|
|
|
Did you compile in debug mode? Only then PDB files are created.
|
|
|
|
|
How did you deploy the solution to the server?
|
|
|
|
|
Thanks for the response, the solution is set to build in debug mode, deploying to the server is esssentially a copy of the project on the server, not sure if that is teh right way or not.
|
|
|
|
|
Hi!
I have a problem, i am programming a datagrid in asp.net under webmatrix, only is a connection to access database and show this query in a datagrid, every very good exception for the query pagination.
How i can allow what, if the user press a number of page from query, then the asp change the query result to the number page?, attach the code because not work this section, thanks very mucho for you help.
---------------------------------------------------------------------------------------------------------
Private connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\lo que se va a estar respaldando\mio\my_access_db.mdb"
Private dbConnection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
Private dbCommand As System.Data.IDbCommand = New System.Data.OleDb.OleDbCommand
private dataAdapter As System.Data.IDbDataAdapter = New System.Data.OleDb.OleDbDataAdapter
private dataSet As System.Data.DataSet = New System.Data.DataSet
'/////////////////////////////////////////
Sub cmdQuery_Click(sender As Object, e As EventArgs)
If Len(Trim(txtSQLQUery.Text)) > 0 Then
SQLProcesss(Trim(txtSQLQUery.Text))
Else
MsgBox("No SQL Query string ingresed!", vbCritical, "Error")
End If
End Sub
'/////////////////////////////////////////
Sub SQLProcesss(SQLCommand)
dbCommand.CommandText = SQLCommand
dbCommand.Connection = dbConnection
dataAdapter.SelectCommand = dbCommand
dataAdapter.Fill(dataSet)
dgData.DataSource = dataSet.Tables(0)
dgData.DataBind()
MsgBox(Str(dataSet.Tables(0).Rows.Count) + " rows found!", vbInformation, "Query")
End Sub
'/////////////////////////////////////////
Sub cmdClear_Click(sender As Object, e As EventArgs)
txtSQLQuery.Text = ""
End Sub
Sub dgData_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs)
'This section not change the query results to the number page
dgData.PageIndexChanged = new DataGridPageChangedEventHandler(this.dgrdDepartments_PageIndexChanged)
End Sub
Cuando salga el sol, no estare aqui...
|
|
|
|
|
Check for IsPostBack before databinding again.
|
|
|
|
|
hi,
i am using Visual Web Development 2005.hav created an apps using vb.
i hav used a login control and password recovery control.how to send e-mail regarding the password to the user? i hav configured my smtp connection even
i get the following error,
An established connection was aborted by the software in your host machine
why is it so? what i need to do fopr this?
zari
|
|
|
|
|
|
In my Webpage, I hav added one check box.that value will be stored in the database as a bit.i have to retrieve the value as string.Is anybody know it pls post it
|
|
|
|
|
Dim ds as DataSet = SqlHelper.ExecuteDataSet(..........)
Dim str as String = CType(ds.Table(0).Rows(0)(1),String)
Note: ds.Table(0).Rows(0)(1) is the column (bit) of your table.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
The answer that I posted previously is for converting the bit field of datacolumn to string..
I have no idea about "How to get the ceckbox value in to an Excel File"
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|
|
Hi there,
I want to pass an array as an hidden field of html that is created in php. i.e.
$moduleList[0] = "abc";
$moduleList[1] = "xyz";
$htmlString = "<input type='hidden' id = 'moduleListForComboProjectList' name='moduleListForHiddenComboProjectList' value=$moduleList>";
Now, I am sending this to HTML and in html I got following:
<input type='hidden' id = 'moduleListForComboProjectList' name='moduleListForHiddenComboProjectList' value=Array>
And now I am fetching value of that hidden field from javascript
moduleArray = document.getElementById("moduleListForComboProjectList").value;
alert ("array = " + moduleArray);
then I got "array = Array" but as I want fetch data by loop then it is not giving me proper result. It is taking Array as a string.
can you please tell me how can I get the passed values from php????
|
|
|
|
|
You cannot print an array to HTML. You could just turn it into a CSV format (by using the "foreach" function but that is it.
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
Hi Bradml,
How are you?? ,
I don't want to print the array, I just want to create options of a combo at runtime. Can you please How I can I follow your suggession?? "You could just turn it into a CSV format (by using the "foreach" function but that is it" Can you give me some exampl??
|
|
|
|
|
I'll just give you a little piece of code I think would be useful to this example so that you can see what I am talking about:
public function list_of_numbers($from, $to, $selected=null, $aslist=false){
$list='';
while ($from <= $to) {
$list .=$from . "\n";
$from++;
}
if ($aslist) {
return $list;
}else{
$arrayofages = array_diff(explode("\n",$list), array(""));
$newlist = null;
foreach ($arrayofages as $key=>$age){
$string = '';
$string = "<option value=\"$age\"";
if ($age == $selected) {
$string.=' selected="selected"';
}
$string .= '>'. $age."</option>\n";
$newlist .= $string;
}
return $newlist;
}
}
Brad
Australian
- Captain See Sharp on "Religion"
any half intelligent person can come to the conclusion that pink unicorns do not exist.
|
|
|
|
|
I believe what you should use a cicle for to make the hidde fields and assign the values, where each field have a value from php array, sure, each hidde field have a name moduleListForComboProjectList + consecutive and the value property must contained the array value, then when you call this field should show this property.
Cuando salga el sol, no estare aqui...
|
|
|
|
|
Hi thank you for your reply first,
I am passing multiple array at single time from php and also generating multiple hidden fields with different name at runtime. I have to take those values to add options in select combo. So I can not do such a thing that I generate multiple hidden fields for a single array.
So please if you have any othe way then tell me.
|
|
|
|
|
Hi all,
I have to apply css to file Upload control of ASP.NET 2.0.
I need apply css to textbox and the button.
Please tell me how to do this.
Thanks in advance.
|
|
|
|
|
|
Firstly its not the ASP.NET file upload control that your applying styles to - its the resulting HTML <input type="file" /> element thats getting styled. (and hence the question is actually quite appropriate for this forum)
This is in fact very tricky - its one of the few elements that doesn't support a lot of common CSS styling methods. Heres one solution: http://www.quirksmode.org/dom/inputfile.html or a google search on "styling file input" turned up quite a few examples.
|
|
|
|
|
Hi all,
can we develop some webpages using C# and some using VB.Net in one project??
thaks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
>>can we develop some webpages using C# and some using VB.Net in one project??
NO.. (AFAIK)
but you can use different languages for different layers.(eg: Business Object, Entity, Data Layer and etc.)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message. Thank you.
|
|
|
|