|
hi,
you should be able to sort the data by using dataview. may be you missed out something...
the code below should work fine:
Dim dv As New DataView(yourDataTable)<br />
dv.Sort = "ColumnName1 desc, ColumnName2 asc"<br />
datagrid1.DataSource = dv<br />
datagrid1.DataBind()
regards
|
|
|
|
|
thank you, I'll try that.
Regards
|
|
|
|
|
Hi,
In the html page,
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" >
when dir="rtl" then the vertical scrollbar comes on the left sideof the form. I need to do this in the code behind page...how can i do it?
kindly do tell me
Thanks
|
|
|
|
|
Hi,
You can done this at code behind
Provide id=htmlid runat="server" to head tag
<br />
<html xmlns="http://www.w3.org/1999/xhtml" id="htmlid" runat=server><br />
From code behind use
<br />
htmlid.Attributes.Add("dir", "rtl")<br />
to set attribute.
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
Can someone show me how to read out the contents of a (Belgian) e-Id Card by a web page ?
I would like to create a website where accounts can be created by entering a e-Id card and pressing 'New account'. The system would automatically fill in the web-form.
Thx in advance.
|
|
|
|
|
Hi,
I'm making online exam system using asp.net, now i'm in the exam page, i read questions, choices, allow multiple choise and right answer, i create controls in run time to carry all the data ( Lable for question, checkboxlist or radiobuttonlist for choices), i create arraylist to put questions right answer in it and another one to put student answers.
My problem here is how to store student answers from the selection change for checkboxlist or radiobuttonlist, and how to compare two arraylists to get finall result?
Please i want solution for my problems.
If anyone have better solution than what i do please tell me.
Thanks for help
|
|
|
|
|
You can use two Hashtable instead of arraylist. And it is good to use question number as key for both hashtables. Then you can easily find answer of each question by the question number.
Gg
|
|
|
|
|
Thanks for your reply but i still have problem in storing student answers if u have solution please tell me
|
|
|
|
|
You are creating controls dynamically. right? If so, you can do a postback using javascript. Use two hidden controls for storing qustion number and selected answer. Set these hidden variables before postbacking the page. Then you will get the values in the codebehind. add this to the selected answers hash table.
Then use simple loop to compare both hash tables
Gg
|
|
|
|
|
|
Hello, we are developing application which uses MODI(Microsoft Office Document Imaging) library for OCR the documents. It`s working ok on development machines (Windows XP Sp2) but not working on Windows Vista. During the executing of OCR method of Modi.Document class error has been thrown - 'Ocr running error'. We couldn't find useful information on the internet. Does anybody know useful solution?
MODI.Document recognizedDocument = null;
recognizedDocument = new MODI.Document();
recognizedDocument.Create(tempFileName); // Some existing tif image file
recognizedDocument.OCR(MiLANGUAGES.miLANG_ENGLISH, true, true); // On this row exception throws
Thanks.
Mykhailo Kosovan
|
|
|
|
|
We resolve this problem!!!!!!!!!!!!!!!!!!!
We install MS Office 2007 instead of MS Office 2003
All work fine.
|
|
|
|
|
Hi Guys,
I had finished developing my asp pages and I would like to put it on a common pc so that the rest of the users can access these pages. I am using ASP.net 2005 with dotnet framwork 2. May I know what configuration do I need to do on the pc that my asp pages resides?
Thank you so much in advance for the help
Regards,
Aaron Neo
|
|
|
|
|
all the PCs should be in network. and if u want to access u r application from server PC, in the clint PC u have to give link like this
http://ip address of server (or)server name/u r application name/
i hope this will help u...
Pradeep Reddy
|
|
|
|
|
HI,
Thank you for your reply but I have tried that...It can't work..And how do I open a port on other pc? I installed Visual Studio on my pc and thats why a port is opened for me. If I do not install Visual Studio, what am I suppose to do?
|
|
|
|
|
AaronNeo wrote: It can't work
What the problem?
AaronNeo wrote: And how do I open a port on other pc?
No need...the webserver does that for you
AaronNeo wrote: If I do not install Visual Studio, what am I suppose to do?
To deploy,...no need to install VS
<< >>
|
|
|
|
|
Hi,
I have copied my files into inetpub/wwwroot and enable websharing. I then entered the address http://localhost/bh/index.aspx but the page still cannot be displayed out. Do I need to specify any port such as locahost:8080 ?? I can't seemed to get it working...
*headache.
|
|
|
|
|
Hi,
I think IIS should be installed in your server.
Use publish web site in build menu. specify a folder in target location
copy that folder to C:\inetpub\wwwroot
give web sharing for the folder.
then try http://yourservername/foldername/loginpage.aspx
To succeed, we must first believe that we can.
Sherin Iranimose
|
|
|
|
|
after deploying u r application on windows server(iis) no need of .net installed on u r client PC and also in u r server pc, but in server PC .net frame work should be installed.
and if u want to access u r application which is deployed in the server system from client PC u have to give the server PC ip address or server PC name must and should, it will work.....
Pradeep Reddy
|
|
|
|
|
1. Install IIS
2. Create a virtual directory in the iis websites/default websites and it should point to your home page directory. Keep your home page name as default.html or index.html. Eg:- MyHome
3. Desable firewalls if any.
4. Use http:///MyHome from remote machine
Gg
|
|
|
|
|
hi..
i have to expire the page with few minutes.. and i have to expire the control which may contain question.. within few seconds...
rgs
Bala
|
|
|
|
|
I'm not sure what you need...but you can try with session time out which is configured in web.config file
<< >>
|
|
|
|
|
What do you mean by expiration in this case? In what way should the page and control expire? Do you want something to happen at the moment of expiration, or do you want it to affect something else that is happening?
---
single minded; short sighted; long gone;
|
|
|
|
|
hi all,
i have a gridview which is populated with data. Now i am having delete button which is outside the grid. When i select a row in the gridview
and if i click delete button then the row should be deleted .how to do this .
pls help me out in this.
thanks
|
|
|
|
|
write as fallows in button click...........
i did it in asp.net1.1, i hope this will help u....
private void Button2_Click(object sender, System.EventArgs e)
{
CheckBox chk;
Label lbl;
string str="",streid="";
foreach(DataGridItem dgitem in DataGrid1.Items)
{
chk=(CheckBox)dgitem.FindControl("CheckBox1");
if(chk.Checked)
{
lbl=(Label)dgitem.FindControl("Label9");
str=lbl.Text;
streid =string.Concat(str,",",streid);
}
}
streid=streid.TrimEnd(',');
cmd=new SqlCommand("delete from emp where Eid in("+streid+")",con);
cmd.ExecuteNonQuery();
binddata();
}
Pradeep Reddy
|
|
|
|