|
You men using Session Variables in .Html files. I guess it will not be possible since the server will not process this pages in any way.. You shoul rename them to ASP / ASPX.
Then you can easily set the Session valiable like tis
]]>
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi there. I am currently working on a website assignment and I need some desperate help.
I am using SQL Server 2005 Express Edition to store my data. I am using C# to write my site.
I have used the OleDb to connect to the database, and to write and read the values.
I have stored binary data (photo, jpeg) via Oledb, there is no problems at all.
However I am stuck big time with retreiving photos. I am also using OleDb to connect to the database, then I placed the retreived data into a Dataset. I was able to retreive other information (such as name, phone numbers) from the dataset. However I am unable to retreive the binary data from the dataset.
I've searched the web, it seemed everyone is using SQLDataReader, so I was curious it is possible to retreive binary data using OleDb at all?
HELP! Any feedback would be appreciated, thanks!
modified on Monday, March 3, 2008 12:15 AM
|
|
|
|
|
Infernojericho wrote: I have used the OleDb to connect to the database, and to write and read the values.
Why have you not used the SQL Server specific classes built in to .NET ?
What have you tried to access your data ? If a datatable has a limit to how big a column can be, perhaps you have to use a datareader to get that byte stream out ?
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 all,
i am using onclick as well as onclient click event. if i am using onclientclick event my required field validation is not working.please help me in this . i am not finding where it causing prablem
Thanks And Regards,
Guru
|
|
|
|
|
Atually the validation controls are colled only on a post back. You will need take help of javascript to get the validations done in case of OnclientClick event
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
i want to validate gridview textbox value while updating, how can i do that.
|
|
|
|
|
This will give you the value on the text box
(Change the Cell[3] to the column number you want)
string str = ((TextBox)gridView1.Rows[e.RowIndex].Cells[3].Controls[0]).Text;
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
hi all
i am using iframe in html. why i am using iframe ,because there is some requirement of this. thats why i am using frame.
actually i want to create Rich Text Editor/ HTML Editor. for this purpose i am using iframe.
how can I read text from this iframe in codebehind and how can I set text in codebehind to this frame.
I use this iframe in ascx control. i use this control in aspx. i also use master page.
i need to save text/content of this iframe in database and then i need to show text/content from database in this iframe.
can anybody help me.
thanks
|
|
|
|
|
I am Facing problem in updating values using Gridview Please help me if you can. i,ll be very thabkful to you
Regards
Ahsan
|
|
|
|
|
Member 2528846 wrote: I am Facing problem in updating values using Gridview Please help me if you can
It's tough to tell what would be the problem as you haven't explained anything. Explain your problem in detail to get help.
|
|
|
|
|
I need to get file name and file create date from one of Virtual directory of IIS. One problem is each virtual directory is mapped to actual directory of network drive. How can I get file list from virtual directory? anyone can help me out please?
|
|
|
|
|
Use Server.MapPath[^] to convert a virtual path to a physical path. Then use the stuff in the System.IO namespace to obtain details about all files in a directory and individual file information.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Ok so I've been through some of the articles, had a rat through ASP.Net and solved most of the problems. Heres how it stands
I have a gridview gvProducts with autogenerate colums (I just want to see the data first)
I am using a ObjectDataSource which conforms to the required structure with Start & Max row parameters and rowcount etc.
The object returns a table, the grid displays the header text for each column but the is no data.
I have tested the proc (SQL 2005), debugged through the code and the proc returns a table with the required 19 rows, the object returns a populated datatable. The bloody grid won't show the data, only the header text.
The ASP Code
<asp:gridview id="gvProducts" runat="server" allowpaging="True" autogeneratecolumns="true" datasourceid="dsProduct" enablesortingandpagingcallbacks="True" pagesize="19"><br />
<pagersettings mode="NextPrevious" /><br />
</asp:gridview><br />
<asp:objectdatasource id="dsProduct" runat="server" selectmethod="GetPagedForGroup" typename="CSD.OurLibrary.clsProduct" enablepaging="True" selectcountmethod="GetRecordCount" startrowindexparametername="iRowIndexFrom" maximumrowsparametername="iMaxRows"><br />
<selectparameters><br />
<asp:sessionparameter defaultvalue="1" name="iGroupID" sessionfield="GroupID" type="Int32" /><br />
<asp:parameter name="iRowIndexFrom" type="Int32" defaultvalue="0" /><br />
<asp:parameter name="iMaxRows" type="Int32" defaultvalue="19" /><br />
<asp:sessionparameter defaultvalue="" name="sFilter" sessionfield="Filter" type="String" /><br />
</selectparameters><br />
</asp:objectdatasource>
|
|
|
|
|
I never use this objectdatasource stuff, but I assume GetPagedForGroup is a method that gets called. Have you set a breakpoint to see if it gets called and waht it returns ?
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 )
|
|
|
|
|
I'm just starting to do some ASP work so it is a bit of a curve!
Christian Graus wrote: GetPagedForGroup
This calls to the database and returns a datatable, and yes I have set the break points and it is working fine, the table is populated and the method returns it to the page.
As the grid actually displays the colums as the header text I assume it is working OK, I feel it is a setting on the gridview I have screwed up. Hence the minimisation of the formatting etc.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
OK - what if you get rid of this object thingy, and instead call your data layer from code and assign a datasource/databind the control ?
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 )
|
|
|
|
|
Yep - works perfectly, gets the 19 rows, binds and displays the records.
|
|
|
|
|
Ok - got over the nth hurdle, the objectdatasource had enablepaging set to true.
Now to make it to as its told
Wrong problem - enable paging turned off the requirement for recordcount.
The root cause of the error was that I was returning a table for record count instead if an integer.
Changed the extract to ExecuteScalar and solved the problem. Last modified: 18mins after originally posted --
|
|
|
|
|
Hi guys, I have a recent project at work that requires me to work on a Search Engine that can do searching within the web application. I have no experience with it and it's proving to be quite a challenge.
Can someone point me in the right direction where I can find solutions/answers to how to design and create a search engine for an ASP.NET web application?
If You Can't See It By Faith, You Ain't Gonna Have it!
|
|
|
|
|
Google[^]
only two letters away from being an asset
|
|
|
|
|
Google is a good answer If the site is online, I'd tend towards using the site: feature of google to generate my searches.
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 )
|
|
|
|
|
We use MS Indexing Service to catalog our sites and search the catalog using VB ASP.Net. Works well.
Do a google on indexing service.
|
|
|
|
|
How do I store a text that contains < >s? ASP.net doesnt allow me to send these to the server? How is it handled usually? By replacing the tags with some symbols and changing it back to tags code behind, before using it?
|
|
|
|
|
The same way it's done in these forums. ASP.NET has nothing to do with it, it's all the browser. You do this to get a < - <. You use gt for greater than and amp for an ampersand.
Note: this reply contains my response encoded for viewing in the browser, if you got it in your email, you need to view it in the forum to see the proper format.
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 bulding a mobile application in which I want to show Objectlist control bound datasource filled using the database. i am able to display data fetched from the database but I also want to refresh the objectlist periodically. What should I do to accomlish this task?
Thanx in advance...
Gurudatta B. Shelke
|
|
|
|