|
you can directly bind the datatable with grid. Is there any special reason for binding dataset?
|
|
|
|
|
gridvew1.datasourse = dt;
directly bind it with grid view.
|
|
|
|
|
When i run the .Net program, the IE was half sized. How to get the fully sized window while executing the project?
|
|
|
|
|
use following script in your head tag
you problem will be resolved.....
<script language="javascript" type="text/javascript">
window.moveTo(0, 0);
window.resizeTo(screen.width, screen.height)
</script>
umerumerumer
|
|
|
|
|
S. Its working.Thank u for your help.
|
|
|
|
|
this is the good answer
Anshuman Singh
|
|
|
|
|
Hi,
I am working with an multilingual site.
The main language of site is english and the second language is chinese.
I am keeping the culture in session.A user changes the culture using the link buttons provided. Now my problem is that when after changing the culture if user presses the browsers back button, the culture changed to old culture.
First the culture was in english, changed to chinese and press back button the culture changes to english again but it is supposed to be in chinese.
Any suggestion how to maintain culture ?
I m not using profiles.
Regards
Vijay V.
Yash Softech
|
|
|
|
|
hi Everyone,
I am creating an application that gets data from specific griedview columns and export the data to an excel spreadsheet 9that is located though a fileupload control.
After i execute the code I find that the spreadsheet was not populated. Please exemine my code below, your help will be appreciated. Thanks
Protected Sub Export_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Export.Click<br />
<br />
Dim xConnStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _<br />
"Data Source=" & Server.MapPath("TemplateWDataNEW.xls") & ";" & _<br />
"Extended Properties=Excel 8.0;"<br />
<br />
<br />
Dim objXConn As New OleDbConnection(xConnStr)<br />
objXConn.Open()<br />
<br />
For Each gvRow As GridViewRow In gvClients.Rows<br />
<br />
Dim strRoom1 As String = "INSERT INTO [Sheet2$](tvlr_Lastname, tvlr_Firstname,tvlr_title) values (@Surname,@FName,@Title)"<br />
Dim InsertCommand As New OleDbCommand(strRoom1, objXConn)<br />
<br />
InsertCommand.Parameters.AddWithValue("@Surname", gvRow.Cells(0).Text)<br />
InsertCommand.Parameters.AddWithValue("@FName", gvRow.Cells(1).Text)<br />
InsertCommand.Parameters.AddWithValue("@Title", gvRow.Cells(2).Text)<br />
InsertCommand.ExecuteNonQuery()<br />
Next<br />
objXConn.Close()<br />
<br />
End Sub
allphpro
modified on Tuesday, February 17, 2009 5:22 AM
|
|
|
|
|
is there any way that i can change the "select" text which appears when i "enable selection" in a grid view ? I want to change it to "Delete" or some other word..
Thank you !
|
|
|
|
|
Are you using asp:commandfield as a column template?
If yes, you have the following properties:
CancelText
DeleteText
EditText
InsertText
NewText
SelectText
UpdateText
Calin
|
|
|
|
|
I am using a repeater control in my project. How to display only the first 2 data items using the orderby method.
|
|
|
|
|
use Select Top 2 .... order by ...
in query and bind the datatable into the Repeater..... simple.
Abhishek Sur
|
|
|
|
|
|
Hi all,
I am using Asp.Net Ajax Hover menu on gridview. created the add new linked popup, but i need, clicking add link, empty textbox should have to display to enter the values and save it in db. How could i do it. Kindly help me..
|
|
|
|
|
I got this error while trying to get user id from membeship in asp.net
I write the code as follow
MembershipUser myuser = Membership.GetUser();
but the error happens in this line of code above "
Specified cast is not valid.
" although it was working before but stopped suddenly
|
|
|
|
|
I have a master page in that i am loading user control dynamically, when page postback sometimes it gives error
'Invalid length for a Base-64 char array.'
Kindly provide me solution if anybody have..
Thanking you!
|
|
|
|
|
Hi i have tried gridview in inside the update panel...,
for me paging concept is working fine...,
But i am getting probs in sorting...,
it mean i am not getting error, for me proper shorting is not occured ...,
plz any one guide me/ give me some url where they have explained about it...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Where you are posting the question,you asked this question(i am assuming that it is a question) as a reply of another question. On the top did u saw new message label,click there and post yor question
|
|
|
|
|
Is it possible to add multiple tables in Horizontal row in C#.net? How ?
|
|
|
|
|
Hi,
The question you asked is a bit vague. Please make it more clear.
|
|
|
|
|
I want to design the page using source of the .Net form. In that i want to add several tables in the same row. Is it possible to create different tables in the horizontal flow?
|
|
|
|
|
why dont u join the tables using query and display the data
|
|
|
|
|
I am still not sure about your requirement. I am assuming that you want to include multiple html tables inside a row of another html table.
Is it something like this.
<table width="100%">
<tr>
<td colspan=3>
</tr>
<tr>
<td>
<table><tr><td>First Table</td></tr></table>
</td>
<td>
<table><tr><td>Second Table</td></tr></table>
</td>
<td>
<table><tr><td>Third Table</td></tr></table>
</td>
</tr>
</table>
Or are you talking about displaying data from multiple database tables on a single row of your html table?
|
|
|
|
|
Is it possible to play video in C#Net? How? Can anyone send the code?
|
|
|
|
|
Karthick_gc wrote: Is it possible to play video in C#Net?
This is ASP.NET forum. Are you asking how to play video in ASP.NET? ASP.NET can't play video. You need to take a look at HTML embed[^] tag.
|
|
|
|