|
OrsaPoison wrote: MyPage.ashx?blahblahblah=blahblahblah&/&14 does enter debugger.
MyPage.ashx?blahblahblah=blahblahblah&/& does not enter debugger.
In your second example the you have & which is query string delimiter. May be it that is the issue?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
If I upgrade a VS2005 website, or just view a VS2005 in 2008 without converting, code-behind pages reflect page/controls so that I can use the pull-down to select a page or control and then the declarations pull-down reflects the appropriate events for the selection on the left pull-down.
I created a new VS2008 website in verison 3.5 for Ajax. How do I get the page and other controls to appear in the VS2008 code behind interface?
Thanks, jb
|
|
|
|
|
Just unchecked at project loading
shahdat
|
|
|
|
|
What was unchecked? I have five projects - only the new one created in VS2008 has this problem.
|
|
|
|
|
I am working on online examination project. I face a problem during the databe contain no. of question wth its four option.
how can fetch record in formview cointaing label & radiobuttonlist from database in random order.
if i am select on option, how it can compare wuth correct option.
So plese help me with any sample program or any demo project..... on my email id sanz_smady@rediffmail.com
|
|
|
|
|
First, you don't access a database with ASP.NET. ASP.NET is for creating web applications. ADO.NET is the part of .NET that is concerned with databases.
smady18 wrote: how can fetch record ... from database in random order
To return rows from a database in random order use something like ORDER BY NEWID() (assuming you are using SQL Server)
smady18 wrote: if i am select on option, how it can compare wuth correct option.
Presumably you know which is the correct option already. Check that the ID for the radio button group being returned matches the ID of the correct answer. (Of course, this assumes much about how you have designed your database)
smady18 wrote: on my email id...
No. If you want an answer it stays on the forum. That way everyone benefits.
|
|
|
|
|
In wizard control,how pass one step to another by clicking next button after satisfying
a specific condition say,if(name=="ahsa"){}?
Plz help.
shahdat
|
|
|
|
|
How can i detect, that the select submitted the form?
when i do this:
|
|
|
|
|
View the source of your page to see the script that ASP.NET generates, and that you need to call.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I have a Web Form (VB) that a user can bring in data based on drop down boxes. If the data in the grid needs changed, then the user can click on the edit button for the row and make a change. The problem is, that the change is not reflected in the DB. I know that I am missing something somewhere.
This fills the Grid with the info that the user has selected:
Dim sql As String = "SELECT ID FROM TEST"
Dim da As New OleDbDataAdapter(Sql, Con)
Con.ConnectionString = connString
Con.Open()
da.Fill(ds, "Events")
GridView1.DataSource = ds
GridView1.DataBind()
count = ds.Tables("Events").Rows.Count
Con.Close()
This is the update that I am trying to use:
Dim sql As String
sql = "UPDATE TEST SET ID = @ID WHERE (ID=@ID)"
Using con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\WebSite1\App_Data\ODRT.mdb")
Using cmd As New OleDbCommand(sql, con)
cmd.CommandText = sql
cmd.Parameters.AddWithValue("@ID", ID)
con.Open()
cmd.ExecuteNonQuery()
con.Close()
GridView1.EditIndex = -1
DataBind()
End Using
End Using
Any Ideas???
Thanks,
Chilly
|
|
|
|
|
chilly442 wrote: cmd.Parameters.AddWithValue("@ID", ID)
what is the value of ID? did you debug it to see you are using the right value?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
The value that is returned is "__Page" . It should be an assigned number.
|
|
|
|
|
chilly442 wrote: The value that is returned is "__Page"
there you have your problem
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
How do I fix the problem. What is this telling me? I have never done an update in gridview before.
|
|
|
|
|
How are you getting the value of ID, show us the your code
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Here is the code that I am using on the front end:
<asp:GridView
ID="GridView1"
runat="server"
Font-Size="X-Small"
Font-Names="Arial"
AutoGenerateColumns="False"
OnRowEditing="GridView1_RowEditing"
OnRowUpdating="GridView1_RowUpdating"
OnRowCancelingEdit="GridView1_RowCancelingEdit"
OnRowDataBound="GridView1_RowDataBound" BorderColor="Black">
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"/>
</Columns>
</asp:GridView>
Here is the code that I am using on the back end:
Dim sql As String = "SELECT ID FROM TEST"
Dim da As New OleDbDataAdapter(Sql, Con)
Con.ConnectionString = connString
Con.Open()
da.Fill(ds, "Events")
GridView1.DataSource = ds
GridView1.DataBind()
count = ds.Tables("Events").Rows.Count
Con.Close()
Dim sql As String
sql = "UPDATE TEST SET ID = @ID WHERE (ID=@ID)"
Using con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\WebSite1\App_Data\ODRT.mdb")
Using cmd As New OleDbCommand(sql, con)
cmd.CommandText = sql
cmd.Parameters.AddWithValue("@ID", ID)
con.Open()
cmd.ExecuteNonQuery()
con.Close()
GridView1.EditIndex = -1
DataBind()
End Using
End Using
Chilly
|
|
|
|
|
chilly442 wrote: cmd.Parameters.AddWithValue("@ID", ID)
where are you getting/setting ID?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Maybe that is the problem. I am not sure. Where should I be doing it? How should it look?
|
|
|
|
|
I have no freaking clue. You have the code, not me.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Why ask all the questions then???
|
|
|
|
|
chilly442 wrote: Why ask all the questions then???
Look, we all do this because we love to help. But I can't do your work. It is expected you will be doing most of the heavy lifting.
I asked you where is ID set and how is it set. You said you don't know. Well, what the hell do you want me to do then? I don't have an access to your source code. I am blindly debugging your code, heck you were suppose to debug your code in the first place. If you have slight idea of how to debug, you would not have run into this in the first place.
Now get your arse off that chair get a decent book and learn the fundamentals of programming, before asking such trivial questions.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I provided all the code that deals with this problem. I do know how to debug. There is no value getting passed to ID. We have already established that. My question is how to set ID. Not asking for a miracle. Just a bit of experience. You are here to help, and I am here to learn. I don't want you to do the work for me, just help to guide me in the right direction.
Chilly
|
|
|
|
|
chilly442 wrote: You are here to help, and I am here to learn. I don't want you to do the work for me, just help to guide me in the right direction.
Look as long as you are willing to learn, people here will be more than happy to help you. I like the fact that you came back after my earlier post. But you need to understand that, if you don't have the fundamentals of the programming, you will find it very hard to get learn just by posting questions. You need to bring up yourself to speed by reading books.
chilly442 wrote: I do know how to debug.
well what else can I say?
chilly442 wrote: There is no value getting passed to ID. We have already established that. My question is how to set ID. Not asking for a miracle.
You said that ID have a value of __Page. Where did that came from? Look all over the place where ID is used.
You can not simply set ID. You need to know what to set it to. I can't tell you what to set it to, because I have no freaking clue of your code.
Start with looking all the places where ID is used. then try to understand what is going on.
How to debug asp.net applications[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I had to go somewhere else to get help with this question.
I have the solution working.
Thanks
|
|
|
|
|
wow, it has been more than two months. Did you learn and solve the problem by yourself or you asked people to give you the solution?
|
|
|
|