|
Migrate to 2.0?
Hey - SOMEONE was going to say it
Soz - Don't really have an alternate answer
- Reelix
|
|
|
|
|
When you close the web browser and open it again, wouldn't ASP.NET create a new one for you?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
i want to display some mails in gridview whcich i stored in database,when it appears in gridview,read mails have one colour other
mails have another colour...how to do dis...reply wit codes..
|
|
|
|
|
use this tag for the gridview
AlternatingRowStyle-BackColor="#XXXXXX"
|
|
|
|
|
change the colour of one row in a gridview according to value from database........
|
|
|
|
|
maybe something like this then:
if e-mail = blah blah
{
RowStyle-BackColor = blah
}
else if e-mail = blah blah
{
RowStyle-BackColor = blah
}
put that in the c# on the row created method
|
|
|
|
|
Is it possible to use form post across domains?
If yes, then is it a good approach to pass login credentials using this?
My idea of ideal life : Eat, Sleep, Repeat
|
|
|
|
|
What prevents you from setting a new URL to the ACTION attribute of the Form Tag?
d@nish wrote: If yes, then is it a good approach to pass login credentials using this?
Windows Live and Yahoo uses that trick right?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I am trying to get the page count of a document (openoffice) using asp.net but am having trouble converting the object to a string or integer. My code is below so if anyone can please please help I'd really appreciate it (my head is sore from all the banging I've been doing!)
Thanks
Dim oSM As Object 'Root object for accessing OpenOffice from VB
Dim oDesk, oDoc As Object 'First objects from the API
Dim oPageCount As Object
Dim _args As System.Array
Dim objDummy As Object = New Object
_args = System.Array.CreateInstance(objDummy.GetType, 0)
objDummy = Nothing ' free ressource
Try
oSM = CreateObject("com.sun.star.ServiceManager")
'Create the first and most important service
oSM.createInstance(com.sun.star.frame.Desktop)")
oDesk = oSM.createInstance("com.sun.star.frame.Desktop")
'Open an existing doc (pay attention to the syntax for first argument)
oDoc = oDesk.loadComponentFromURL("file:///" & filetoCount, "_blank", 0, _args)
oPageCount = oDoc.createInstance("com.sun.star.text.TextField.PageCount")
Dim tmp As Object
Dim tmp2 As String
tmp = oPageCount -- {System.__ComObject} i need to get the value that is stored in here to pass it back to the calling procedure????
tmp2 = tmp.ToString()
'Close the doc
oDoc.Close(True)
oDoc = Nothing
Return tmp2
|
|
|
|
|
|
Hi Vasudevan,
You're quite right, but unfortunately my work machine does not give me access to that forum, so reposted here for additional support also I wasn't sure if the ooo forum would know how to answer the ASP.NET question.
Thanks for looking though, I don't suppose you have any ideas on how to solve the problem do you?
Justin
|
|
|
|
|
Perhaps if the API is similar to Word Automation, we can dig through in the same lines. Is there a specific exception trace that you are running into?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
The only error I'm getting is a converstion type error. It's saying it cannot convert from type _ComObject to String (or integer). When assigning it to an object type it works, but then using the .ToString() it fails with the same error. I have tried tralling through the ooo site to see if there are any other commands I can use with the object to convert it to a string or integer but have not been successful in finding anything...
|
|
|
|
|
---> Attempted to access an unloaded AppDomain. <---
Grrr...
Seems to be a random error occuring at random intervals on random days (And no, not a Virus)....
Ctrl+Alt+Delete Reveals:
WebDev.WebServer.EXE - 99% Processor Usage
And this PC is running 2 Cores - So it's taking up both...
I tried to record a video, but my PC was bugging out so badly it couldn't save...
If anyone else has this error, the only way (I've found) to fix it is as follows:
1.) Save all work
2.) File -> Close Solution
3.) File -> Open Project/Solution / Website - Depending on what you were working on.
4.) Fixed...
No idea how / why this happens - Microsoft said it was some SOAP Error, or something...
Although, a simple Close / Reopen of your project (Not even Visual Studio...) fixes it...
-_-
|
|
|
|
|
What does this have to do with ASP.NET ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It only happens when developing with ASP.NET
Didn't know where else to put it...
*Shrugs*
|
|
|
|
|
Your RAM, number of Windows Services running, the actual load on the server at the particular instance are some of the parameters that need to be scrutinized before we can zero-in on the actual issue haunting your IIS.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
for eg:
function A()
{
alert("Hai");
}
In C# button onclick event = ?????????????????????????
please help me
|
|
|
|
|
Please don't ask twice.
You can't call javascript from C#, if you think that should be possible, you need to understand the ASP.NET framework a little better. The C# has stopped running when thye page is rendered.
However, you can use RenderClientScriptBlock to inject script into a page from C#, and then that script, if it's global, will run when they page loads. Or, if it's a function, as you show here, it gets injected into the page. You do need to add <script> blocks, there's nothing intelligent about the method.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Is there a reason you wanted to put javascript in the c#?
Obviously C# code runs at the server end and javascript at the client end.
You can design msg boxes for c# I think if thats what you are trying to achieve
|
|
|
|
|
See the double-post below 
|
|
|
|
|
Perhaps on slow connection, they keep submitting it. I feel that the duplicate post detector should flag such closely resembling posts too.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
*Looks at each*
<br />
for eg:<br />
<br />
function A()<br />
{<br />
alert("Hai");<br />
}<br />
<br />
In C# button onclick event = ????????????????????????? <br />
<br />
please help me
vs
<br />
for eg:<br />
<br />
function A()<br />
{<br />
alert("Hai");<br />
}<br />
<br />
In C# button onclick event = ?????????????????????????<br />
<br />
please help me
Closely resembling? I'd say identical....
- Reelix
Update:
Ok, 1 has his name...
|
|
|
|
|
button1.attribute.add('OnClick','return a();');
|
|
|
|
|
try this ....
protected void Button1_Click(object sender, EventArgs e)
{
string javaScript = "\n" + "A();" +"";
ClientScript.RegisterStartupScript(this.GetType(), "Run_it", javaScript);
}
|
|
|
|