|
$unil Dhiman wrote: if i write this in Button_Click. then popup closed without saving data.
Redirect to other page instead of closing. Then close the page in the new page. This won't make any problem.
|
|
|
|
|
You can't - viewstate has not been restored yet at this point. You need to rethink your design, and perhaps do some reading on how viewstate works.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi,
Recently i converted my project from 1.1 to 2.0. I have a page where the user enters some numbers in 4 text boxes and 10 values are calculated using some formulas with javascript. When i click save button these 10 values were available in my code behind. But when i converted to 2.0, the 10 textboxes show blank values....what should i do... pls help....
|
|
|
|
|
newbie.net wrote: But when i converted to 2.0, the 10 textboxes show blank values....what should i do
Are you clear the TextBoxes in the Page_Load event?
Could you please post your ASPX code and Page_Load event code?
|
|
|
|
|
|
Hi All
I have a web service that was not working and bringing up the dreaded internal server error page.
I have this web service working on another server so i know code wise it works but could not get it to work on my new server. I tried other web services on my new server and they work fine. Just not this particular one. i changed the network indentity to local system in the application pool and the web service works so was hoping someone had any clues where i should look to fix this issue as i dont want it running under the local system identity.
one last thing this webservice uses a com object.
any help appreciated
cheers
|
|
|
|
|
iam using two asp.net pages in which if i click link button in page1 it should redirect the next page .for this iam using response.redirect.the requirement is that iam fillng somme values in the page1 and iam going to page2 now after doing some changes in the page 2 and iam again comming to the page1 the values whic i enter in the page1 should retain and the changes made in page2 will effect in the page1.
|
|
|
|
|
Make both pages user controls and swap which is visible during this process, viewstate will do the rest. Or, pass the values back and forth on the URL, this would require the user not using the back button, but a control that nagivates back to page 1 with the variables you need on the URL
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi
I have html body content in that there are div tags,images ,text.i want to convert whole body content to image and i want disaply that image in browser.
I am using asp.net with c#.net
pls provide me code or gudline
Thanks
Pritesh Patel
|
|
|
|
|
Hi
I have html body content in that there are div tags,images ,text.i want to convert whole body content to image and i want disaply that image in browser.
pls provide me code or gudline
Thanks
Pritesh Patel
|
|
|
|
|
You need to do this dynamically ? Your best bet is to run the html into a client side app that runs IE, grab a screenshot, and push it down to the web page.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Thank for reply.
but i need image of one div tag not all tags in html page.
acn you provide me source code
Pritesh Patel
|
|
|
|
|
pritesh_patel wrote: but i need image of one div tag not all tags in html page.
Then put only the div tag in the page and take a screen shot. There is no other way to convert HTML rendered output to image.
|
|
|
|
|
I am creating a table less page but a div which i want to place at bottom, comes in between and overlap some data.
How to place that div always at bottom of page (not on bottom of screen)??
Thanks in advance
Gaurav
|
|
|
|
|
G.K.M. wrote: (VERY VERY URGENT!!!)Div alignment problem
Please read this[^]. It's very urgent and you will get the solution.
|
|
|
|
|
very well said lol
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|
|
Hi,
I have a gridview for scheduling releases of hotfixes and software plugins.I need to use 3 different stored procedures:
1.a stored procedure to populate the Header of the Grid. The heading names come from a table
2.Another stored procedure to set the background colors of the cells of the gridview (Red,green, amber) based on the status of a project. This data i.e. color names (e.g. #FFFFFF, #BB00CC etc..) are stored in a table and are to be used based on project status which is stored in another table and joined with a foreign key constraint.
3.I need a third procedure that displays the values, i.e. release Dates in each cell based on a few select statements, where clauses and parameters.
Can someone kindly guide me a way to achieve this? the project was developed in Classic ASP and needs to redeveloped in ASP.net2.0
Thanks in advance,
Aartee.
...HE is watching Us All!
|
|
|
|
|
The first two you would need to call and then use the returned values to set properties on the control, the third you would get a table back and data bind in the usual way.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi Christian,
Thanks a lot for your time in reading my post and replying to it. I'm still struggling with populating the header of the gridview from the table. My table structure is :
____________________
PhaseId PhaseName
____________________
1 Scope Closure
2 Functional Design
3 Techical Design
4 Alpha Testing
5 Beta Testing
6 UAT
In the header of the gridview I need:
===================================================================================================
TemplateHeader1 | TemplateHeader2 | Scope Closure | Func. Design | Tech Design | Alpha | Beta | UAT
====================================================================================================
TeamplateHeader1 & TemplateHeader2 are template columns for checkbox and label. Scope Closure onwards come from the table.
Also, The colors for the cells from 'scope Closure' to 'UAT' have to come from the PhaseColor table depending upon the status of phase e.g. AtRisk=Red color, OnTrack=green color etc... first two Template columns and their cells have to stay white or whatever the grids background color is.
Is gridview right for such functionality?or is there another alternative to it? In classic ASP the previous person has used elements to achieve the desired result.
Thanks for your help once again.
Aartee.
...HE is watching Us All!
|
|
|
|
|
hi, in my BLL i need to create a function that returns a datarow not dataset so that i could read in my aspx page and check if the user exists below is my function currently returning dataset and in aspx page i use dataset.tables(0).rows(0).item("username") and i think its not necessary to use dataset. could someone please help?
Friend Function getUserLogon(ByVal username As String, ByVal password As String) As DataSet
Dim param As SqlParameter
Try
con = New SqlConnection(ConnectionString)
Dim dt As DataSet = New DataSet
Dim cmd As SqlCommand = New SqlCommand("getUserLogon", con)
cmd.CommandType = CommandType.StoredProcedure
param = New SqlParameter("@username", SqlDbType.VarChar)
param.Direction = ParameterDirection.Input
param.Value = username
cmd.Parameters.Add(param)
param = New SqlParameter("@password", SqlDbType.VarChar)
param.Direction = ParameterDirection.Input
param.Value = password
cmd.Parameters.Add(param)
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
da.Fill(dt)
Return dt
Catch ee As Exception
Throw ee
Finally
con.Close()
End Try
End Function
|
|
|
|
|
The ideal method for login takes the username and password and returns a bit to say if the login succeeded or not. I can't imagine why you wrote a proc that returns a dataset. Or did you not, and you just don't know how to run it to return just one value ? ExecuteScalar() is, I believe the method you call to run a proc that returns a single value.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
thats correct. i could have used executescalar but i need to store the username in the session n cookie.
|
|
|
|
|
You HAVE the username, you're passing it in to the function.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Hi I am learning to code in ASP.NET 2.0 with C# and trying to figure out how members can send and receive internal email to each other? Each member should have a dynamically allocated userid to track, but I'm still learning how to set up that profile page as well.
Can anyone help?
|
|
|
|
|
Why is it that the people with ids like 'ASPMAX' are the ones least likely to do some basic research before flooding these boards ?
Buy a book on ASP.NET, work through it, and then worry about stuff like this once you have a basic understanding of how things work. Really, I can't answer your question without raising 20 others that are better answered by working through a beginners book.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|