|
Hi,
I think you can do something(such as JS function) when the selectedchanged event of the dropdownlist occurs.
Then you should select the correct row and checkbox. You can bind them together when your table is created.
modified 27-May-14 4:58am.
|
|
|
|
|
Hi friends...
am created business intelligence application in sql2005 ..so report created successfully but when i am deploying that report to my localhost server.am getting "A Connection could not be made to the report server http://localhost/ReportServer"..
Please Help me...
txs in advanve....
|
|
|
|
|
Hi guys i am new to generics,
i want to read a line and print the each words how many times it occurs using generics...,
For eg:
If i have a string "Hi world, welcome"
in tht string i want to print total number of character count and
'w','o','l','m' how many times occured the each character in tht string..,
help me out in thius,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
what is the problem with that, use foreach loop to calculate.
string str = "Hi world, welcome";
foreach (char s in str)
{
}
|
|
|
|
|
u cant use for loop,
i need using generics,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
I cant get you properly.
foreach works on Enumerable which is the basis of Generics.
Let me know what exactly you are looking for... do you need to use LINQ ?
Generics are used to define objects, it is no means related to its manipulation (loops)
|
|
|
|
|
Sorry i didnt mention properly,
S have to use LINQ too...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Do like this.
string str="Hello World";
int countW = str.ToCharArray().Count<char>(c => c == 'w');
Also Read my article for more clear idea on LINQ
Basics of LINQ & Lamda Expressions[^]
I hope this will help you.
|
|
|
|
|
I don't understand completely what do you want but I have written a LINQ expression that will calculate the number or each character in the string:
string hello = "Hello, World!!";
(from fn in
(from ch in hello.ToCharArray()
group ch by ch into g
orderby g.Key
select new Func<object>(() => {
Console.WriteLine(g.Key + ": " + g.Count()); return null;
}))
select fn()).ToArray();
All the characters will be printed to the console.
|
|
|
|
|
Hi frds,
I am using C# and asp.net 2.0 for developing a website admin panel on testing server, as for my concern i need to programmatic( via c# code) replicate database of testing server to database of live server on a button clicked event.
Test server having MS sql server 2005 and live server have MS sql server 7.0 are on same network. can you give a help or suggestion regarding this issue.
Thanks in advance,
Abbas
|
|
|
|
|
Well, this is easy.
Just take a backup using BackUp Command of SQL Server to take backup of database to a location which is accessible from your live server.
http://msdn.microsoft.com/en-us/library/ms186865.aspx[^]
In the live server, copy the file from the network and Restore it.
Generally BackUp and Restore always works for local path. You cant use Unc path to do this. So you need to copy them first to your live server before you restore.
Also there might be some issue with access of the current user, You need might have to do Impersonation to access the unc path(If it is required).
Hope you can do this.
Other than that, You can also take the Help of SMO objects to do this.
But always remember SMO classes are very much Version Specific.
SMO - Manage your SQL Server![^]
cheers.
|
|
|
|
|
hi Ashishek...
Thanks for answer ..i will try it
|
|
|
|
|
Hi all,
i have created html reports and displayed date by using DateTime.now.Tostring("dd-mm-yyyy") but it shows US time Zone's time but i wann display it in IST +5:30 format can u pls help me...
Thanks and regards.
|
|
|
|
|
Are you just wanting to add 5:30 to your local time? The simplest way would be to just code.
DateTime.Now.AddHours(5.5).Tostring("dd-mm-yyyy")
If you were wanting to make it more flexible I would suggest setting the value to add to a settings file or to your web.config so you wouldn't have to update the code everywhere should you change the location of your server.
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
I think either you need to configure your local time of the system to IST or adjust the time programmatically.
Use DateTime.Now.ToUniversalTime().AddHours(5).AddMinutes(30)
Also to get the format right, place
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("culturecode");
before your DateTime call.
I hope you will get the result.
|
|
|
|
|
Hi...
I have two Custom HttpModules in a .net application.
Can I override the BeginRequest event of IHttpModule in both custom HttpModules?
your
peter
|
|
|
|
|
|
Those are events, just place appropriate handlers.
Actually if you see any httpmodule you will see we generally we always handle those events.
Use
application.BeginRequest += (new EventHandler(this.Application_BeginRequest));
Place this in Init.
Cheers
|
|
|
|
|
Hi,
I'm trying to insert some data in excel file version 2003. It is working fine in local machine. But when i'm uploading it on web server then its giving the error like.
system.invalidoperationexception: 'the microsoft.jet.oledb.4.0' Provider is not registered on local machine.......
Please give me the solution. Its urgent. Please..
Thank you...
krishna veer singh
|
|
|
|
|
Install MDAC in your server...
Its the Microsoft Data access Tool.
Get it from here :
MDAC 2.8[^]
|
|
|
|
|
Thank you for your reply,
but here its written that,
"This release does not include Microsoft Jet, the Microsoft Jet OLE DB Provider, the Desktop Database Drivers ODBC Driver, or the Visual FoxPro ODBC Driver."
even after it will work??
waiting for your reply.
krishna veer singh
|
|
|
|
|
I think this is what you need to look at:
http://www.zuggsoft.com/data/
And this:
http://support.microsoft.com/default.aspx?kbid=239114
Hope you can do it now.
cheers
|
|
|
|
|
Hi,
i have a requirement like selecting multiple dates or weeks or months on a calendar control in ASP.net web application.please help me to archive the requirements.
Thanks,
Vinay.
|
|
|
|
|
Why dont you create your own calendar or use Javascript Calendars like Yahoo or anyone in the market which will enable you to select dates without postback?
Other than that If you really want to use the ASP.NET calendar there is also a way for that here:
http://forums.asp.net/p/1032656/1420001.aspx[^]
I hope you like my answer.
|
|
|
|
|
Hi everyone
Can anybody please tell me how to prevent simultaneous login using same user name. if one user is already logged in with one machine and if he tries to login with same credentials with another machine. I want to logout firstly logged in user by force..
I am using C# language and Asp.net SqlMembershipProviders tables to store records of Members. Please help me.
Thank you very much
Thilina....
|
|
|
|