|
Hi,
Am assigning a dataset to dataview and trying to sort dataview.
But, its not sorting.
DataView dv = new DataView(DataSet.Tables[0]);
dv.Sort = "ColName";
Please help me as this is urgent.
rmr
|
|
|
|
|
The DataView doesn't sort the DataTable. Make sure that you are not still referencing the DataTable object, because the DataTable will still NOT be sorted. You will have to reference the DataView object to utilize the sorting. Otherwise your code looks okay, so if you need more help you'll have to give us some more information about how you are using the DataView object after you sort it.
Hope this helps.
|
|
|
|
|
Hi
Guys in my application,user has the option to convert the specific info shown to user in PDF format, incase of one user it's not working but it's working fine for other user, what can be expected reason plzzzz reply me ASAP,tahnkx for ur reply
|
|
|
|
|
Hi,
I was trying to send a number from a HTML textbox to add a value to it at the Server, then return it to an ASP textbox.
But I don't know to to pass the value of the HTML textbox to the server.
The 2 Javascript functions are:
//the first function to call the server
function GetNumber() {
UseCallBack();
}
// The function receive the adjusted value from the server and display it into the textbox1
function GetRandomNumberFromServer(arg, context) {
document.forms[0].TextBox1.value = arg;
}
Here are the server side code, written in the .vb file:
Dim _callbackResult As String = Nothing
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim cbReference As String = Page.ClientScript.GetCallbackEventReference(Me, _
"arg", "GetRandomNumberFromServer", "context")
Dim cbScript As String = "function UseCallBack(arg, context) {" & cbReference & "}"
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "UseCallBack", cbScript, True)
End Sub
Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult
Return _callbackResult
End Function
Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
_callbackResult =
'equal the value from the HTML textbox + 5
End Sub
Does anyone know where I can add some code to ask to pass the value to the Server?
Thanks,
|
|
|
|
|
Hi,
As u show here your callback function can pass Argument to server...
U just simply put it on your UseCallBack Function of javascript...
Use
======================
UseCallBack("Argument u Pass","");
=======================
Now on Server Side U can get this value by RaiseCallBackEvent funtion
Like
=============================
_callbackResult =eventargs.ToString() // It written in C#
=============================
This way u can get Value from javascript to Server
-----------------
Viral
|
|
|
|
|
hi,
i want to know how to get system names which are connected in network
in C# ASP.net and databases name in the server.
kamalnath
|
|
|
|
|
Sure. What have you tried so far?
|
|
|
|
|
hi,
i tried with "System.Net.NetworkInformation" name space.is there any way to get the system names which are connected in network.
kamalnath
|
|
|
|
|
i add this template column to datagrid.
asp:TemplateColumn HeaderText="Image">
<itemtemplate>
<asp:image
="" width="150" height="125" imageurl="<%# FormatURL(DataBinder.Eval(Container.DataItem, "PersonID")) %>" runat="server">
in code behind in c# is
string FormatURL(string strArgument)<br />
<br />
{<br />
<br />
strArgument=strArgument+"1";<br />
<br />
return(strArgument);<br />
<br />
}
when running this it shows an error.what i do?
All I ever wanted is what others have....
CrazySanker
|
|
|
|
|
i have a column in my database with the type ntext ;
when i enter in this column a few Unicode charecters(150 charecters) and show that's works good
but when i entered in it the large number of charecters (for exam 700 chars) show me "?" instead of Unicode charecter
how can i solve it ?
With Thanks
MHF
-- modified at 6:31 Friday 6th October, 2006
|
|
|
|
|
You have to find out where the problem really is. The database field is capable of storing the characters, so it's either when you store the value, when you retrieve the value, or when you display the value that the problem is. Check the actual data before and after each of those stages.
---
b { font-weight: normal; }
|
|
|
|
|
Ok but why when i add the small text as same there isn't any problem ?
MHF
|
|
|
|
|
It has most likely nothing to do with the size of the text, but rather the contents of the text.
---
b { font-weight: normal; }
|
|
|
|
|
Hi! there is a data grid having 3 rows. back color of first row is red, back color of second row is green & back color of third row is blue. i want onmouseover the back color of an row become yello & onmouseout backcolor of row become previous color i.e. row restore its backcolor. how it possible?
samir
|
|
|
|
|
try this
http://authors.aspalliance.com/Colt/Articles/Article3.aspx
Thomas
|
|
|
|
|
hello
i have upload a zip file now i want to extract the zip file in my application.
how can i do it with asp.net
thanx
|
|
|
|
|
Hi,
I am Ravindra,learning ASP.net.
I created a webusercontrol and made a drag and drop on a webform but I dont know how to move the webusercontrol(.ascx) on a webform to place it correctly.So,if anybody knows please help...
thanks in advance.
Ravindra
|
|
|
|
|
Try This
write on aspx page:
<%@ Register TagPrefix="uc1" TagName="ConvertDt" Src="ConvertDt.ascx" %>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<uc1:ConvertDt id="ConvertDt1" runat="server"></uc1:ConvertDt>
</form>
</body>
write on .vb page:
Imports DtConverter.ConvertDt
create instance of usercontrol:
Dim ab As New ConvertDt
through ab you access method of usercontrol
Aashutosh kumar
-- modified at 6:16 Friday 6th October, 2006
|
|
|
|
|
|
i want save data in new folder named according to different users.
so how can i create new folder at run time in asp.net with c# according to username.
dcjoshi2
|
|
|
|
|
Dim myFolderName as String = "c:\myfolder"
System.IO.Directory.CreateDirectory(myFolderName)
plz covert it into c#
|
|
|
|
|
string myFolderName = @"c:\myfolder";<br />
System.IO.Directory.CreateDirectory(myFolderName);
|
|
|
|
|
I have developed a web application in which i create some temp files in a temp directory with in appdomain's current directory.
What i want to do is to delete all these files when application starts?
Accordingly i have placed code in Application_Start event of Global.asax file. When i run application through IDE then all temp files get deleted. But when i access the application straight away by typing the url in web browser then it doesn't deletes temp files.
How can i solve this problem?
Thnx in advance
Praveen
|
|
|
|
|
Is it possible to add any code or html in a web page to disable the "Save" ,
"Save As" in the File menu and "Source" option in the view menu of a web
browser. I already have code that disables the right click on a page but I
would also like to disable the View Source and Save/Save As option in the
top menu of the browser. I have tried looking on MSDN's website but I have
not been able to find anything because it is so much info on it.
Sathiyaraj Ganesan
|
|
|
|
|
I have heard of code that does parts of that in some browsers. There is however no code that will do that on all browsers, and there is no code that will cover all the other possibilities to view the source code. You can easily circumvent anything like that by simply using another browser, disable Javascript, get the file from the cache folder, or use some other program to request the page.
What do you have in the source code that you think is worth protecting anyway?
---
b { font-weight: normal; }
|
|
|
|