|
mr_muskurahat wrote: can anyone please guide me how can i get hard disk number in asp.net 3.5??
That's odd. Are you trying to get client machines hard disk number?
|
|
|
|
|
Yes , using WMI you can read . But it will give you server HDD Serial No.
|
|
|
|
|
yes i want to read harddisk number of client and i am using that code for asp.net 3.5.....
but giving error on managementobject while same code works fine in 2.0
umerumerumer
|
|
|
|
|
mr_muskurahat wrote: while same code works fine in 2.0
Are you able to read Client HDD No ? How? Can you please give some details on it .
|
|
|
|
|
mr_muskurahat wrote: want to read harddisk number of client and i am using that code for asp.net 3.5.....
That would be a security and privacy issue. How would I know that you are not reading other stuff off the hard drive I wouldn't want you to. Boy, I'll stay clear of your app, it sounds potentially malicious.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Please Dont Delete Mesage.
|
|
|
|
|
No kidding.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hy,
I have created a hyperlink in a gridview in code behind...how can i pass a variable in the hyperlink in code behind....
my code is
HyperLinkField hfield = new HyperLinkField();
hfield.HeaderText = "memberid"; hfield.NavigateUrl = "Default.aspx?query={0}" ;
hfield.DataTextField = dt.Columns[0].ToString();
GridView1.Columns.Add(hfield);
GridView1.DataSource = dt;
GridView1.DataBind();
Regards
|
|
|
|
|
when you want to pass the variable?Can you tell us the exact scenario?
Cheers!!
Brij
|
|
|
|
|
You need to use the attributes already in place for that!
<asp:hyperlinkfield datanavigateurlformatstring="~/YourPage.aspx?YourQS={0}" datanavigateurlfields="YourFieldForQS" text="The link!" xmlns:asp="#unknown" />
|
|
|
|
|
hi,
i want to know viewsrs count at a particular time who r viewing my site
i hav tried this using global.aspx but no use
plz help me
thanks in adv
|
|
|
|
|
ratnakar_ravi wrote: i hav tried this using global.aspx but no use
How did you tried with Global.aspx , can you please put the code of Session_Start() Method.
|
|
|
|
|
Take a application level variable.Increase the count by 1 on every session start and Decrease when session ends in Global.asax.
Cheers!!
Brij
|
|
|
|
|
and your session mode in global.asax must be set to InProc otherwise session_end event will not call.....
umerumerumer
|
|
|
|
|
ratnakar_ravi wrote: global.aspx
You can use Application variable to keep the current viewer count. Increase the count in Session_Start event and decrease it when the session ends. ASP.NET is multithreaded so application variables are not thread safe. Make sure you always use a lock around the operations. Something like
Application.Lock();
int currentViewerCount = int.Parse(Application["viewers"]);
Application["viewers"] = currentViewerCount + 1;
Application.UnLock();
|
|
|
|
|
I have one my website. I want to attach discussion forum to my website. I like this(Code Projects forum) discussion forum, I would like to develop discussion forum for my web site as like this forum. can anyone help me for that.
How can develop forum like this forum?
Which controls we can use for that?
How we can differentiate topic and reply?
Please let me know if anyone have an idea.
Thanks.
|
|
|
|
|
|
Database structure is ready for the forum. actually I have develop one discussion forum by using repeater contol in asp.net, but it’s not fulfill. that’s reason behind all this things.
|
|
|
|
|
Most of the cool stuff in this forum is done with javascript and was here when the site was asp. There's no ASP.NET controls you 'need', I'd still use a repeater, it gives you more control.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Abhijit Jana wrote: For,developing Forum in asp.net, You need a good knowleges of MasterPages, Menu, Sitemap Path, ADo.NET, XML
What absolute BS. Sorry, but that's a pile of crap. ADO.NET is the only thing on this list that you'd almost certainly end up using.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi there,
Can anyone tel me how to pass a row or a cell text of a grid view from asp.net code behind to javascript.
|
|
|
|
|
You can do one thing,
Read the value of datagrid row at serverside then register a javascript function which takes the value as a parameter.
Cheers!!
Brij
|
|
|
|
|
I want to hide every .aspx extension in my site.. can you help to me
|
|
|
|
|
nithydurai wrote: I want to hide every .aspx extension in my site.
You can map your own extensions to IIS and let ASP.NET process all those requests. In IIS6, you can't remove the extensions. If you are using IIS7, extension-less URL-rewriting is possible.
|
|
|
|
|
can you give example for rewrite method....
|
|
|
|