|
Hi everyone !
Im looking for a light wieght "csharp discussion board" for asp.net like the one code project.com is using ive seen a vb script version but its a bit too messy for me, a, nice .net version will do me great. please note i dont want a forum type one only a light version will do me good.
Thanks in advance,
|
|
|
|
|
|
You may try with this[^] .
|
|
|
|
|
hi... i need advice plz.. I'm looking forward to make all the page contents not to make postback .
I used magicAjax but it has some problems .. and the forum of MagicAjax doesn't reply my questions about the "Ajaxpanel" they use.
plz any one reply.. i need to success
|
|
|
|
|
And what is your question?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
thank u very much for answer...
i'm tired from searching over the web for MagicAjax help.
I have 3 main problems with MagicAjax.
1- DataGrid imagebuttons(delete,update,edite,cancel) when (this case when mode in web config ="Nostore")
2- when i click a link button in a regular panel to show another panel
..it doesn't work.
3-when i click the edit button of the datagrid of a pageindex i>0
the index is not preserved ( this case when mode in web config="session")
these r my problems that no one reply to me allways.
|
|
|
|
|
Hi,
I am using datagrid in a datalist. in of the datalist i have put the datagrid. so that when the page is loaded i should see the data of datalist as well as datagrid.
In my datagrid there are 2 button "edit" and "delete".
when i want to edit the record in datagrid i am not able to get the selectede index of the datalist.
how to solve this problem that i should get the selected index of the datalist when i want to edit the item in the datagrid.
*******I do not want to put the datagrid in selected item template of the datalist.**********
thanks in advance...
Deepak
|
|
|
|
|
My problem is as follows:
My DB (Access / SQWLExpress) contains empty fields.
I am using the AccessDataAdapter/SQLDataAdapter with Gridview and Detailsview.
All Textfields of the DB may contain empty strings. CancelselectonNullParameter is set to false.
As soon as a field of a dataset (in the DB) is empty, updates of this dataset is not possible. No error is thrown.
When the dataset does not contain empty fields I am able to update any changes even when I clear this field.
The attribut ConvertEmptyStringToNull="True|False" does not change the behaviour.
Has anybody got an idea?
|
|
|
|
|
Please use DBNull and see if it is working. In cases like yours , we store the query in the string datatype the then send the string to the DB. I am afraid in that cases null is also treated as empty string.
Regards
Deepak
|
|
|
|
|
Thanks deepaks3!
Found the solution. The issue lies within the automatic created queries when configuring the datasource. When updating to an empty field, the original value is compared to a string. This gives an error (without throwing one) in the database and no update is done!!
|
|
|
|
|
Hi,
I am having a lot of problems trying to get a stored procedure on a DB2 database to work.
I tried looking on the web, nothing.... or I am just blind out of frustration.
From what I could see, and my debugging, the code is fine... What happens is, my function runs the following code, and should return a value if successfull. However, when I go view my db2 database, it shows that the Stored Procedure has not run. But from my code, it looks like it did. Anyone who can help me out, PLEASE?
<br />
Dim strSuccess As String = ""<br />
' Create instance of connection and command object<br />
Dim objConn As IBM.Data.DB2.iSeries.iDB2Connection = New iDB2Connection(DB2SP()) 'DB2SP() is connection string in my web.cofig. It does work, as other code use the same string<br />
<br />
Dim objCmd As IBM.Data.DB2.iSeries.iDB2Command = New iDB2Command("A1EXEC.LISTIMPORT", objConn)<br />
<br />
' Mark the command as a SPROC<br />
objCmd.CommandType = CommandType.StoredProcedure<br />
<br />
Dim strDivision As String = "C1"<br />
Dim intPeriod As Integer = 200705<br />
<br />
' Add parameters to SPROC<br />
' just done the basics here, to get it to work<br />
objCmd.Parameters.Add(New IBM.Data.DB2.iSeries.iDB2Parameter("@division", strDivision))<br />
objCmd.Parameters.Add(New IBM.Data.DB2.iSeries.iDB2Parameter("@period", intPeriod))<br />
<br />
' Execute the command<br />
Try<br />
' Open the connection and execute the command<br />
objConn.Open()<br />
objCmd.ExecuteNonQuery()<br />
strSuccess = "SP - Successful"<br />
Catch ex As Exception<br />
Dim strExceptionMsg As String = "Error Executing SP(): " & ex.Message & vbCrLf<br />
Throw New Exception(strExceptionMsg, ex)<br />
Finally<br />
' Close the Connection<br />
If objConn.State = ConnectionState.Open Then<br />
objConn.Close()<br />
End If<br />
objConn.Dispose()<br />
objCmd.Dispose()<br />
End Try<br />
<br />
Return strSuccess
|
|
|
|
|
Mr Apurva Kaushal who resopnded for my last days doubt,
Here for the first time when i select a state that will not display.Same happening in DIvision also.If i select second time all are working properly.so wat to do for this??? a
and i have a code like
Dim cnt As Integer
cmdcnt = New SqlCommand(" Select MAX(Centre_Id) from Division_District where District_Id='" & num & "'", dbConn)
cnt = cmdcnt.ExecuteScalar()
If cnt = 0 Then
cnt = 1
if max is null the nhow to compare that value with ordinary integer.Like Isdbnull() or something.
kissy
kissy
|
|
|
|
|
Kissy16 wrote: Here for the first time when i select a state that will not display.Same happening in DIvision also.If i select second time all are working properly.so wat to do for this??
I don't see any reason why it will not work for the first time. Is the page is getting posted back or simply nothing is happening.
Kissy16 wrote: Dim cnt As Integer
cmdcnt = New SqlCommand(" Select MAX(Centre_Id) from Division_District where District_Id='" & num & "'", dbConn)
cnt = cmdcnt.ExecuteScalar()
If cnt = 0 Then
cnt = 1
ExecuteScalar executes the query and return one value.
Here you can do like this:
cmdcnt = New SqlCommand(" Select MAX(Centre_Id) from Division_District where District_Id='" & num & "'", dbConn)
Dim r As SqlDataReader = cmdcnt.ExecuteScalar()
if(!sqlDataReader.IsDbNull(columnIndex))
Then do the operations here
endif
Best Regards,
Apurva Kaushal
|
|
|
|
|
It doesnt display anything in any other two lists when i clicked on list1,and samething happend if select list2,list3.
If i attempted 2nd time all are working properly.
all the settings are correct.but not working for the first time.
I think the first statement in my selectedchanged event is "list.Items.clear()".Am i correct.For the secondtime it will work but for first time also it clears the list,Isn't it?
wat to do.
-- modified at 6:47 Wednesday 30th August, 2006
kissy
|
|
|
|
|
It doesnt display anything in any other two lists when i clicked on list1,and samething happend if select list2,list3.
If i attempted 2nd time all are working properly.
all the settings are correct.but not working for the first time.
I think the first statement in my selectedchanged event is "list.Items.clear()".Am i correct.For the secondtime it will work but for first time also it clears the list,Isn't it?
wat to do.
kissy
|
|
|
|
|
Kissy16 wrote: t doesnt display anything in any other two lists when i clicked on list1
You have change something in the itemlist to get the event fired.
Kissy16 wrote: think the first statement in my selectedchanged event is "list.Items.clear()"
In your case this is required.
Kissy16 wrote: the secondtime it will work but for first time also it clears the list,Isn't it?
Why is it clearing the list as it will get executed only when you are changing something in the previous control, and in that case it is correct as it is clearing it and again filling it with the new data.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I am using a DataList control, and have a checkbox in it.
There is also a button whihc performs a certain action on the basis of which all check boxes are checked.
Now i want to validate on the click of the button that if no check box is checked then it should not do anything.
How can it be possible with JavaScript. (Client Side validation)
I basically want no postback to happen so that unnecessary server trip is avoided.
Thanks in advance.
Deepak Surana
|
|
|
|
|
What you need to do in javascript is to check the checkboxes whether they are checked or not.
Like this:
if(CheckBox1.checked)<br />
{<br />
alert("checked");<br />
}<br />
else<br />
{<br />
alert("not checked");<br />
}
Best Regards,
Apurva Kaushal
|
|
|
|
|
This can work if there is only one check box, but i have a list of checkboxes..
|
|
|
|
|
In this case what you can do is to take a boolean value and iterate through all the checkboxes and if you get any checkbox checked then make the boolean value and then later just check the value and do the operation.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Can you please tell me how to write that function and where to call it.
Thanks.
|
|
|
|
|
Hi!
Ive got a problem with debugging my asp.net application. Everytime I start the debugger the studio starts loading files from c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net, and this takes absolute ages, sometimes up to 10 minutes. But if I start debugger again without doing changes in code the loading time is instead a few seconds. Why does this take so long, and is there anything I can do to shorten the time it takes to load the temp files?
/regards Magnus
-- modified at 2:04 Friday 1st September, 2006
|
|
|
|
|
Remove all the temporary files and see.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks for your response Apurva
Sadly I´ve already tried this to no avail. Loading times remains unchanged.
/regards Magnus
|
|
|
|
|
Hi, Magnus.
...maybe your harddisk is broken.
I've had the similar behaviour some time ago (but with another app), and it turned out the harddisk was the problem.
Regards
Jürgen
|
|
|
|