|
I guess you can use <a href = "http://msdn2.microsoft.com/en-us/library/system.web.mobile.mobilecapabilities_members.aspx" rel="nofollow">MobileCapabilities</a>[<a href = "http://msdn2.microsoft.com/en-us/library/system.web.mobile.mobilecapabilities_members.aspx" target = "_blank" rel="nofollow">^</a>] class and use IsMobileDevice .
|
|
|
|
|
<br />
string res = Request.Browser["IsMobileDevice"];<br />
if (res == "true")<br />
{<br />
<br />
Response.Redirect("Mobile.aspx");<br />
}<br />
else<br />
{<br />
<br />
Response.Redirect("Desktop.aspx");<br />
}<br />
Thats the way I'm doin it at the moment. does it look alright to u?
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Rocky# wrote: Thats the way I'm doin it at the moment. does it look alright to u?
Is this working perfectly ? I don't think that HTTPBropwserCapabilities having an indexer property.
|
|
|
|
|
well its working and I havent tested it against a mobile :-> I tried to but the simulation wasnt working properly
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|
|
Hi all,
we are using the following class SymmetricAlgorithm,
The code is taken from the following url:http://www.codeproject.com/dotnet/encryption_decryption.asp?df=100&forumid=3466&exp=0&select=1007528
Just we have send the key to this algorithm, instead empty.
For the this username :Shannon81 we can't able to decrypt. The encrypt value is "jw= =" this only due to key. if key is given it is working fine. If we remove the key ,the existing username and password is not working. So please provide the solution .
Thanks in advance.
|
|
|
|
|
If i click the datagrid i want the corresponding data to be displayed in a text box?
|
|
|
|
|
ps.srinivasan wrote: If i click the datagrid
Which part of datagrid do you want to click? header or cell or footer or border or something??
It would be great if you can tell us more details and specific about what you really want. then, it is more easier for us to help you. srinivasan
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
thank u for reply
I want to retrive cell Value
|
|
|
|
|
DataGrid will be rendered as HTML table. On ItemDatbound event, get the cell text and make a call to a javascript function on the OnClick event of the cell.
e.Item.Cells[0].Text = "<a onclick="YourJsFunction('" + e.Item.Cells[0].Text
+ "')>" + e.Item.Cells[0].Text + "</a> above code will set the OnClick event for first cell. Cell value will be passed as parameter to the JS function which can be assigned to text box.
Hope it helps
|
|
|
|
|
:(Hi everybody anybody help me!!!
i am having a gridview,in which i placed a template field which contains a
checkbox control.My need is to find whether this checkbox is checked or not.
pls help me in coding(using c#)
SunithaNallana
|
|
|
|
|
Code from this article..
StringBuilder str = new StringBuilder();<br />
<br />
for (int i = 0; i < GridView1.Rows.Count; i++)<br />
{<br />
GridViewRow row = GridView1.Rows[i];<br />
bool isChecked = ((CheckBox) row.FindControl("chkSelect")).Checked;<br />
<br />
if (isChecked)<br />
{<br />
str.Append(GridView1.Rows[i].Cells[2].Text);<br />
}<br />
}<br />
hope it helps..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Thank u very much sir...
its working.
SunithaNallana
|
|
|
|
|
How can take the sql2005 backup
and how can run the sqlbackup
Jaya
|
|
|
|
|
SQL 2005 backup[^]
If you wanna do manually, you can deattach/attach the mdf in SQL 2005 management studio..
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
What is the password logic in ASP with C#
How can i write the Code
Jayakrishna
|
|
|
|
|
JKChowdary wrote: What is the password logic in ASP with C#
Password logic ? What is this ? Do you want to know how to store passwords on DB ? Check this[^]
|
|
|
|
|
I want to place a Doc file in Client 'Temporary Internet Files' folder when Client open my webapplication.So How to Get The Path Temporary Internet Files Folder using Asp.net
|
|
|
|
|
Vanamaindia wrote: I want to place a Doc file in Client 'Temporary Internet Files' folder when Client open my webapplication
Not possible. Because ASP.NET works on the server, and it don't have permissions to write something on client machine.
|
|
|
|
|
Ok,Tell me How to Get The Path Temporary Internet Files Folder using Asp.net??
Ex:
by using Request.UserHostAddress() I can Get the Client IP
Like this How Can I Get the Temporary Internet Files Folder Path
|
|
|
|
|
I think you can't.
All you can access from client are client's IP Address, type of browser, OS and screen resolutions.. That's all.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
Vanamaindia wrote: Tell me How to Get The Path Temporary Internet Files Folder using Asp.net??
Not possible. This won't be send to the server by a browser. So you won't get it. Why you want to write something to temporary internet files ?
|
|
|
|
|
search once in google u may find the answer.;P
|
|
|
|
|
lakshmichawala wrote: search once in google u may find the answer
No. we won't get an optimum solution for this
|
|
|
|
|
Hey guys
My question is pretty simple BUT I think answer might be a difficult one.
Well I want to consume a webservice(for showing featured listings) using javascript. I want my client to just Copy/Paste small piece of javascript in HTML. Somewhat like Google Adsense and other API's provided by Google.
Any idea from where I shud start..........
|
|
|
|
|
You can do a AJAX call with Javascript to the remote page which consumes web service.
|
|
|
|