|
Hi,
I have a date and time column in my datagrid and the time in this column is displayed with AM/PM format (ex:"10/11/2006 1:17:25 PM"). But when i export to excel, this time is turned into 24-hour format (ex:"10/11/2006 13:17"). How can i maintain the same format in excel sheet also.
Thanks in Advance
Phanindra...
|
|
|
|
|
Hi
I am using vs.net 2005 and asp.net 2.0 .
In aspx design code i wrote the code as
<% dim i as integer
i="images/ga.jpg"
%>
now i dont want to provide src prpperty value directly.
i have to give variable value how to give this
plz help me ......
Thanks in advance
Haritha
|
|
|
|
|
Why did you create a new account and ask this twice ?
Your code doesn't work. You create an integer and assign a string to it. VB.NET, being crap, will probably turn your int into a string, but you'd do well not to rely on your language of choice being rubbish.
Your code doesn't do anything sensible, but you can assign a variable value to the src property in your code behind, I don't see the issue. Of course, it needs to be a server control.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
harithadotnet wrote: dim i as integer
i="images/ga.jpg"
Passing string value to integer value ? How this is possible ?
I am not sure that I understood your problem, are you trying to assign variable value to src of image tag ? That could be something like
<image src=<%=i%>
|
|
|
|
|
:-DUse string type variable and assign it to image control property (it means take i as a string type varible)
Nand Kumar Das
|
|
|
|
|
Hi
I am using vs.net 2005 and asp.net 2.0 .
In aspx design code i wrote the code as
<% dim i as integer
i="images/ga.jpg"
%>
<asp:image id="img1" src="" runat="server">
now i dont want to provide src prpperty value directly.
i have to give variable value how to give this
plz help me ......
Thanks in advance
Haritha
|
|
|
|
|
I've run into a bug that I thought I bring it up here.
I created a simple website and I tried to build it and got the following error:
"Unrecognized attribute 'xmlns'. Note that attribute names are case-sensitive. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config 68"
I looked at the web.config file in the project and such line didn't exist.
Next I went to VS2005 and build a simple website, tried to build got the same error.
Then I realize, they are both looking at the same web.config, which is located in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
Even though in VS2008 I had selected .Net 3.5, it went and changed the web.config in the 2.0 section.
Any ideas?
Thanks!
|
|
|
|
|
Your website is configured to use the v2 framework. Go into IIS, right click on your virtual directory and select Properties, then on the ASP.NET tab select the propper version for the ASP.NET runtime.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
i didnt have any option
in iis like that
thanks
|
|
|
|
|
In IIS, expand "Web Sites" and look for your virtual directory. Right click on the virtual directory.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
Hi friends,
I am a beginner in asp.net c# ,now i am in a difficult situation like in my project i want to implement certificate authentication..i really need your help and suggestions...please anybody help me out like how can i implement that give some code samples for that...i am waiting for your reply....
Regards
Alex
|
|
|
|
|
Hai .,
Cud any1 plz help on how to autoscroll to down in multiline textbox ... plz help me out
|
|
|
|
|
its so simple go text box property and allow multi line on textmode property
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
sorry piyush u dint get my point ... i mean to say when i enter text into multiline textbox the position of the scrollis not coming down so that im not able see the new messages .. now i need it should get auto scroll automatically to see new messages
|
|
|
|
|
for this u use javascript to scroll down on enter key
var objDiv = document.getElementById("ChatSession1_txtChatWindow") ; objDiv.scrollTop = objDiv.scrollHeight;
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
|
how can i make a moving list of hyperlink such as the on the website www.aljazeerasport.net
|
|
|
|
|
use marquee Tag in htmlSource
Best regard
pathan
---------------------------------------------------
|
|
|
|
|
HI,
I Created link button dynamically. When I click the link button it ill display the corresponding details which i stored in database.
How to do that?
Thanks in advance
|
|
|
|
|
Muthunagai.A wrote: When I click the link button it ill display the corresponding details which i stored in database.
You need to attach click event for that link button.
|
|
|
|
|
The List of Question and answers are stored in Database. Questions are all in link button. When i click the Question then only the answer will display.
Final output like this
Q: 1234? ---> link button
A: answer
Can u give me any idea? or sample? how to do this?
|
|
|
|
|
Are you using Datagrid to show questions ? If yes you can make use button column . Make button type as link button , which will be rendered as HTML Link. Set command name property of button column.
When user clicks link button, ASP.NET will fire ItemCommand event. You need to check the command inside this event to ensure that it is coming from your link button. Now get question id from the grid bound columns and query to database with this id for getting relevant answers.
|
|
|
|
|
|
No, I'm not using the Datagrid. I'm using Panel to show the result.
Sorrry, now tell me? how to do that?
|
|
|
|
|
1 .Take datagrid.
2. Take LinkButton in ItemTemplate and bind it with Question field.
3 take DIV and apply style display:none property
3. Take Label Control in div tag and Bind it with Answer field
4. Now call javascript function on LinkButton to display or hide Answer field
Best Regard
Pathan
---------------------------------------------------
|
|
|
|