|
|
Hi
I have a web page which takes long time to process and display a complex datagrid when a button is clicked .
I would like to display a "please wait loading " message in the same webpage.
I have gone through few articles here but not found those which display in same page without redirection to another page.
I wud appreciate any timely help.
Thankx
Pretty
|
|
|
|
|
If you happen to post the same question in two or more posts, you might want to delete the redundant ones.
|
|
|
|
|
I have 10 comboboxes and 10 textboxes in my aspx page.Each combobox has to be filled with 50 values.so if we calculate total records it comes around 510.Most of the articles says that datareader is faster than dataset.But since i have more controls and more values, it has to go to database again and again to fetch values. I can use stored procedure and fill the dataset at once, so that i can avoid the roundtrip. Guys can you tell me which one is better in this situation dataset or datareader and if possible the reason.
Thanks
|
|
|
|
|
Are you trying the DataReader with multiple results? I'm not sure which one is better in your case, you may create some benchmarks and investigate. However, if they don't produce any significant difference, then both are applicable.
|
|
|
|
|
hi,
I had similar situation and I ended up using the datareader option with multiple result sets from the database. From my own observations the datareader option seemed to be faster. Since I was only reading this data into objects on the web page- then there was no nead for the extra functionality in the Dataset.
to parse the data into the comboboxes(DropDownList) and textboxes I used while loops and the .NextResult() method.
Wherever the data in some of the the combo boxes was identical (I had 2 combo boxes with this scenario)- then I used a while loop to read the values into a listItem object then I added it to the two combo boxes. here is an example of this below...
(N.B. dr is my datareader object)
<br />
while (dr.Read())<br />
{<br />
ListItem NewItem =new ListItem();<br />
NewItem.Value =dr.GetInt32(0).ToString();
NewItem.Text =dr.GetString(1);
combo1.Items.Add(NewItem);<br />
combo2.Items.Add(NewItem);<br />
}<br />
hope this helps.
simple one
|
|
|
|
|
Hi ,
I need to call a method written in c# windows application from a C# web application,Is it possible? if yes then how?
Thanks in advance for your help.........
|
|
|
|
|
I think the simple way is to add reference to the windows appication as you would with a normal assembly, then you can call this method. If they are two running applications, then you may consider using a remoting to invoke an object in the windows application from the web.
|
|
|
|
|
Hi,
Thanks for your help...actually i m new to asp.net ..so dont have much idea about remoting but i read about remoting today what it says is ....it allows to invoke a method in a remote application from another application ..but both the applications has to be windows application ....i have searched alot to find an example that demonstrates how a web application invokes a method in windows application but couldn't find any....if u have any idea on this do reply.
Thanks
|
|
|
|
|
pannujagwinder wrote: .but both the applications has to be windows application ..
Actually, the basic requirement for the communication using the .Net Remoting is that both applications run on the .Net environment. So you can invoke an object hosted in the window application from an ASP.NET application.
|
|
|
|
|
Hi,
yes I Agree that the basic requirement of .Net remoting is that both the applications run on .net environment..... by windows application i meant the desktop application written in c# and a web application written in c#..can they communicate ?? i mean can we call a method written in a desktop application not in a class library project but in a simple desktop application from a web application ? if yes how?
Thanks
|
|
|
|
|
pannujagwinder wrote: can they communicate ?? i mean can we call a method written in a desktop application not in a class library project but in a simple desktop application from a web application ?
Yes, they surely can.
pannujagwinder wrote: if yes how?
Your window application can expose an object which can be remotely accessible, and basically the client wants to call the method defined in the window application should be able to access this object, and then call the method via this object. For more details on how to implement it, you can see MSDN[^]
|
|
|
|
|
Dont know if this is exactly what you want but this will run the application itself:
using System.Diagnostics;
...
Process myProc;
// Start the process.
myProc = Process.Start("filename");
//The process does something.
...
// Stop the process.
myProc.CloseMainWindow();
Otherwise if you want to just execute the method then you should consider using reflection:
http://www.csharphelp.com/archives/archive200.html
|
|
|
|
|
Hi,
Thanks for your help...actually i m new to asp.net ..so dont have much idea about remoting but i read about remoting today what it says is ....it allows to invoke a method in a remote application from another application ..but both the applications has to be windows application ....i have searched alot to find an example that demonstrates how a web application invokes a method in windows application but couldn't find any....if u have any idea on this do reply.
Thanks
|
|
|
|
|
Hello!
I'm using an autosuggestion text box, and the user can either use blank (string.empty) or a value they got from the ddl for the UPDATE sql.
What I'd like to do is make sure if they did select from the ddl, they used the values from the db, and not their own.
A correct value would be:
Smith Jonathan R | 88899
.....the flow is last name, first name, MI, space, pipecleaner, space, then a six digit character. I know I can use the following as an expression:
\s\w\s\d{6}$
....but I'd also like to do a couple more checks in my subroutine as well.
What I'm having trouble is with actually writing the VB in the subroutine for the expression. Everything uses the RegularExpressionValidator that I've gotten back from Google.
Thanks!
|
|
|
|
|
I'm trying the following in a code behind subroutine, and it's not working. If the value they select is CORRECT, the exeption is still thrown.
txtWPMgr.Text should get built from a SQL string the does a select colName+' | '+colNumber
It's the colNumber value I want to compare in this expression.
Dim regEx As New Regex("^\s\w\s\d{6}$")
'last six characters are digits
If Len(Trim(txtWPMgr.Text)) > 0 Then
'Means there are characters for the name
If InStr(txtWPMgr.Text, " | ") = 0
Or Not regEx.IsMatch(Trim(txtWPMgr.Text)) Then
intDisable = 1 'Mark integer flag
lblStatus.Text = "Bad Format!"
End If
|
|
|
|
|
I got it with:
'Start Expression Code
Dim regEx As New Regex("\s\|\s\d{6}$") 'last six characters are digits for number
If Len(Trim(strNewPerson)) > 0 Then 'Means there are characters for the name
If InStr(strNewPerson, " | ") = 0 Or Not regEx.IsMatch(Trim(strNewPerson)) Then
lblStatus.Text = "* Name value must be from dropdown list built when typing name(last name first)!"
Exit Sub
Else
lblStatus.Text = String.Empty
End If
End If
'End Expression code
Thanks!
|
|
|
|
|
You have forgotten to specify how many characters of each you allow.
Now you are matching a single white-space character, a single alphanumeric character, a single white space character and six digits.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa,
That's all I want to allow:
a single white-space character, a single alphanumeric character, a single white space character and six digits
|
|
|
|
|
I thought that you had a string in the format "Smith Jonathan R | 888999"?
---
b { font-weight: normal; }
|
|
|
|
|
Guffa,
Thanks for staying with this.
Yes, my string is something like:
"Bush George W | 987987"
...and I thought this would/should do the trick to make sure the end of my string is correct:
Dim regEx As New Regex("\s\|\s\d{6}$")
...am I missing something?
What I don't want someone to do is allow users to take "Bush George W | 987987" and make it :
"George W Bush" or
"Bush George W" or
"Bush George W | 987"
|
|
|
|
|
Yes, in that case that pattern works.
It's wasn't that pattern you used in the message I replied to, though.
---
b { font-weight: normal; }
|
|
|
|
|
hi all
I have a big problem :
======================
1)- after i setup (windows 2003 server) and (the iis) and (VS.net 2003)
on my computer i found that problem .
2)- this problem i found it only when i use (ASP.net Web.App VB)
But the (Windows App work very good) when i change the
( Regional and language date formate to dd/mm/yyyy ).
* I can not made any change in ( Date formate MM/dd/yyyy ) from the
(Regional and language )this problem i found it only when i use
(ASP.net Web.App VB).
* I want to change the date format to (dd/mm/yyy) at my (WEB APP VB.NET).
* some one tell me i must format my hard and reinstall the windows and all
other app agin is this a solution !!!!!!!!!!! .
pls help my
thank you all
sigh:
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I have created a User Control with 4 Link Buttons, which I intend to use on different WEB Pages. I need to expose the Click Event of these Link Buttons as they do different task on different Web Pages.
I have no clue on how to expose the click events of these Link Buttons
on the user Control I have created.
Does some one have a suggestion on how to accomplish this. I am using VB as my code behind
|
|
|
|