|
But i got an error like no type libraries were found in the component.
will you give me one more solution
|
|
|
|
|
first read some books are you new to development. please look into teh cp itself there are lot of articles available.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hi,
- Right Click the Solution Explorer
- Click Add Reference
- Go to Browse tab
- Select the dll from the location where you have saved in your mechine.
- Click OK
Hope it helps,
Thx,
Gayani
|
|
|
|
|
dear friends i am preparing for dotnet certification.Can any body help me in it.
I want to know where to start??
how many exams are there?
where will i got material for the same.
Can I get Previous papers for the same.
do u have some good links for the same
|
|
|
|
|
|
Actually I am looking for previous years paper can i get that
|
|
|
|
|
Hi i searched in google for empty gridview with footer template column using view state...,
But i didnt get that much info abt that...,
So i share here,
I like to show empty gridview with header and footer template column...,
And using footer template column i have to add datas to gridview using view state...,
And in that edit and delete operation also need
Finally all the datas have to store in to database...,
How to acheive this,
Guide me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
This should help.
http://www.google.com/search?hl=en&client=opera&rls=en&hs=hiy&q=show+empty+gridview&btnG=Search
Lots of examples. Choose one that best suites you.
|
|
|
|
|
Hi bardy,
Thanks for ur reply,
Its not helpfull for me,
Becoz they used datasource for gridview..,
I am using viewstate to add datas to my gridview...,
Finally all the gridview datas i am passing to database
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Sorry couldn't help. My View State side of things is a bit bad, so can't really help you.
Good luck though. Maybe when you done you could post it here how you accomplished it.
|
|
|
|
|
Hi,
I have webform 'Form1.aspx' in that i have placed a some textbox controls ,some labels and fileupload control. Finally some buttons : btn_Upload, btn_Show etc.
I used ajax update panel to upload a file(btn_UploadClick()).
In btn_ShowClick() i am transefering page to 'Form2.aspx'
by Response.Redirect("Form2.aspx?path="+uploadfilepathhere, false);
In Form2.aspx i have a image control and a LinkButton 'Back'. I set property PostBackClientUrl : javascript:history.go(-1)
In Image Control i am showing uploaded image to user .
---------------------------------------------------------------------
i entered some text in textboxes, and uoloaded a file.
When i Click on btn_Show. the page is transefered to Form2.aspx, there the uploaded image is shown. Untill here every thing is fine.
But when Click on Back_LinkButton, i could not able to see the Form1.aspx.
It Displaying message like : Web page has expired.
Most likely cause:
The local copy of this webpage is out of date, and the website requires that you download it again.
But when click on refresh of browser ,i could see the Form1.aspx with all values which i entered previously here.
How to solve this page expiry problem.
please suggest me.
thanks in advance.
|
|
|
|
|
Why not just have is the PostBackClientUrl : "~/Form1.aspx" thats if Form1 is in the same Dir.
This will PostBack to the Form1 and Load the page.
Please try not to Name Your Pages Form1/2.aspx, try give them a meaningfull name.
Its always best to start good programming practices early on.
Hope this helps.
|
|
|
|
|
Hi Bardy,
Thanks for your suggestion. But i can't use this, because it i have keep old values which i entered in Form1.aspx as it is.
If i use PostBackClientUrl : "~/Form1.aspx", then i can see the Form1.aspx, but i can't see the previously entered values.
Is there any other way ...
|
|
|
|
|
Then why can't you do this on one page.
It would make you life a lot easier.
Just dump the contents that is in Form2.aspx into a panel in Form1.
Set Visible to fasle and once the button has been clicked just make it Visible.
Will save you a lot of trouble. The only other way is if you store all the values in Session variables.
|
|
|
|
|
Thanks Bardy. I will try that in Panel.
|
|
|
|
|
Hi Bardy.
I tried that in Panel as you told.
But when i click on button, i am getting Runtime JavaScript errors like
Microsoft JScript runtime error: Object required
Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null.
Parameter name: element
|
|
|
|
|
Could you please paste some of your code so I could see.
You can take the Response.Redirect out of the button event.
|
|
|
|
|
Hi,
Here is my sample code:
I Placed a ImageControl, btn_PnlClose. design into Panel 'PNL'.set Visibility : False
I used update panel to upload a file using fileupload control.
Form1.aspx:
pageLoad()
{
//
}
btn_UploadClick() //Here i used update panel
{
//Uploading a file
//Adding uploaded file into ListBox
}
btn_ShowClick()
{
imge1.ImageUrl = "uplode file url here";
PNL.Visible = true;
}
btn_PnlClose_Click()
{
PNL.Visible = false;
}
////////////////////////////////////
When i build this, its successful.
But when i run this, When i click on btn_Show i got javascript runtime errors as posted in previous reply.
|
|
|
|
|
This seems weird because I have a page on my application which uses an update panel. The update panel contains a grdiview and a user can click on a row in the gridview to go to another page. On the other page I put a back button with the same code as yours and it went back fin, or be it with the page being reset.Can you explain anymore about your problem like what code is runnign on the first page
|
|
|
|
|
Hi,
I used update panel to upload a file using fileupload control.
Form1.aspx:
pageLoad()
{
//
}
btn_UploadClick() //Here i used update panel
{
//Uploading a file
//Adding uploaded file into ListBox
}
btn_ShowClick()
{
// taking path of uploaded file sending that in a query string to Form2.aspx
Response.Redirect("form2.aspx?path="+uploadedpathhere,false);
}
In Form2.aspx:
PageLoad()
{
if(!Page.IsPostBack)
{
image1.ImageUrl = Request.QueryString["uploadedpathhere"].ToString();
//Its working fine
}
}
I set Property 'PostBackUrl' of LinkButton 'Back' : javascript:history.go(-1)
When user clicks on Back button, I can see the URL 'form1.aspx' but the Page is not displayed.
It displays message : The webpage has expired.
But when i refresh browser, i can see the page with old values.
But it not happens when i hit on back button.
|
|
|
|
|
User Response.Redirect instead of PostbackURl as this wont be maintaining the state and calls for the page reload.
|
|
|
|
|
i m using SQL server 2005.in this i have a field "Place". i have made a form in which i have used drop down list in which these Place field is shown.in C# i want a code so that if user select the particular place from that drop down list, that should be entered in the database of SQL server 2005.i have made a add button on the form for the user to add the selected place in the database.the required coding i have to write in this add button.
|
|
|
|
|
just write insert statement ..... pass the value dropdown1.selecteditem
|
|
|
|
|
I have got a field in a table which is of xmltype, say file_block
the data for the same is structured as shown below
<control id="txtWeight">
<value>74
<control id="txtHeight">
<value>174
And the above structure is taken in different ways for different
purposes in project so i cannot change that
DATA VALUE
txtWeight 74
txtHeight 174
Now how could i retrieve the data as a tabular structure as shown above using xquery. Please help if anyone know how to do that
|
|
|
|
|
Hi,
I have webform created in asp.net 2.0. I use createuserwizard control.I want to store the datas from the control to my database that i have created in Microsoft sqlserver Management Studio.the control by default stores in aspnetdb which i don't want.I have changed the connectionstring in web.config as per my requirement.And have wrote the insert query based on that configuration.
Can ne body help me of what i should do further???
zari
|
|
|
|