|
Stormint wrote: how do you print from the database in your program where you have to print a invoice from the program its self
Window.Print() ?
|
|
|
|
|
Hi All,
I want to read excel File. This is done but I need some more functionality in it.
In Excel File I have From Date and To Date so can I fire a query which has where Clause in it??
Please help me, how should I do this??
Thanks in advance...
|
|
|
|
|
Hi Everyone,
I have a problem regarding the page refreshing on client side using F5 button. My records are getting inserted twice. If I click button and then press F5, duplicate records are created. I want that if user has pressed F5, button click event must not be fired. I searched for this on many sites but, every site was suggesting to use ViewState / Hidden Variables / Sessions to keep track whether this is clean post back or using the F5 button.
Is there any in-built technique to identify these type of requests ? I am using Framework 2.0 (VS.Net 2005). This is a major problem and I cant change my stored procedures / apply constraints on data base. I have to handle this at the application end itself.
Any help will be greatly appreciated.
Thanks !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
When the user refreshes the page, the same request is sent to the server again to fetch the page. As the new request is identical to the previous, the only way that you can distinguish such a request from a regular postback, is to keep track of what the user is doing.
coolestCoder wrote: Is there any in-built technique to identify these type of requests ?
No. The browser doesn't tell the server the reason for sending the request, so the server doesn't know.
---
single minded; short sighted; long gone;
|
|
|
|
|
As Guffa said, broswer is posting information again to server. You can redirect user to some confirmation page. This will solve your problem.
|
|
|
|
|
Hi
I have a page which pulls an address of an image that is stored on my system and then passes it into an asp:image tag, so to display it in the page
But i can't seem to get the page to show the image for some annoying reason
when i view the page source it has done it properly, and i have even copied and pasted the code into another html file and it displays the image perfectly.
Is there a method i need to do to get it render the image in asp?
Or am i jus missing somthin stupid, any help appreciated?
boyindie
|
|
|
|
|
Show me your code ? or you try with writing <img src='yourimage'> to some literal control placed on your page.
|
|
|
|
|
Hi,
I am new at asp.net and dont know how to edit, sort and update records. Could you please give me a general idea?
Thanks
|
|
|
|
|
Link
Regards,
Sandeep Kumar.V
|
|
|
|
|
If U want edit and sorting to be able in your datagridview, u can checked the checkbox Enable Editing and Enable Sorting..when you expand the little arrow in your datagridview at design..or u can use stored procedure to Edit and Sort the data programatically.
Hope That Can Answer Your Question..
Regard,
TCim
|
|
|
|
|
please read ado.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
|
|
|
|
|
Hi All,
How to write connectionString for *.mdf database file which is placed into App_Data folder?
Thanks
|
|
|
|
|
Hi,
Below is the connection string for Test.mdf file
<code>connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Test.mdf;Integrated Security=True;User Instance=True"</code>
Regards,
Sandeep Kumar.V
|
|
|
|
|
Hi,
U can use the following Connection String:
"Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf; Database=dbname;Trusted_Connection=Yes;"
Also for any kind of connection string problems u can refer:
http://www.connectionstrings.com/default.aspx[^]
Regards
Paramhans Dubey.
|
|
|
|
|
Hi all,
My need is to assign a file name to file upload control by default.
So could anyone of you please help me on this to solve this problem.
Thanks and Regards,
Hariharan C
|
|
|
|
|
Hi!
i launch my job Site Demo on http;//www.jobsfreejobs.com. Your FeedBack and Suggestions are requested please Create your Accounts as Employer and Job Seeker and check the functionality and inform me about bugs or other suggestion ....... if you have time .... Please don't mind it...... Take Care
|
|
|
|
|
Good. Got some suggestions. Not checked fully.
1. It seems that you are not using any postback in homepage. It's better to disable viewstate for that page. This can reduce the data transfered.
2. Contact us page. Try to use a captcha. This will spam your mailbox.
|
|
|
|
|
Nice site!
1 bug 1 found out..
In the Tell a friend page, If the user clicks on anyof the textboxes and clicks on new user sign up or login , the new user sign up wont work unless the user enters anything in the textboxes..
Coz of the required field validator i guess..
and too much required fields in the new user sign up...guess a few can be made not mandatory..user might get offended..thats wat i think!1
Otherwise good work!!
cya!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Oh and i forgot the spelling mitake in "availabe?"...
Hehe!!
Enjoy!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi,
i have three asp.net applications in different domains say www.domain1.com and www.domain2.com and www.domain3.aspx.
Two pages are there in each applications .First LogIn.aspx and other MyPage.aspx. In mypage of www.domain1.com, i have a link to mypage.aspx of www.domain2.aspx and www.domain3.aspx. now my requiremets are:
1> when user login in www.domain1.aspx, and clicks any link on MyPage.aspx, say he clicks www.domain2.aspx, then he shud be redirected to Mypage.aspx of www.domain2.aspx. it shud not show him its login page .same for www.domain3.aspx.i have to use forms authentication.
Its basicly a single sign on.
The problem i am facing excatly is that, i acieved this using same machinekey,validationkey for all in web.config like
decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC"
validation="SHA1" />
But i need that the validation keys should be different for different applicatons in there web.config ,and when i click the links from www.domain1.aspx then anyways i save it in the formauthetication cookie and also i want to add some more information in formauthentication cookie.
Please help me in this. Its urgent.Any other way to get this functionality achieved ia also welcome
thx
|
|
|
|
|
I get the "Object reference not set to an instance of an object." error. Any clues as to what is happening here?
Dim rdo As System.Web.UI.WebControls.RadioButtonList
For index As Integer = 1 To dtLevelC.Rows.Count
rdo = CType(Page.FindControl("RadioButtonList" & index), System.Web.UI.WebControls.RadioButtonList)
'Getting Rating Code from PFARatingCode DB
dtPFARatingCode = daPFARatingCode.GetDataByTableID(rdo.SelectedValue) If dtPFARatingCode.Rows.Count > 0 Then
Session("Rating") = dtPFARatingCode.Rows(0)("RationCode")
End If
..............
-- modified at 2:47 Monday 23rd July, 2007
|
|
|
|
|
Before using the rdo control check whether it is null or not!
It happens normally that the function gets called before the radio button gets loaded...
So Do a check on the rdo object before doing this!
BasharatAli wrote: dtPFARatingCode = daPFARatingCode.GetDataByTableID(rdo.SelectedValue) If dtPFARatingCode.Rows.Count > 0 Then
Session("Rating") = dtPFARatingCode.Rows(0)("RationCode")
End If
Hope that helps!!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
i have already bind Page.FindControl("RadioButtonList" & index) with data source so why it's return nothing
|
|
|
|
|
Hi Basharat,Try posting your replies as replies thab answers or we wont be able to know whether youve replied or not..
Well first check out whether the radiobutton object button is giving the nullo reference exception or something else...
As u are using session objects its possible the seeion object is used before its getting initialized...
go through the code properly and try to figure out...
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
"Object reference not set to an instance of an object."
i'm getting this exception message before session object at this line of code
Dim rdo As System.Web.UI.WebControls.RadioButtonList
For index As Integer = 1 To dtLevelC.Rows.Count
rdo = CType(Me.FindControl("RadioButtonList1", 1), System.Web.UI.WebControls.RadioButtonList)
dtPFARatingCode = daPFARatingCode.GetDataByTableID(rdo.SelectedValue)<br />
If dtPFARatingCode.Rows.Count > 0 Then
|
|
|
|