|
Yes, of course you can do that. I'd typically have the button just set a flag and pass that to the SQL to change the sort order.
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 )
|
|
|
|
|
You can Use ViewState to set the sort Direction of the Gridview
on Button Click Event write the following Code :
if (ViewState["SortDirection"] != "Asc" ||ViewState["SortDirection"] == null)
ViewState["SortDirection"] == "Desc"
else
ViewState["SortDirection"] == "Asc"
// Here dv is the dataView Object. Product is the Field in Gridview Based on that Field we Sort Asc or Des.
dv.Sort = ViewState["Product"].ToString() + " "+ViewState["SortDirection"].ToString();
gvBusinessSourcingList.DataSource = dv;
gvBusinessSourcingList.DataBind();
Ok, Bye
Jai
|
|
|
|
|
Hi
I have found away of converting MS Word into HTML by following a solution I found at the following link:
http://www.wherecanibuyit.co.uk/ASP/converting_word_doc_files_to_html.html
However, even though I can get it to work, I have three problems:
1. When it opens in my asp:panel it doesn't fit neatly into the width of the panel and you have to scroll side ways to read it. I have changed the code the Word.WdSaveFormat.wdFormatHTML another format, but this loses some of the formatting. Does anyone how I can keep the formatting - namely MS Word tables and to get it fit into a panel
2. Is there away of creating HTML docs on the fly without having to save it first?
3. When the code runs it runs without error, but if I try and shut down windows, MS Word is still open even though it is not in my task bar. Is there another way of getting MS Word to close?
Thanks
|
|
|
|
|
Sounds like you need to talk to the people who wrote that page.
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 )
|
|
|
|
|
HI guys I have came across this QNXT ?what is this exactly about and how it is useful in developing health care applications? could anybody please give me reply to this.
thank you
valli
|
|
|
|
|
valli rajya lakshmi wrote: could anybody please give me reply to this
Google [^] no work where you live?
|
|
|
|
|
hi everybody!
I want to create more than one user account at a time using CreateUserWizard. And only Adminstrator would be allowed to create any new account. But the CreateUserWizard has got property that it let new user login automatically, that's why administrator have to log in every time. please any one could tell me how can I create more than one user account using wizard
|
|
|
|
|
please, post clear question. don't just write whats running in your mind. Read Question 2-3 times before you post.
Please explain clearing again, what do you want to do.
Thanks,
Prince
Team Lead
Quest Solutions
www.imaginethinkact.com
|
|
|
|
|
I was using ASP.NET and VB.NET using the article http://www.codeproject.com/KB/custom-controls/DropDownListOptionGroup.aspx
I got it working but the problem is, it is creating one additional option tag with null value just after option group. How to get rid of this additional option tag.
I am using VB.NET code.
Thanks.
|
|
|
|
|
debug your code, man. What else can I say?
|
|
|
|
|
All,
I am looking for a regular expression for a string to allow alphabets ,digits and only special characters like underscore(_) and blank space.
i tried using [0-9a-zA-Z]+$ but it accepts only digits and alphabets which is stops my functionality.
my string should accept only _ and blank space no more special characters.......
can some one suggest me the proper regular expression?
Thanks,
Mukkanti.
Thanks
Mukkanti
|
|
|
|
|
[0-9a-zA-Z_\s]+$
I think should work, unless _ is a control character (I haven't had my coffee yet, so my mind isn't working well ).
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
|
|
|
|
|
Here is a website regarding regular expression. Maybe you can find what you want.
http://regexlib.com/[^]
|
|
|
|
|
Hi all. I am working on a page with a treeview on that state needs to be saved on postback(Meta Refresh). Now I've got the following code to create a cookie if a node is expanded
Protected Sub tvSideNav_NodeExpanded(ByVal sender As Object, ByVal e As ComponentArt.Web.UI.TreeViewNodeEventArgs) Handles tvSideNav.NodeExpanded
Try
Dim i As Integer
For i = 0 To Request.Cookies.Count - 1
Request.Cookies.Remove(i)
Next
Dim UserCookie As HttpCookie = New HttpCookie("UserCookie")
UserCookie.Name = "Details"
UserCookie.Values.Add("node", tvSideNav.SelectedNode.GetCurrentIndex.ToString)
Response.Cookies.Add(UserCookie)
Catch ex As Exception
End Try
End Sub
but this code doesn't seem to fire when a node is expanded. Can someone tell me why this is?
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
I figured it out. In the aspx page in the treeview component you have to set the following.
AutoPostBackOnNodeExpand ="true "
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Hi. I've put a GridView inside a UpdatePanel. GridView is enabled for paging. now i want to display a message from the client side when ever GridView is rebinded through paging i.e. particular portion is updated.
|
|
|
|
|
You could try using an UpdateProgress control with the UpdatePanel.
|
|
|
|
|
in my web application I m taking entry by grid from the user.
user inserts hundreds of lines in grid and when he is finised he presses submit button and data is saved into database.
Now problem is, when user is inserting hundredth line and some network failure occurs or client system shuts down. Then all the data entered by the user losts.
So tell me any way so that when user logs in next time a message should be their to recover last lost data. and user is able to recover his lost data.
Please send the reply. It is as urgent as anything.
Thanks
Ashish Jha
Software Engineer
|
|
|
|
|
Member 3931259 wrote: It is as urgent as anything
taking urgtz to the next level
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[^]
|
|
|
|
|
Have some javascript send the data to some area for draft information until the final version is submitted. Each time the user goes to that page the draft information is looked for. It it exists is is loaded, if not then the user carries on as normal.
|
|
|
|
|
Maybe the better way is to save the data automatically & timely.
Two ways as below:
1) automatically save the data every 30s, 60s, ... etc;
2) automatically save the data when the user input 10th line, 20th line, ... etc.
|
|
|
|
|
Hi, i developed one web applicatin and deployed on server. The applicaiton is working fine. One of the webpage in applicaiton tooks .csv file data and process the data and gives the output in .csv format.
If the .csv file(input file is small size) its working fine. It the .csv file is around 14 MB it processing the file up to some time and it displaying the message in browser as "Internet explorer cannot display this message." I have checked in server, the file is uploading to server correctly.
The inside process is, it has to read data from ,csv file to datatable and process it and writes datatable output to another .csv file and allow the user to download.
I have checked by having 3 lakh records in .csv file - working fine.
when i checked with 6 lakh records it showing above message.
Can any one suggest on this? why its happening?
G. Satish
|
|
|
|
|
Hint: TimeOut. The page is being timed out.
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 have created an assembly(for multilingual application) and installed in GACUtil with strong name but when i tried to access this assembly using
Thread.CurrentThread.CurrentUICulture = new CultureInfo(specificCulture);
string baseName = "BiLingual";
ResourceManager rm = new ResourceManager(baseName,
typeof(Program).Assembly);
label1.Text = rm.GetString("label1");
it shows error : "Could not find any resource"
GAC assembly name : BiLingual.resources
culture : en-US
could somebody know what is happening here and how to access the satellite assembly
thnks in advance
|
|
|
|
|
hi,
I have a database table as:
particulars dr amount cr amount
deposit 0 200
Fine 0 100
Expenditure 10000 0
I have to show this in profit and loss account as
particulars dr amount particulars cr amount
Expenditure 1000 deposit 200
fine 100
regards,
Bill
|
|
|
|