Type: Posts; User: lmf232s
Search took 0.06 seconds.
While e.row.rowtype does not work in your instance there is a way once you have got your rows to determine the type of row. Off the to of my head I do not know the exact syntax.
The problem is...
I would also look at creating either a windows service or a scheduled task. You can write a simple .vbs file for the scheduled task or you can create an .exe that will handle calling the db (if you...
if the code that your going to put in the click event needs to be called and executed from other parts of your application or code then I would suggest wrapping the code in the ClickEvent in its own...
I believe this is what your after for the Dynamic Data:
Not sure which version of .net your using but if your on 3 or 3.5 then you can use this example which uses LINQ and will avoid the enumeration issue your having:...
the gridview has a rows collection that you can use to loop through each row. As well there is a property of the gridview that you can set that will hold the 'KeyId' of the row. I believe its DataKey...
you can create a connection to the excel sheet just like you do a database. Once you have your connection you can iterate the rows and columns.
why cant you save the username to the database?
What problems are you havings?
Thats correct, along with other options such as:
Using Stored Procedures (like disgracian mentioned)
Validating your data. If your expecting an integer make sure its an integer or any other data...
This is a pretty big subject and russell has a good post on this:
I think the first link that he posts is a pretty good.
If you do...
Dont understand the question.
If your referring to the downloads on the asp.net website then:
Microsoft AJAX Library 3.5 - control toolkit for .net 3.5 VS2008
Microsoft ASP.NET 3.5 Extensions...
Installing the extensions is pretty simple and straight forward. The biggest thing you will have to do is modify your web.config. Other than that you just need to copy the .dll into your...
It sounds like this is what your looking for.
Its written with .net 3.5 and sql server 2008 I believe.
The source code is available at: CodePlex
I like to get it by Id rather than name. But for your problem you may want to look at the source code of the page. If you have a master page or anything then its possible that the name of your...
I dont quite follow as it your just setting the text of a linkbutton to be that of the order number but if it works then it works. Maybe I didn't understand your origianal question and was over...
Do need to see some code. Im interested in your page load.
I assume your doing something in your page load like setting the sessions and if so you would need to do something like this so that...
I am assigning the value of the row to the button but for a different reason than you mention. By assigning the row index to the button it allows me to easily get the Id of the column that is...
Your not going to be able to bind data to 3 different controls with 1 call. The only way I can see that hapening is by calling a function passing in the 3 values and then explicitly...
Create a variable and set your sql statement to that. Then you can just do a repsonse.write
Dim sSQL as String = "SELECT [POSTCODE] from schools_details1 WHERE [REF] = '" & reference & "'"
From what I have read I believe there is a better way to accomplish what you want. It seems that your just trying to set the KeyId of the record to the CommandField.
If this is...
I assume your binding your data in the pageload sub and that your not checking for a post back. If so try this
If Not Page.IsPostBack then
'First time the page is loaded
Im typing this out so I might have some typos in it but nothing that should be major. Clicking on the link would (In my case) open a outlook window so that I can send an email with the To Field all...
Yes you need to set the runat property to "server" and you must use asp.net controls.
<asp:Image id="imgClose" runat="server" ImageUrl="SomePath"/>
Try www.asp.net. They have samples in both C# and VB.
Here is a link to the quickstarts page:
Not sure why your having such...
<asp:DropDownList id="ddlHashTable" runat="server">
Dim ht As New Hashtable
ht.Add(1, "My Test 1")
ht.Add(2, "My Test 2")
ht.Add(3, "My Test 3")
ht.Add(4, "My Test 4")