|
On ItemCommand event of DataGrid just pass the employee no and name by Query String and u will it.If not then please let me know I will tell u how to use Querystring.
Thanks and Regards.
|
|
|
|
|
In addition to grouping the two columns in one, you can simply use the TemplateField in the GridView, and you can bind the two data columns in this template column, for example use two labels controls or place two databinding expressions.
|
|
|
|
|
Hi people,
I'm using a COM object to generate a very large bitmap file. I get this error logged in the event log:
aspnet_wp.exe (PID: 3828) was recycled because memory consumption exceeded the 460 MB (60 percent of available RAM).
Is there any way to increase the percentage of available RAM allocated to the process? (keeping aside the fact that we can add more RAM! )
Thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Talal Sultan wrote: aspnet_wp.exe (PID: 3828) was recycled because memory consumption exceeded the 460 MB (60 percent of available RAM).
You can see the memoryLimit attribute of the processModel[^] element
|
|
|
|
|
Thanks for the tip, I will look into that.
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
Sir,
This is the third time I am posting the same question and I will continue this until i will get the answer.
I am using bitmap class to check the dimensions of the file I mean height and width.
Dim bm as new bitmap(filepath)<br />
bm.height<br />
bm.width
Now the problem is when the path contains file of extention .jpg or some other extentions it occurs an exception .What is another way by which the dimensions of any type of image file can be find out.
Can u help me.
|
|
|
|
|
amaneet wrote: This is the third time I am posting the same question and I will continue this until i will get the answer.
I REALLY recommentd you dont - this isn't some SERVICE that you can demand results from - for that try funking google
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi guys,
I was just wondering, is there anyway in ASP you can retrieve the complete file path of a script? For example if you had the script test.asp, what object method would you use to retreive the file path like C:/test/stuff/test.asp.
If anyone knows, I would really appreciate it.
Thanks,
Robbie
|
|
|
|
|
Use Server.MapPath to the get physical path from a virtual path.
---
b { font-weight: normal; }
|
|
|
|
|
Hey Guffa,
Thanks a lot man, that worked!
Robbie
|
|
|
|
|
I am having two template column . In the first i inserted label control and in the second i have checkbox and an editeitemcommand . on update button I am writing some code
dim ch as checkbox<br />
ch = CType(e.item.cells(1).control(0),checkbox)
Now the problem is an error is occuring
Specified cast is not valid.
can u help me.
-- modified at 9:24 Thursday 15th June, 2006
|
|
|
|
|
amaneet wrote: e.item.cells(1).control(0)
I guess you can easily check the real type of it when you debug your application.
|
|
|
|
|
Hi!
I'm calling on a webservice with WS-E 2.0 (because I need to use Dime), and the server returns this exception message:
Microsoft.Web.Services2.Security.SecurityFault: An error was discovered processing the <Security> header ---> System.Exception: Creation time in the timestamp can not be in the future.
I've allready checked that the clock on both machines are in sync (also the same timezone). I've also tried different combinations of setting the <timeToleranceInSeconds> and the <defaultTtlInSeconds> settings in both the clients app.config file and the servers web.config file.
still gets me the same exception...
Does anyone here have any suggestions on how to fix this?
-- modified at 9:53 Thursday 15th June, 2006
Found it... While trying to fix this problem, I had inadvertenly cleared the Security collection of the SoapRequestHeader, so that the other two fixes didn't seem to work... Well, they did work, after removing that statement.
|
|
|
|
|
hi,
i'm openin MS excel and genrating gnatt chart using code as below.
gnatt charts are open on server machine properly.
but it does not open excel(only page refresh) on client machine.
But when it open at client machine it always ask username,password windows.
I want to open it without username,password window
Can anybody knows what is solve problem?
Sub excelgnattchart(ByVal stringWrite)
Try
Dim ExcellProcess() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("EXCEL")
Dim a As Int32 = ExcellProcess.Length()
Dim b As Int32 = 0
If (a > 0) Then
While a > b
ExcellProcess(b).Kill()
b = b + 1
End While
End If
Catch ex As Exception
End Try
Dim oExcel As New Excel.ApplicationClass
Dim oBook As Excel.WorkbookClass
Dim oBooks As Excel.Workbooks
Dim fname As String = "c:\chart.xls"
Try
Dim file As New FileInfo(fname)
Dim sWriter As TextWriter = file.CreateText()
sWriter.WriteLine(stringWrite.ToString)
sWriter.Flush()
sWriter.Close()
oExcel.Visible = True
oBooks = oExcel.Workbooks
oBook = oBooks.Open(fname, , True)
oExcel.Cells.Select()
oExcel.Charts.Add()
oExcel.ActiveChart.ChartType = Excel.XlChartType.xlColumnClustered
oExcel.ActiveChart.Location(Excel.XlChartLocation.xlLocationAsNewSheet)
oExcel.ActiveChart.HasTitle = False
oExcel.Charts.Move()
oBook.Close(False)
System.Runtime.InteropServices.Marshal.ReleaseComObject(oBook)
oBook = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(oExcel)
oExcel = Nothing
System.GC.Collect()
GC.WaitForPendingFinalizers()
file.Delete()
Catch ex As Exception
Console.Write("Exception :" & ex.Message)
End Try
|
|
|
|
|
cint(2.5) = 2
but cint(3.5) = 4
i check it for even odd values and i found that
for only odd it give next number.
why this happen?
|
|
|
|
|
There are two different rounding methods:
:: Rounding away from zero
:: Rounding to nearest even
The method you are using has been implemented to use the later one.
The Math.Round method has overloads that let you decide the rounding method.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for clarifying my doublts.
|
|
|
|
|
I having a Parent page with TextBox control.
I need to access this TextBox control's value from Child page.
I didn't know how to access in the server side from Child Page. can anyone help me on above problem.
- dhans
|
|
|
|
|
Hi,
U can pass any number of values from parent form to child form by QueryString.
Thanks and Regards.
|
|
|
|
|
Hi,
I have to deal with large amount of data, so i cannot use Querystring or session. Is there any other solution?
thanks for quick reply
- dhans
|
|
|
|
|
Sorry to say but I dont know any other option for this.....
|
|
|
|
|
you can use global veriable in global.asax
i think this will help u
|
|
|
|
|
What do you mean by child page? is that a class derived from the original page?
If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating.
Sorry, some theories, no solutions
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
whatever u told is ok. but it is possible by storing textbox's value in session or using 'shared veriable' in Global.asax
What do u think?
|
|
|
|
|
Hello all,
In my Winform i am using webBrowser control. in this i am displaying the asp.net page. it is working fine.
but I want to get the Page Title using webBrowser control. How to get this?
any sounds
regards
GV Ramana
|
|
|
|